| Index: Source/core/rendering/RenderObject.cpp
|
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
|
| index 5c5b178fc3fc813735e0bdd8586dd01e4a20f601..abd5a713c066bcf813603550231d2168ebe6268a 100644
|
| --- a/Source/core/rendering/RenderObject.cpp
|
| +++ b/Source/core/rendering/RenderObject.cpp
|
| @@ -3063,23 +3063,6 @@ bool RenderObject::hasBlendMode() const
|
| return RuntimeEnabledFeatures::cssCompositingEnabled() && style() && style()->hasBlendMode();
|
| }
|
|
|
| -static Color decorationColor(const RenderObject* object, RenderStyle* style)
|
| -{
|
| - // Check for text decoration color first.
|
| - StyleColor result = style->visitedDependentDecorationColor();
|
| - if (!result.isCurrentColor())
|
| - return result.color();
|
| -
|
| - if (style->textStrokeWidth() > 0) {
|
| - // Prefer stroke color if possible but not if it's fully transparent.
|
| - Color textStrokeColor = object->resolveColor(style, CSSPropertyWebkitTextStrokeColor);
|
| - if (textStrokeColor.alpha())
|
| - return textStrokeColor;
|
| - }
|
| -
|
| - return object->resolveColor(style, CSSPropertyWebkitTextFillColor);
|
| -}
|
| -
|
| void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoration& underline, AppliedTextDecoration& overline, AppliedTextDecoration& linethrough, bool quirksMode, bool firstlineStyle)
|
| {
|
| RenderObject* curr = this;
|
| @@ -3091,7 +3074,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
|
| styleToUse = curr->style(firstlineStyle);
|
| currDecs = styleToUse->textDecoration();
|
| currDecs &= decorations;
|
| - resultColor = decorationColor(this, styleToUse);
|
| + resultColor = styleToUse->visitedDependentDecorationColor();
|
| resultStyle = styleToUse->textDecorationStyle();
|
| // Parameter 'decorations' is cast as an int to enable the bitwise operations below.
|
| if (currDecs) {
|
| @@ -3121,7 +3104,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio
|
| // If we bailed out, use the element we bailed out at (typically a <font> or <a> element).
|
| if (decorations && curr) {
|
| styleToUse = curr->style(firstlineStyle);
|
| - resultColor = decorationColor(this, styleToUse);
|
| + resultColor = styleToUse->visitedDependentDecorationColor();
|
| if (decorations & TextDecorationUnderline) {
|
| underline.color = resultColor;
|
| underline.style = resultStyle;
|
|
|