| Index: Source/core/rendering/RenderTreeAsText.cpp
|
| diff --git a/Source/core/rendering/RenderTreeAsText.cpp b/Source/core/rendering/RenderTreeAsText.cpp
|
| index 6fb01b89623dd2a2645ff5a37939fe8f78a3816d..8ecb8923711f786cacb55e4bbb82060a6dfa3d84 100644
|
| --- a/Source/core/rendering/RenderTreeAsText.cpp
|
| +++ b/Source/core/rendering/RenderTreeAsText.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "core/HTMLNames.h"
|
| #include "core/css/StylePropertySet.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/PseudoElement.h"
|
| #include "core/editing/FrameSelection.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| @@ -176,7 +177,7 @@ void RenderTreeAsText::writeRenderObject(TextStream& ts, const RenderObject& o,
|
| if (o.node()) {
|
| String tagName = getTagName(o.node());
|
| // FIXME: Temporary hack to make tests pass by simulating the old generated content output.
|
| - if (o.isPseudoElement() || (o.parent() && o.parent()->isPseudoElement()))
|
| + if (o.isPseudoElement() || (o.parent() && o.parent()->isPseudoElement() && toPseudoElement(o.parent()->node())->pseudoId() != FIRST_LETTER))
|
| tagName = emptyAtom;
|
| if (!tagName.isEmpty()) {
|
| ts << " {" << tagName << "}";
|
|
|