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

Unified Diff: Source/core/rendering/FastTextAutosizer.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/plugins/PluginOcclusionSupport.cpp ('k') | Source/core/rendering/FixedTableLayout.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/FastTextAutosizer.cpp
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp
index 796abb8a94e2239861a7a0937fdc83948dc5676b..7ef8bc8b0c4ed546057d0fbb9d73c431dfc18065 100644
--- a/Source/core/rendering/FastTextAutosizer.cpp
+++ b/Source/core/rendering/FastTextAutosizer.cpp
@@ -430,10 +430,10 @@ void FastTextAutosizer::inflateTable(RenderTable* table)
for (RenderObject* section = table->firstChild(); section; section = section->nextSibling()) {
if (!section->isTableSection())
continue;
- for (RenderObject* row = section->firstChild(); row; row = row->nextSibling()) {
+ for (RenderObject* row = toRenderTableSection(section)->firstChild(); row; row = row->nextSibling()) {
if (!row->isTableRow())
continue;
- for (RenderObject* cell = row->firstChild(); cell; cell = cell->nextSibling()) {
+ for (RenderObject* cell = toRenderTableRow(row)->firstChild(); cell; cell = cell->nextSibling()) {
if (!cell->isTableCell() || !cell->needsLayout())
continue;
RenderTableCell* renderTableCell = toRenderTableCell(cell);
@@ -948,7 +948,7 @@ const RenderObject* FastTextAutosizer::findTextLeaf(const RenderObject* parent,
return parent;
++depth;
- const RenderObject* child = (firstOrLast == First) ? parent->firstChild() : parent->lastChild();
+ const RenderObject* child = (firstOrLast == First) ? parent->slowFirstChild() : parent->slowLastChild();
while (child) {
// Note: At this point clusters may not have been created for these blocks so we cannot rely
// on m_clusters. Instead, we use a best-guess about whether the block will become a cluster.
« no previous file with comments | « Source/core/plugins/PluginOcclusionSupport.cpp ('k') | Source/core/rendering/FixedTableLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698