| Index: third_party/WebKit/Source/platform/graphics/Color.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Color.cpp b/third_party/WebKit/Source/platform/graphics/Color.cpp
|
| index 39cfb207752d0d7e92121e34e654c88f9d839228..cc973b6447b1a5ca3d45bb8a9530db6827630bd9 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Color.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Color.cpp
|
| @@ -167,11 +167,9 @@ bool Color::parseHexColor(const UChar* name, unsigned length, RGBA32& rgb)
|
| return parseHexColorInternal(name, length, rgb);
|
| }
|
|
|
| -bool Color::parseHexColor(const String& name, RGBA32& rgb)
|
| +bool Color::parseHexColor(const StringView& name, RGBA32& rgb)
|
| {
|
| - unsigned length = name.length();
|
| -
|
| - if (!length)
|
| + if (name.isEmpty())
|
| return false;
|
| if (name.is8Bit())
|
| return parseHexColor(name.characters8(), name.length(), rgb);
|
|
|