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

Unified Diff: Source/core/dom/PseudoElement.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 years, 11 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
Index: Source/core/dom/PseudoElement.cpp
diff --git a/Source/core/dom/PseudoElement.cpp b/Source/core/dom/PseudoElement.cpp
index 559b1742fd5bb4e43ba40de4f827900c7eade58f..fbcff2da162c7eacadca466276260b12207b75f7 100644
--- a/Source/core/dom/PseudoElement.cpp
+++ b/Source/core/dom/PseudoElement.cpp
@@ -120,7 +120,7 @@ void PseudoElement::attach(const AttachContext& context)
if (!renderer)
return;
- RenderStyle* style = renderer->style();
+ RenderStyle* style = renderer->deprecatedMutableStyle();
if (style->styleType() != BEFORE && style->styleType() != AFTER)
return;
ASSERT(style->contentData());
@@ -154,7 +154,7 @@ void PseudoElement::didRecalcStyle(StyleRecalcChange)
if (!child->isText() && !child->isQuote() && !child->isImage())
continue;
- child->setPseudoStyle(renderer->style());
+ child->setPseudoStyle(renderer->deprecatedMutableStyle());
}
}

Powered by Google App Engine
This is Rietveld 408576698