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); |
} |
} |