Index: Source/core/css/resolver/StyleResolver.cpp |
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp |
index 4b7724e96ce56cb64b4e5f3df49b372cd24d350e..2f775b0a78801b80062ffa7318b70a1b84df6e47 100644 |
--- a/Source/core/css/resolver/StyleResolver.cpp |
+++ b/Source/core/css/resolver/StyleResolver.cpp |
@@ -537,7 +537,7 @@ PassRefPtr<LayoutStyle> StyleResolver::styleForElement(Element* element, LayoutS |
// Once an element has a renderer, we don't try to destroy it, since otherwise the renderer |
// will vanish if a style recalc happens during loading. |
- if (sharingBehavior == AllowStyleSharing && !document().isRenderingReady() && !element->renderer()) { |
+ if (sharingBehavior == AllowStyleSharing && !document().isRenderingReady() && !element->layoutObject()) { |
if (!s_styleNotYetAvailable) { |
s_styleNotYetAvailable = LayoutStyle::create().leakRef(); |
s_styleNotYetAvailable->setDisplay(NONE); |
@@ -717,7 +717,7 @@ PassRefPtrWillBeRawPtr<PseudoElement> StyleResolver::createPseudoElement(Element |
PassRefPtrWillBeRawPtr<PseudoElement> StyleResolver::createPseudoElementIfNeeded(Element& parent, PseudoId pseudoId) |
{ |
- LayoutObject* parentRenderer = parent.renderer(); |
+ LayoutObject* parentRenderer = parent.layoutObject(); |
if (!parentRenderer) |
return nullptr; |