CSSParser::parseValue() copies the m_parsedProperties vector at addParsedProperties()
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2015 19:40:03 +0000 (19:40 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Apr 2015 19:40:03 +0000 (19:40 +0000)
commitda2e2fe8217e60877d8bb964960792eb606eb6e4
tree2e0b10cfc12d9cf9fd387c8dae9cfbafdd447468
parenta6465d5fb79c04a8dca90e31945e40e463ff3885
CSSParser::parseValue() copies the m_parsedProperties vector at addParsedProperties()
https://bugs.webkit.org/show_bug.cgi?id=143925

Reviewed by Simon Fraser.

Update MutableStyleProperties::addParsedProperties() to use
CSSParser::ParsedPropertyVector type (i.e. Vector<CSSProperty, 256>)
instead of Vector<CSSProperty> so that the properties vector is no
longer copied unnecessarily to convert one type to the other.

* css/CSSParser.h:
* css/StyleProperties.cpp:
(WebCore::MutableStyleProperties::addParsedProperties):
* css/StyleProperties.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSParser.cpp
Source/WebCore/css/CSSParser.h
Source/WebCore/css/StyleProperties.cpp
Source/WebCore/css/StyleProperties.h