diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp b/chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp index 9512d82defe..30535de0e3b 100644 --- a/chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp +++ b/chromium/third_party/WebKit/Source/core/dom/PseudoElement.cpp @@ -70,13 +70,15 @@ PassRefPtr<RenderStyle> PseudoElement::customStyleForRenderer() void PseudoElement::dispose() { + ASSERT(parentOrShadowHostElement()); + InspectorInstrumentation::pseudoElementDestroyed(this); ASSERT(!nextSibling()); ASSERT(!previousSibling()); detach(); - RefPtr<Element> parent = parentOrShadowHostElement(); + RefPtrWillBeRawPtr<Element> parent = parentOrShadowHostElement(); setParentOrShadowHostNode(0); removedFrom(parent.get()); } @@ -91,8 +93,6 @@ void PseudoElement::attach(const AttachContext& context) if (!renderer) return; RenderStyle* style = renderer->style(); - if (style->hasFlowFrom()) - return; if (style->styleType() != BEFORE && style->styleType() != AFTER) return; ASSERT(style->contentData()); |