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

Side by Side Diff: Source/core/rendering/RenderTreeAsText.cpp

Issue 645623003: Remove hack to suppress pseudo element names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 ts << o.renderName(); 168 ts << o.renderName();
169 169
170 if (behavior & RenderAsTextShowAddresses) 170 if (behavior & RenderAsTextShowAddresses)
171 ts << " " << static_cast<const void*>(&o); 171 ts << " " << static_cast<const void*>(&o);
172 172
173 if (o.style() && o.style()->zIndex()) 173 if (o.style() && o.style()->zIndex())
174 ts << " zI: " << o.style()->zIndex(); 174 ts << " zI: " << o.style()->zIndex();
175 175
176 if (o.node()) { 176 if (o.node()) {
177 String tagName = getTagName(o.node()); 177 String tagName = getTagName(o.node());
178 // FIXME: Temporary hack to make tests pass by simulating the old genera ted content output.
179 if (o.isPseudoElement() || (o.parent() && o.parent()->isPseudoElement()) )
180 tagName = emptyAtom;
181 if (!tagName.isEmpty()) { 178 if (!tagName.isEmpty()) {
182 ts << " {" << tagName << "}"; 179 ts << " {" << tagName << "}";
183 // flag empty or unstyled AppleStyleSpan because we never 180 // flag empty or unstyled AppleStyleSpan because we never
184 // want to leave them in the DOM 181 // want to leave them in the DOM
185 if (isEmptyOrUnstyledAppleStyleSpan(o.node())) 182 if (isEmptyOrUnstyledAppleStyleSpan(o.node()))
186 ts << " *empty or unstyled AppleStyleSpan*"; 183 ts << " *empty or unstyled AppleStyleSpan*";
187 } 184 }
188 } 185 }
189 186
190 RenderBlock* cb = o.containingBlock(); 187 RenderBlock* cb = o.containingBlock();
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 element->document().updateLayout(); 770 element->document().updateLayout();
774 771
775 RenderObject* renderer = element->renderer(); 772 RenderObject* renderer = element->renderer();
776 if (!renderer || !renderer->isListItem()) 773 if (!renderer || !renderer->isListItem())
777 return String(); 774 return String();
778 775
779 return toRenderListItem(renderer)->markerText(); 776 return toRenderListItem(renderer)->markerText();
780 } 777 }
781 778
782 } // namespace blink 779 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698