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

Unified Diff: Source/core/dom/custom/CustomElementCallbackInvocation.cpp

Issue 27183013: Use [ImplementedAs=domWindow] for Document.defaultView() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/dom/custom/CustomElement.cpp ('k') | Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/custom/CustomElementCallbackInvocation.cpp
diff --git a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
index 119fa1ff0c98ede610416490f960cd5ab94b3ad2..7263ffc011bc45aba57cca4ed98b6e0528c12a70 100644
--- a/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
+++ b/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
@@ -50,7 +50,7 @@ private:
void CreatedInvocation::dispatch(Element* element)
{
- if (element->inDocument() && element->document().defaultView())
+ if (element->inDocument() && element->document().domWindow())
CustomElementCallbackScheduler::scheduleEnteredViewCallback(callbacks(), element);
callbacks()->created(element);
}
« no previous file with comments | « Source/core/dom/custom/CustomElement.cpp ('k') | Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698