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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp

Issue 2616903002: Remove ScriptController::namedItemAdded/Removed (Closed)
Patch Set: temp 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/bindings/core/v8/WindowProxy.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
index c844933df3de3000ff9a7ca41652da2932386d81..7051d66fb9b8f1d3939b42f20bc08f60eb04ed44 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
@@ -518,7 +518,7 @@ static void getter(v8::Local<v8::Name> property,
void WindowProxy::namedItemAdded(HTMLDocument* document,
const AtomicString& name) {
DCHECK(m_world->isMainWorld());
-
+ DCHECK(m_scriptState);
if (!isContextInitialized())
return;
@@ -535,10 +535,9 @@ void WindowProxy::namedItemAdded(HTMLDocument* document,
void WindowProxy::namedItemRemoved(HTMLDocument* document,
const AtomicString& name) {
DCHECK(m_world->isMainWorld());
-
+ DCHECK(m_scriptState);
if (!isContextInitialized())
return;
-
if (document->hasNamedItem(name) || document->hasExtraNamedItem(name))
return;
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp ('k') | third_party/WebKit/Source/core/html/HTMLDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698