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

Unified Diff: Source/WebCore/rendering/RenderCounter.cpp

Issue 7049017: Merge 86358 - 2011-05-12 Carol Szabo <carol@webkit.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 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/WebCore/rendering/RenderCounter.h ('k') | Source/WebCore/rendering/RenderObjectChildList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderCounter.cpp
===================================================================
--- Source/WebCore/rendering/RenderCounter.cpp (revision 86864)
+++ Source/WebCore/rendering/RenderCounter.cpp (working copy)
@@ -575,6 +575,19 @@
// map associated with a renderer, so there is no risk in leaking the map.
}
+void RenderCounter::rendererRemovedFromTree(RenderObject* removedRenderer)
+{
+ RenderObject* currentRenderer = removedRenderer->lastLeafChild();
+ if (!currentRenderer)
+ currentRenderer = removedRenderer;
+ while (true) {
+ destroyCounterNodes(currentRenderer);
+ if (currentRenderer == removedRenderer)
+ break;
+ currentRenderer = currentRenderer->previousInPreOrder();
+ }
+}
+
static void updateCounters(RenderObject* renderer)
{
ASSERT(renderer->style());
« no previous file with comments | « Source/WebCore/rendering/RenderCounter.h ('k') | Source/WebCore/rendering/RenderObjectChildList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698