| Index: Source/core/rendering/RenderTreeAsText.cpp
|
| diff --git a/Source/core/rendering/RenderTreeAsText.cpp b/Source/core/rendering/RenderTreeAsText.cpp
|
| index c7224bf837b19eb84b4f8f64f1a2705096bec343..319f7525e480a792e65cab2267926bf683427c4f 100644
|
| --- a/Source/core/rendering/RenderTreeAsText.cpp
|
| +++ b/Source/core/rendering/RenderTreeAsText.cpp
|
| @@ -261,17 +261,17 @@ void RenderTreeAsText::writeRenderObject(TextStream& ts, const RenderObject& o,
|
| // Do not dump invalid or transparent backgrounds, since that is the default.
|
| Color backgroundColor = o.resolveColor(CSSPropertyBackgroundColor);
|
| if (o.parent()->resolveColor(CSSPropertyBackgroundColor) != backgroundColor
|
| - && backgroundColor.rgb())
|
| + && backgroundColor.isValid() && backgroundColor.rgb())
|
| ts << " [bgcolor=" << backgroundColor.nameForRenderTreeAsText() << "]";
|
|
|
| Color textFillColor = o.resolveColor(CSSPropertyWebkitTextFillColor);
|
| if (o.parent()->resolveColor(CSSPropertyWebkitTextFillColor) != textFillColor
|
| - && textFillColor != color && textFillColor.rgb())
|
| + && textFillColor.isValid() && textFillColor != color && textFillColor.rgb())
|
| ts << " [textFillColor=" << textFillColor.nameForRenderTreeAsText() << "]";
|
|
|
| Color textStrokeColor = o.resolveColor(CSSPropertyWebkitTextStrokeColor);
|
| if (o.parent()->resolveColor(CSSPropertyWebkitTextStrokeColor) != textStrokeColor
|
| - && textStrokeColor != color && textStrokeColor.rgb())
|
| + && textStrokeColor.isValid() && textStrokeColor != color && textStrokeColor.rgb())
|
| ts << " [textStrokeColor=" << textStrokeColor.nameForRenderTreeAsText() << "]";
|
|
|
| if (o.parent()->style()->textStrokeWidth() != o.style()->textStrokeWidth() && o.style()->textStrokeWidth() > 0)
|
|
|