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

Unified Diff: Source/core/html/shadow/HTMLShadowElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master 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/html/shadow/HTMLContentElement.cpp ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/HTMLShadowElement.cpp
diff --git a/Source/core/html/shadow/HTMLShadowElement.cpp b/Source/core/html/shadow/HTMLShadowElement.cpp
index d8b857db5b2cd2d246e0c92e0ee6ef4cff1ba869..1e2aa45d3855c7ede80743237722585a348bdcfa 100644
--- a/Source/core/html/shadow/HTMLShadowElement.cpp
+++ b/Source/core/html/shadow/HTMLShadowElement.cpp
@@ -60,7 +60,7 @@ ShadowRoot* HTMLShadowElement::olderShadowRoot()
if (!containingRoot)
return 0;
- document()->updateDistributionForNodeIfNeeded(this);
+ document().updateDistributionForNodeIfNeeded(this);
ShadowRoot* older = containingRoot->olderShadowRoot();
if (!older || !older->shouldExposeToBindings() || older->insertionPoint() != this)
@@ -77,7 +77,7 @@ Node::InsertionNotificationRequest HTMLShadowElement::insertedInto(ContainerNode
ShadowRoot* root = containingShadowRoot();
if (root && root->olderShadowRoot() && root->type() != root->olderShadowRoot()->type()) {
String message = String::format("<shadow> doesn't work for %s element host.", root->host()->tagName().utf8().data());
- document()->addConsoleMessage(RenderingMessageSource, WarningMessageLevel, message);
+ document().addConsoleMessage(RenderingMessageSource, WarningMessageLevel, message);
}
}
return InsertionPoint::insertedInto(insertionPoint);
« no previous file with comments | « Source/core/html/shadow/HTMLContentElement.cpp ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698