Add V8Document.h include when the V8 code generator creates a toV8(Document*) call.
authoracolwell@chromium.org <acolwell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 00:19:38 +0000 (00:19 +0000)
committeracolwell@chromium.org <acolwell@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Mar 2013 00:19:38 +0000 (00:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=111486

Reviewed by Adam Barth.

No new tests. This doesn't change user visible behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateNamedConstructor):
* bindings/scripts/test/V8/V8TestNamedConstructor.cpp:

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

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp

index 89a7c08..c91a3c9 100644 (file)
@@ -1,3 +1,16 @@
+2013-03-05  Aaron Colwell  <acolwell@chromium.org>
+
+        Add V8Document.h include when the V8 code generator creates a toV8(Document*) call.
+        https://bugs.webkit.org/show_bug.cgi?id=111486
+
+        Reviewed by Adam Barth.
+
+        No new tests. This doesn't change user visible behavior.
+
+        * bindings/scripts/CodeGeneratorV8.pm:
+        (GenerateNamedConstructor):
+        * bindings/scripts/test/V8/V8TestNamedConstructor.cpp:
+
 2013-03-05  Shawn Singh  <shawnsingh@chromium.org>
 
         Fix default background of a dragged image.
index 19fb966..c42f2b4 100644 (file)
@@ -2179,6 +2179,7 @@ static v8::Handle<v8::Value> ${v8InterfaceName}ConstructorCallback(const v8::Arg
     ${maybeObserveFeature}
 END
     push(@implContent, GenerateConstructorHeader());
+    AddToImplIncludes("V8Document.h");
     push(@implContent, <<END);
     Document* document = currentDocument(BindingState::instance());
 
index 2061785..d6894ee 100644 (file)
@@ -28,6 +28,7 @@
 #include "RuntimeEnabledFeatures.h"
 #include "V8Binding.h"
 #include "V8DOMWrapper.h"
+#include "V8Document.h"
 #include <wtf/UnusedParam.h>
 
 #if ENABLE(BINDING_INTEGRITY)