| Index: third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| index f09922197c3f80765ef167fa650db48f8669f711..30bc4d81d68450103a6e24390c9557188f344936 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
|
| @@ -948,17 +948,17 @@ static RGBA32 parseColorStringWithCrazyLegacyRules(const String& colorString) {
|
| // "characters" in the String.
|
| for (; i < colorString.length() && digitBuffer.size() < maxColorLength; i++) {
|
| if (!isASCIIHexDigit(colorString[i]))
|
| - digitBuffer.append('0');
|
| + digitBuffer.push_back('0');
|
| else
|
| - digitBuffer.append(colorString[i]);
|
| + digitBuffer.push_back(colorString[i]);
|
| }
|
|
|
| if (!digitBuffer.size())
|
| return Color::black;
|
|
|
| // Pad the buffer out to at least the next multiple of three in size.
|
| - digitBuffer.append('0');
|
| - digitBuffer.append('0');
|
| + digitBuffer.push_back('0');
|
| + digitBuffer.push_back('0');
|
|
|
| if (digitBuffer.size() < 6)
|
| return makeRGB(toASCIIHexValue(digitBuffer[0]),
|
|
|