Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: Source/bindings/core/v8/custom/V8DocumentCustom.cpp

Issue 1176013002: Move attributes and methods from HTMLDocument to Document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0a92dceab45c7fd231d57d2b63a43ef796c4d969..0253bc78982d5ab4c28b9a171a1a5992fa1d41d1 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,15 +52,14 @@ 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) {
- RefPtrWillBeRawPtr<LocalFrame> frame = htmlDocument->frame();
+ RefPtrWillBeRawPtr<LocalFrame> frame = document->frame();
if (!frame)
return;
-
// 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.
@@ -87,7 +86,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;
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/bindings/core/v8/custom/V8HTMLDocumentCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698