Reduce usage of CSSParserValueList::size
commit0a29d719e9d0fdf47b88823969b851ed7db0f6ba
authorrob.buis@samsung.com <rob.buis@samsung.com>
Tue, 18 Aug 2015 18:45:44 +0000 (18 18:45 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Tue, 18 Aug 2015 18:45:44 +0000 (18 18:45 +0000)
tree8dcd0f8dc8df345482d772a0f1fe6057f07af447
parent8d708c97cc09abbb6825e88c0ec1894d11893614
Reduce usage of CSSParserValueList::size

Since CSSParserTokenRange represents a stream, calling something
like  size on it makes no sense. So change the logic in these
places to not call size by checking for end of the value list.

BUG=499780

Review URL: https://codereview.chromium.org/1225403010

git-svn-id: svn://svn.chromium.org/blink/trunk@200741 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h