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

Unified Diff: Source/core/dom/Element.cpp

Issue 23523012: Have CustomElement::didEnterDocument() / didLeaveDocument() take a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/CustomElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index cae91a42753dc7dc39a08010846f30a94f4adbeb..416514120852be1468dafee7f501ea2cd9b4a870 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1232,7 +1232,7 @@ Node::InsertionNotificationRequest Element::insertedInto(ContainerNode* insertio
elementRareData()->clearClassListValueForQuirksMode();
if (isUpgradedCustomElement() && inDocument())
- CustomElement::didEnterDocument(this, &document());
+ CustomElement::didEnterDocument(this, document());
TreeScope* scope = insertionPoint->treeScope();
if (scope != treeScope())
@@ -1301,7 +1301,7 @@ void Element::removedFrom(ContainerNode* insertionPoint)
document().accessSVGExtensions()->removeElementFromPendingResources(this);
if (isUpgradedCustomElement())
- CustomElement::didLeaveDocument(this, &insertionPoint->document());
+ CustomElement::didLeaveDocument(this, insertionPoint->document());
}
if (hasRareData())
« no previous file with comments | « Source/core/dom/CustomElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698