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

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

Issue 6592050: Merge 77273 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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 | « LayoutTests/fast/css/counters/deep-before-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderTreeAsText.cpp
===================================================================
--- Source/WebCore/rendering/RenderTreeAsText.cpp (revision 79930)
+++ Source/WebCore/rendering/RenderTreeAsText.cpp (working copy)
@@ -769,13 +769,12 @@
element->document()->updateLayout();
TextStream stream;
bool isFirstCounter = true;
- // The counter renderers should be children of anonymous children
- // (i.e., :before or :after pseudo-elements).
+ // The counter renderers should be children of :before or :after pseudo-elements.
if (RenderObject* renderer = element->renderer()) {
- for (RenderObject* child = renderer->firstChild(); child; child = child->nextSibling()) {
- if (child->isAnonymous())
- writeCounterValuesFromChildren(stream, child, isFirstCounter);
- }
+ if (RenderObject* pseudoElement = renderer->beforePseudoElementRenderer())
+ writeCounterValuesFromChildren(stream, pseudoElement, isFirstCounter);
+ if (RenderObject* pseudoElement = renderer->afterPseudoElementRenderer())
+ writeCounterValuesFromChildren(stream, pseudoElement, isFirstCounter);
}
return stream.release();
}
« no previous file with comments | « LayoutTests/fast/css/counters/deep-before-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698