Index: Source/core/rendering/EllipsisBox.cpp |
diff --git a/Source/core/rendering/EllipsisBox.cpp b/Source/core/rendering/EllipsisBox.cpp |
index 8f51b4db7ff471f77391bd6522c1cb63160e9d03..c5cb7cf373b49b2de4407fce19ae38b17c1c11c1 100644 |
--- a/Source/core/rendering/EllipsisBox.cpp |
+++ b/Source/core/rendering/EllipsisBox.cpp |
@@ -37,7 +37,7 @@ void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La |
{ |
GraphicsContext* context = paintInfo.context; |
RenderStyle* style = m_renderer->style(isFirstLineStyle()); |
- Color styleTextColor = style->visitedDependentColor(CSSPropertyWebkitTextFillColor); |
+ Color styleTextColor = m_renderer->resolveColor(style, CSSPropertyWebkitTextFillColor); |
if (styleTextColor != context->fillColor()) |
context->setFillColor(styleTextColor); |
@@ -61,7 +61,7 @@ void EllipsisBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset, La |
int shadowX = isHorizontal() ? shadow->x() : shadow->y(); |
int shadowY = isHorizontal() ? shadow->y() : -shadow->x(); |
FloatSize offset(shadowX, shadowY); |
- drawLooper.addShadow(offset, shadow->blur(), shadow->color(), |
+ drawLooper.addShadow(offset, shadow->blur(), m_renderer->resolveColor(shadow->color()), |
DrawLooper::ShadowRespectsTransforms, DrawLooper::ShadowIgnoresAlpha); |
} while ((shadow = shadow->next())); |
drawLooper.addUnmodifiedContent(); |
@@ -129,7 +129,7 @@ IntRect EllipsisBox::selectionRect() |
void EllipsisBox::paintSelection(GraphicsContext* context, const LayoutPoint& paintOffset, RenderStyle* style, const Font& font) |
{ |
- Color textColor = style->visitedDependentColor(CSSPropertyColor); |
+ Color textColor = m_renderer->resolveColor(style, CSSPropertyColor); |
Color c = m_renderer->selectionBackgroundColor(); |
if (!c.isValid() || !c.alpha()) |
return; |