| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index 503fe07915439bf4f6c60b8bc49dedc0bc312079..8dfbcfa4a0e6ad8c4fb2db86822329bd2cde9ebd 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -1063,9 +1063,9 @@ void HTMLElement::addHTMLColorToStyle(MutableStylePropertySet* style, CSSPropert
|
| return;
|
|
|
| // If the string is a named CSS color or a 3/6-digit hex color, use that.
|
| - StyleColor parsedColor(colorString);
|
| + Color parsedColor(colorString);
|
| if (!parsedColor.isValid())
|
| - parsedColor = parseColorStringWithCrazyLegacyRules(colorString);
|
| + parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString));
|
|
|
| style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.rgb()));
|
| }
|
|
|