Index: Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp b/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
similarity index 90% |
rename from Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp |
rename to Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
index 525713cc3644e22c713ba62b1b4a7eceed5a8648..e051dbed278401c831e90328df7ce1c2be552afa 100644 |
--- a/Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8DocumentCustom.cpp |
@@ -29,7 +29,7 @@ |
*/ |
#include "config.h" |
-#include "bindings/core/v8/V8HTMLDocument.h" |
+#include "bindings/core/v8/V8Document.h" |
#include "bindings/core/v8/ScriptController.h" |
#include "bindings/core/v8/V8Binding.h" |
@@ -38,11 +38,11 @@ |
#include "bindings/core/v8/V8Node.h" |
#include "bindings/core/v8/V8Window.h" |
#include "core/HTMLNames.h" |
+#include "core/dom/Document.h" |
#include "core/frame/LocalDOMWindow.h" |
#include "core/frame/LocalFrame.h" |
#include "core/html/HTMLAllCollection.h" |
#include "core/html/HTMLCollection.h" |
-#include "core/html/HTMLDocument.h" |
#include "core/html/HTMLIFrameElement.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/RefPtr.h" |
@@ -52,12 +52,12 @@ namespace blink { |
// HTMLDocument ---------------------------------------------------------------- |
-void V8HTMLDocument::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
+void V8Document::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
- HTMLDocument* htmlDocument = V8HTMLDocument::toImpl(info.Holder()); |
+ Document* document = V8Document::toImpl(info.Holder()); |
if (info.Length() > 2) { |
- if (RefPtrWillBeRawPtr<LocalFrame> frame = htmlDocument->frame()) { |
+ if (RefPtrWillBeRawPtr<LocalFrame> frame = document->frame()) { |
// Fetch the global object for the frame. |
v8::Local<v8::Context> context = toV8Context(frame.get(), DOMWrapperWorld::current(info.GetIsolate())); |
// Bail out if we cannot get the context. |
@@ -85,7 +85,7 @@ void V8HTMLDocument::openMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& |
} |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "open", "Document", info.Holder(), info.GetIsolate()); |
- htmlDocument->open(callingDOMWindow(info.GetIsolate())->document(), exceptionState); |
+ document->open(callingDOMWindow(info.GetIsolate())->document(), exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |