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

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

Issue 27217007: Merge 158839 "Reverse style resolution to avoid N^2 walk when bu..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1650/
Patch Set: Created 7 years, 2 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/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderRegion.cpp
===================================================================
--- Source/core/rendering/RenderRegion.cpp (revision 159683)
+++ Source/core/rendering/RenderRegion.cpp (working copy)
@@ -550,7 +550,7 @@
void RenderRegion::computeChildrenStyleInRegion(const RenderObject* object)
{
- for (RenderObject* child = object->firstChild(); child; child = child->nextSibling()) {
+ for (RenderObject* child = object->lastChild(); child; child = child->previousSibling()) {
RenderObjectRegionStyleMap::iterator it = m_renderObjectRegionStyle.find(child);
@@ -602,7 +602,7 @@
m_renderObjectRegionStyle.remove(object);
// Clear the style for the children of this object.
- for (RenderObject* child = object->firstChild(); child; child = child->nextSibling())
+ for (RenderObject* child = object->lastChild(); child; child = child->previousSibling())
clearObjectStyleInRegion(child);
}
« no previous file with comments | « Source/core/dom/shadow/ShadowRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698