Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: Source/core/css/parser/CSSParserFastPaths.cpp

Issue 903253002: Reduce number of includes in CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/parser/CSSParserFastPaths.h" 6 #include "core/css/parser/CSSParserFastPaths.h"
7 7
8 #include "core/StylePropertyShorthand.h" 8 #include "core/StylePropertyShorthand.h"
9 #include "core/css/CSSTransformValue.h" 9 #include "core/css/CSSTransformValue.h"
10 #include "core/css/CSSValuePool.h" 10 #include "core/css/CSSValuePool.h"
11 #include "core/css/parser/CSSParserIdioms.h" 11 #include "core/css/parser/CSSParserIdioms.h"
12 #include "core/css/parser/CSSParserValues.h" 12 #include "core/css/parser/CSSParserValues.h"
13 #include "core/css/parser/CSSPropertyParser.h" 13 #include "core/css/parser/CSSPropertyParser.h"
14 #include "platform/RuntimeEnabledFeatures.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers) 18 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce ptsNegativeNumbers)
18 { 19 {
19 switch (propertyId) { 20 switch (propertyId) {
20 case CSSPropertyFontSize: 21 case CSSPropertyFontSize:
21 case CSSPropertyHeight: 22 case CSSPropertyHeight:
22 case CSSPropertyWidth: 23 case CSSPropertyWidth:
23 case CSSPropertyMinHeight: 24 case CSSPropertyMinHeight:
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode)) 656 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode))
656 return color.release(); 657 return color.release();
657 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 658 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
658 return keyword.release(); 659 return keyword.release();
659 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 660 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
660 return transform.release(); 661 return transform.release();
661 return nullptr; 662 return nullptr;
662 } 663 }
663 664
664 } // namespace blink 665 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698