summaryrefslogtreecommitdiffstats
path: root/WebCore/page/mac
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/page/mac')
-rw-r--r--WebCore/page/mac/FrameMac.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/page/mac/FrameMac.mm b/WebCore/page/mac/FrameMac.mm
index 356503f..bb11ac9 100644
--- a/WebCore/page/mac/FrameMac.mm
+++ b/WebCore/page/mac/FrameMac.mm
@@ -407,14 +407,14 @@ NSDictionary* Frame::fontAttributesForSelectionStart() const
NSMutableDictionary* result = [NSMutableDictionary dictionary];
- if (style->backgroundColor().isValid() && style->backgroundColor().alpha() != 0)
- [result setObject:nsColor(style->backgroundColor()) forKey:NSBackgroundColorAttributeName];
+ if (style->visitedDependentColor(CSSPropertyBackgroundColor).isValid() && style->visitedDependentColor(CSSPropertyBackgroundColor).alpha() != 0)
+ [result setObject:nsColor(style->visitedDependentColor(CSSPropertyBackgroundColor)) forKey:NSBackgroundColorAttributeName];
if (style->font().primaryFont()->getNSFont())
[result setObject:style->font().primaryFont()->getNSFont() forKey:NSFontAttributeName];
- if (style->color().isValid() && style->color() != Color::black)
- [result setObject:nsColor(style->color()) forKey:NSForegroundColorAttributeName];
+ if (style->visitedDependentColor(CSSPropertyColor).isValid() && style->visitedDependentColor(CSSPropertyColor) != Color::black)
+ [result setObject:nsColor(style->visitedDependentColor(CSSPropertyColor)) forKey:NSForegroundColorAttributeName];
const ShadowData* shadow = style->textShadow();
if (shadow) {