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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 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 e839e57aa13458fa29d4120c24f52e4a4bb568af..a09de1a1254aaaf14692689823478a97d6d7c65f 100644
--- a/Source/core/dom/PseudoElement.cpp
+++ b/Source/core/dom/PseudoElement.cpp
@@ -93,7 +93,7 @@ PseudoElement::PseudoElement(Element* parent, PseudoId pseudoId)
PassRefPtr<LayoutStyle> PseudoElement::customStyleForRenderer()
{
- return parentOrShadowHostElement()->renderer()->getCachedPseudoStyle(m_pseudoId);
+ return parentOrShadowHostElement()->layoutObject()->getCachedPseudoStyle(m_pseudoId);
}
void PseudoElement::dispose()
@@ -114,11 +114,11 @@ void PseudoElement::dispose()
void PseudoElement::attach(const AttachContext& context)
{
- ASSERT(!renderer());
+ ASSERT(!layoutObject());
Element::attach(context);
- LayoutObject* renderer = this->renderer();
+ LayoutObject* renderer = this->layoutObject();
if (!renderer)
return;
@@ -145,12 +145,12 @@ bool PseudoElement::rendererIsNeeded(const LayoutStyle& style)
void PseudoElement::didRecalcStyle(StyleRecalcChange)
{
- if (!renderer())
+ if (!layoutObject())
return;
// The renderers inside pseudo elements are anonymous so they don't get notified of recalcStyle and must have
// the style propagated downward manually similar to LayoutObject::propagateStyleToAnonymousChildren.
- LayoutObject* renderer = this->renderer();
+ LayoutObject* renderer = this->layoutObject();
for (LayoutObject* child = renderer->nextInPreOrder(renderer); child; child = child->nextInPreOrder(renderer)) {
// We only manage the style for the generated content items.
if (!child->isText() && !child->isQuote() && !child->isImage())

Powered by Google App Engine
This is Rietveld 408576698