summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/Color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/Color.cpp')
-rw-r--r--WebCore/platform/graphics/Color.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/platform/graphics/Color.cpp b/WebCore/platform/graphics/Color.cpp
index f28d51c..fa7346e 100644
--- a/WebCore/platform/graphics/Color.cpp
+++ b/WebCore/platform/graphics/Color.cpp
@@ -175,8 +175,7 @@ Color::Color(const char* name)
m_valid = parseHexColor(&name[1], m_color);
else {
const NamedColor* foundColor = findColor(name, strlen(name));
- m_color = foundColor ? foundColor->RGBValue : 0;
- m_color |= 0xFF000000;
+ m_color = foundColor ? foundColor->ARGBValue : 0;
m_valid = foundColor;
}
}
@@ -219,8 +218,7 @@ static inline const NamedColor* findNamedColor(const String& name)
void Color::setNamedColor(const String& name)
{
const NamedColor* foundColor = findNamedColor(name);
- m_color = foundColor ? foundColor->RGBValue : 0;
- m_color |= 0xFF000000;
+ m_color = foundColor ? foundColor->ARGBValue : 0;
m_valid = foundColor;
}