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

Unified Diff: Source/core/plugins/PluginOcclusionSupport.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/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/plugins/PluginOcclusionSupport.cpp
diff --git a/Source/core/plugins/PluginOcclusionSupport.cpp b/Source/core/plugins/PluginOcclusionSupport.cpp
index f5541414c6b74cf09e27e976513709ebe8b8ecf4..8a3ce869ecebf62c13ef0c38f23460d03a64183f 100644
--- a/Source/core/plugins/PluginOcclusionSupport.cpp
+++ b/Source/core/plugins/PluginOcclusionSupport.cpp
@@ -100,7 +100,7 @@ static bool iframeIsAbovePlugin(const Vector<const RenderObject*>& iframeZstack,
return false;
ASSERT(parent == ro2->parent());
- for (const RenderObject* ro = parent->firstChild(); ro; ro = ro->nextSibling()) {
+ for (const RenderObject* ro = parent->slowFirstChild(); ro; ro = ro->nextSibling()) {
if (ro == ro1)
return false;
if (ro == ro2)
@@ -132,7 +132,7 @@ static void addTreeToOcclusions(const RenderObject* renderer, const IntRect& fra
return;
if (renderer->isBox() && intersectsRect(renderer, frameRect))
addToOcclusions(toRenderBox(renderer), occlusions);
- for (RenderObject* child = renderer->firstChild(); child; child = child->nextSibling())
+ for (RenderObject* child = renderer->slowFirstChild(); child; child = child->nextSibling())
addTreeToOcclusions(child, frameRect, occlusions);
}
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/rendering/FastTextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698