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

Unified Diff: Source/core/inspector/InspectorCSSAgent.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/editing/htmlediting.cpp ('k') | Source/core/plugins/PluginOcclusionSupport.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.cpp
diff --git a/Source/core/inspector/InspectorCSSAgent.cpp b/Source/core/inspector/InspectorCSSAgent.cpp
index 6ad444dae3d95d8a5fc4ba1e105afb3773a1ff9b..b870e6b19f28115b79442f316730fe6b92001500 100644
--- a/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/Source/core/inspector/InspectorCSSAgent.cpp
@@ -781,7 +781,7 @@ void InspectorCSSAgent::getPlatformFontsForNode(ErrorString* errorString, int no
RenderTextFragment* textFragment = toRenderTextFragment(renderer);
if (textFragment->firstLetter()) {
RenderObject* firstLetter = textFragment->firstLetter();
- for (RenderObject* current = firstLetter->firstChild(); current; current = current->nextSibling()) {
+ for (RenderObject* current = firstLetter->slowFirstChild(); current; current = current->nextSibling()) {
if (current->isText())
collectPlatformFontsForRenderer(toRenderText(current), &fontStats);
}
« no previous file with comments | « Source/core/editing/htmlediting.cpp ('k') | Source/core/plugins/PluginOcclusionSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698