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

Unified Diff: Source/core/dom/shadow/ShadowRoot.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/dom/shadow/InsertionPoint.cpp ('k') | Source/core/editing/AppendNodeCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/shadow/ShadowRoot.cpp
diff --git a/Source/core/dom/shadow/ShadowRoot.cpp b/Source/core/dom/shadow/ShadowRoot.cpp
index 6269a5cb0dd2da4b0dfdad93db66d2440ba1234a..4554cfa6cd71991c2c2ad1009f702be036fef951 100644
--- a/Source/core/dom/shadow/ShadowRoot.cpp
+++ b/Source/core/dom/shadow/ShadowRoot.cpp
@@ -162,7 +162,7 @@ void ShadowRoot::recalcStyle(StyleChange change)
// ShadowRoot doesn't support custom callbacks.
ASSERT(!hasCustomStyleCallbacks());
- StyleResolver* styleResolver = document()->styleResolver();
+ StyleResolver* styleResolver = document().styleResolver();
styleResolver->pushParentShadowRoot(this);
if (!attached()) {
@@ -252,7 +252,7 @@ void ShadowRoot::setResetStyleInheritance(bool value)
void ShadowRoot::attach(const AttachContext& context)
{
- StyleResolver* styleResolver = document()->styleResolver();
+ StyleResolver* styleResolver = document().styleResolver();
styleResolver->pushParentShadowRoot(this);
DocumentFragment::attach(context);
styleResolver->popParentShadowRoot(this);
« no previous file with comments | « Source/core/dom/shadow/InsertionPoint.cpp ('k') | Source/core/editing/AppendNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698