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

Unified Diff: Source/core/layout/LayoutCounter.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/layout/LayoutCounter.cpp
diff --git a/Source/core/layout/LayoutCounter.cpp b/Source/core/layout/LayoutCounter.cpp
index a4744a8bcb3ce7c5df43e4a5564d6b50e8ac43a6..d70f7c379d624b1249779e1525243f9dd4bdc306 100644
--- a/Source/core/layout/LayoutCounter.cpp
+++ b/Source/core/layout/LayoutCounter.cpp
@@ -59,9 +59,9 @@ static LayoutObject* previousInPreOrder(const LayoutObject& object)
Element* self = toElement(object.node());
ASSERT(self);
Element* previous = ElementTraversal::previousIncludingPseudo(*self);
- while (previous && !previous->renderer())
+ while (previous && !previous->layoutObject())
previous = ElementTraversal::previousIncludingPseudo(*previous);
- return previous ? previous->renderer() : 0;
+ return previous ? previous->layoutObject() : 0;
}
// This function processes the renderer tree in the order of the DOM tree
@@ -71,12 +71,12 @@ static LayoutObject* previousSiblingOrParent(const LayoutObject& object)
Element* self = toElement(object.node());
ASSERT(self);
Element* previous = ElementTraversal::pseudoAwarePreviousSibling(*self);
- while (previous && !previous->renderer())
+ while (previous && !previous->layoutObject())
previous = ElementTraversal::pseudoAwarePreviousSibling(*previous);
if (previous)
- return previous->renderer();
+ return previous->layoutObject();
previous = self->parentElement();
- return previous ? previous->renderer() : 0;
+ return previous ? previous->layoutObject() : 0;
}
static inline Element* parentElement(LayoutObject& object)
@@ -96,9 +96,9 @@ static LayoutObject* nextInPreOrder(const LayoutObject& object, const Element* s
Element* self = toElement(object.node());
ASSERT(self);
Element* next = skipDescendants ? ElementTraversal::nextIncludingPseudoSkippingChildren(*self, stayWithin) : ElementTraversal::nextIncludingPseudo(*self, stayWithin);
- while (next && !next->renderer())
+ while (next && !next->layoutObject())
next = skipDescendants ? ElementTraversal::nextIncludingPseudoSkippingChildren(*next, stayWithin) : ElementTraversal::nextIncludingPseudo(*next, stayWithin);
- return next ? next->renderer() : 0;
+ return next ? next->layoutObject() : 0;
}
static bool planCounter(LayoutObject& object, const AtomicString& identifier, bool& isReset, int& value)
@@ -117,7 +117,7 @@ static bool planCounter(LayoutObject& object, const AtomicString& identifier, bo
case NOPSEUDO:
// Sometimes nodes have more then one renderer. Only the first one gets the counter
// LayoutTests/http/tests/css/counter-crash.html
- if (generatingNode->renderer() != &object)
+ if (generatingNode->layoutObject() != &object)
return false;
break;
case BEFORE:
@@ -270,7 +270,7 @@ static bool findPlaceForCounter(LayoutObject& counterOwner, const AtomicString&
previousSiblingProtector = currentCounter;
// We are no longer interested in previous siblings of the currentRenderer or their children
// as counters they may have attached cannot be the previous sibling of the counter we are placing.
- currentRenderer = parentElement(*currentRenderer)->renderer();
+ currentRenderer = parentElement(*currentRenderer)->layoutObject();
continue;
}
} else {

Powered by Google App Engine
This is Rietveld 408576698