| Index: third_party/WebKit/Source/core/dom/TextLinkColors.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TextLinkColors.cpp b/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
|
| index 06f62ac8cc7594b46e08be6db4aab465338dd797..10b70d9a88e4430213be4cae4bd6724dcccc80f4 100644
|
| --- a/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
|
| @@ -28,6 +28,7 @@
|
| #include "config.h"
|
| #include "core/dom/TextLinkColors.h"
|
|
|
| +#include "core/css/CSSColorValue.h"
|
| #include "core/css/CSSPrimitiveValue.h"
|
| #include "core/css/StyleColor.h"
|
| #include "core/layout/LayoutTheme.h"
|
| @@ -58,12 +59,12 @@ void TextLinkColors::resetActiveLinkColor()
|
| m_activeLinkColor = Color(255, 0, 0);
|
| }
|
|
|
| -Color TextLinkColors::colorFromPrimitiveValue(const CSSPrimitiveValue& value, Color currentColor, bool forVisitedLink) const
|
| +Color TextLinkColors::colorFromCSSValue(const CSSValue& value, Color currentColor, bool forVisitedLink) const
|
| {
|
| - if (value.isRGBColor())
|
| - return Color(value.getRGBA32Value());
|
| + if (value.isColorValue())
|
| + return Color(toCSSColorValue(value).value());
|
|
|
| - CSSValueID valueID = value.getValueID();
|
| + CSSValueID valueID = toCSSPrimitiveValue(value).getValueID();
|
| switch (valueID) {
|
| case 0:
|
| return Color();
|
|
|