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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/dom/PositionIterator.cpp ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/PseudoElement.cpp
diff --git a/Source/core/dom/PseudoElement.cpp b/Source/core/dom/PseudoElement.cpp
index 2f6e396c49e821b9e3b97b952ea6250da7ae76b5..5bdbf0c7aeb4b33b67da2448cb61580b71cf7aee 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::layoutObjectIsNeeded(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())
« no previous file with comments | « Source/core/dom/PositionIterator.cpp ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698