[EnabledBySetting] in WebIDL uses Document but does not include Document.h
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2017 21:31:33 +0000 (21:31 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 Aug 2017 21:31:33 +0000 (21:31 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175843

Reviewed by Sam Weinig.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221048 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

index 89ee283..7290414 100644 (file)
@@ -1,3 +1,13 @@
+2017-08-22  Chris Dumez  <cdumez@apple.com>
+
+        [EnabledBySetting] in WebIDL uses Document but does not include Document.h
+        https://bugs.webkit.org/show_bug.cgi?id=175843
+
+        Reviewed by Sam Weinig.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateImplementation):
+
 2017-08-22  Jer Noble  <jer.noble@apple.com>
 
         Refactor videoPerformanceQuality() MediaPlayer methods into single call.
index de01617..9cfabe6 100644 (file)
@@ -4063,6 +4063,7 @@ sub GenerateImplementation
         my @settingsEnabledProperties = @settingsEnabledOperations;
         push(@settingsEnabledProperties, @settingsEnabledAttributes);
         if (scalar(@settingsEnabledProperties)) {
+            AddToImplIncludes("Document.h");
             AddToImplIncludes("Settings.h");
             push(@implContent, "    auto* context = jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext();\n");
             push(@implContent, "    ASSERT(!context || context->isDocument());\n");