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

Unified Diff: Source/core/editing/TextIterator.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/dom/Text.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/TextIterator.cpp
diff --git a/Source/core/editing/TextIterator.cpp b/Source/core/editing/TextIterator.cpp
index 61072a597d8488a13c155bb1c842a4bc1c1961e6..c62fb7e13f968d93416ab829a008d2ebdcd67def 100644
--- a/Source/core/editing/TextIterator.cpp
+++ b/Source/core/editing/TextIterator.cpp
@@ -749,7 +749,7 @@ static inline RenderText* firstRenderTextInFirstLetter(RenderObject* firstLetter
return 0;
// FIXME: Should this check descendent objects?
- for (RenderObject* current = firstLetter->firstChild(); current; current = current->nextSibling()) {
+ for (RenderObject* current = firstLetter->slowFirstChild(); current; current = current->nextSibling()) {
if (current->isText())
return toRenderText(current);
}
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698