Index: Source/core/rendering/RenderImage.cpp |
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp |
index 793352e555ccd118baa96eb2e2d2052e371d8fcd..ef689ce3c37b92515a5e05c4b2e405ee4581e72b 100644 |
--- a/Source/core/rendering/RenderImage.cpp |
+++ b/Source/core/rendering/RenderImage.cpp |
@@ -346,7 +346,7 @@ void RenderImage::paintReplaced(PaintInfo& paintInfo, const LayoutPoint& paintOf |
LayoutUnit textWidth = font.width(textRun); |
TextRunPaintInfo textRunPaintInfo(textRun); |
textRunPaintInfo.bounds = FloatRect(textRectOrigin, FloatSize(textWidth, fontMetrics.height())); |
- context->setFillColor(style()->visitedDependentColor(CSSPropertyColor)); |
+ context->setFillColor(resolveColor(CSSPropertyColor)); |
if (errorPictureDrawn) { |
if (usableWidth >= textWidth && fontMetrics.height() <= imageOffset.height()) |
context->drawText(font, textRunPaintInfo, textOrigin); |
@@ -421,7 +421,7 @@ void RenderImage::paintAreaElementFocusRing(PaintInfo& paintInfo) |
paintInfo.context->clip(absoluteContentBox()); |
paintInfo.context->drawFocusRing(path, outlineWidth, |
areaElementStyle->outlineOffset(), |
- areaElementStyle->visitedDependentColor(CSSPropertyOutlineColor)); |
+ resolveColor(areaElementStyle, CSSPropertyOutlineColor)); |
} |
void RenderImage::areaElementFocusChanged(HTMLAreaElement* areaElement) |