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

Unified Diff: third_party/WebKit/Source/core/html/HTMLDocument.cpp

Issue 2630693002: Make ScriptController inherit LocalWindowProxyManager
Patch Set: rebase Created 3 years, 11 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: third_party/WebKit/Source/core/html/HTMLDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLDocument.cpp b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
index 358922baa38f90fd878572b784aeaed5cc82c6f4..de5f3d2e77bbfde8894c0f6157e8f19214efec38 100644
--- a/third_party/WebKit/Source/core/html/HTMLDocument.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
@@ -154,9 +154,7 @@ void HTMLDocument::addItemToMap(HashCountedSet<AtomicString>& map,
return;
map.add(name);
if (LocalFrame* f = frame()) {
- f->script()
- .windowProxy(DOMWrapperWorld::mainWorld())
- ->namedItemAdded(this, name);
+ f->script().namedItemAdded(this, name);
}
}
@@ -166,9 +164,7 @@ void HTMLDocument::removeItemFromMap(HashCountedSet<AtomicString>& map,
return;
map.remove(name);
if (LocalFrame* f = frame()) {
- f->script()
- .windowProxy(DOMWrapperWorld::mainWorld())
- ->namedItemRemoved(this, name);
+ f->script().namedItemRemoved(this, name);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/Window.idl ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698