Semantic colors should not be transformed by color-filter
[WebKit-https.git] / Source / WebCore / platform / graphics / mac / ColorMac.mm
index b6df6f43b8765ab68fd1c95f8b7fb427f73d7e73..1ff5b723bd9227b6d1269cdf94e63d22522b7f60 100644 (file)
@@ -95,6 +95,11 @@ Color colorFromNSColor(NSColor *color)
     return Color(makeRGBAFromNSColor(color));
 }
 
+Color semanticColorFromNSColor(NSColor *color)
+{
+    return Color(makeRGBAFromNSColor(color), Color::Semantic);
+}
+
 NSColor *nsColor(const Color& color)
 {
     if (!color.isValid()) {