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

Unified Diff: Source/core/rendering/TextAutosizer.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/rendering/TextAutosizer.h ('k') | Source/core/rendering/svg/RenderSVGInline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/TextAutosizer.cpp
diff --git a/Source/core/rendering/TextAutosizer.cpp b/Source/core/rendering/TextAutosizer.cpp
index 737d26bf94a1ffd889823bb9a584b5196fd464f8..e91ac4b199538898893e437a33f867d747449eb3 100644
--- a/Source/core/rendering/TextAutosizer.cpp
+++ b/Source/core/rendering/TextAutosizer.cpp
@@ -460,7 +460,7 @@ void TextAutosizer::setMultiplierForList(RenderObject* renderer, float multiplie
setMultiplier(renderer, multiplier);
// Make sure all list items are autosized consistently.
- for (RenderObject* child = renderer->firstChild(); child; child = child->nextSibling()) {
+ for (RenderObject* child = renderer->slowFirstChild(); child; child = child->nextSibling()) {
if (child->isListItem() && child->style()->textAutosizingMultiplier() == 1)
setMultiplier(child, multiplier);
}
@@ -795,7 +795,7 @@ const RenderBlock* TextAutosizer::findDeepestBlockContainingAllText(const Render
return containingBlock;
}
-const RenderObject* TextAutosizer::findFirstTextLeafNotInCluster(const RenderObject* parent, size_t& depth, TraversalDirection direction)
+const RenderObject* TextAutosizer::findFirstTextLeafNotInCluster(const RenderBlock* parent, size_t& depth, TraversalDirection direction)
{
if (parent->isText())
return parent;
@@ -804,7 +804,7 @@ const RenderObject* TextAutosizer::findFirstTextLeafNotInCluster(const RenderObj
const RenderObject* child = (direction == FirstToLast) ? parent->firstChild() : parent->lastChild();
while (child) {
if (!isAutosizingContainer(child) || !isIndependentDescendant(toRenderBlock(child))) {
- const RenderObject* leaf = findFirstTextLeafNotInCluster(child, depth, direction);
+ const RenderObject* leaf = findFirstTextLeafNotInCluster(toRenderBlock(child), depth, direction);
if (leaf)
return leaf;
}
« no previous file with comments | « Source/core/rendering/TextAutosizer.h ('k') | Source/core/rendering/svg/RenderSVGInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698