CSSGradientValue's color stops vector wastes 12KB on theverge.com
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jun 2018 03:03:50 +0000 (03:03 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jun 2018 03:03:50 +0000 (03:03 +0000)
commit9635989086a323b884a526e0720bb0871bbc5864
treea12d71fac5576a254e8145606a86497be343a652
parent7415304ee66431c2d029b393e700d4bf059a6e53
CSSGradientValue's color stops vector wastes 12KB on theverge.com
https://bugs.webkit.org/show_bug.cgi?id=186988

Reviewed by Sam Weinig.

Shrink the color stops vector when we're done parsing the stops.

* css/CSSGradientValue.h:
(WebCore::CSSGradientValue::doneAddingStops):
* css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeDeprecatedGradient):
(WebCore::CSSPropertyParserHelpers::consumeGradientColorStops):
(WebCore::CSSPropertyParserHelpers::consumeAngularGradientColorStops):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233241 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSGradientValue.h
Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp