Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / dom / ShadowRoot.cpp
index edd07a5..e73a72d 100644 (file)
@@ -147,10 +147,10 @@ void ShadowRoot::setResetStyleInheritance(bool value)
 
 void ShadowRoot::attach(const AttachContext& context)
 {
-    StyleResolver* styleResolver = document()->ensureStyleResolver();
-    styleResolver->pushParentShadowRoot(this);
+    StyleResolver& styleResolver = document()->ensureStyleResolver();
+    styleResolver.pushParentShadowRoot(this);
     DocumentFragment::attach(context);
-    styleResolver->popParentShadowRoot(this);
+    styleResolver.popParentShadowRoot(this);
 }
 
 void ShadowRoot::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)