Index: third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
diff --git a/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp b/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
index 1fa83b9d8129ae1a49473c784c96a9d096aae55a..e95fbc84c8fe08c69318677a95e7ec7c40455c24 100644 |
--- a/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
+++ b/third_party/WebKit/Source/web/tests/sim/SimDisplayItemList.cpp |
@@ -29,11 +29,11 @@ void SimDisplayItemList::appendDrawingItem(const SkPicture* picture) |
bool SimDisplayItemList::contains(SimCanvas::CommandType type, const String& colorString) const |
{ |
- RGBA32 color = 0; |
+ Color color = 0; |
if (!colorString.isNull()) |
RELEASE_ASSERT(CSSParser::parseColor(color, colorString, true)); |
for (auto& command : m_commands) { |
- if (command.type == type && (colorString.isNull() || command.color == color)) |
+ if (command.type == type && (colorString.isNull() || command.color == color.rgb())) |
return true; |
} |
return false; |