OLD | NEW |
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/CSSFunctionValue.h" | 9 #include "core/css/CSSFunctionValue.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/CSSParserString.h" |
13 #include "core/css/parser/CSSPropertyParser.h" | 13 #include "core/css/parser/CSSPropertyParser.h" |
14 #include "core/html/parser/HTMLParserIdioms.h" | 14 #include "core/html/parser/HTMLParserIdioms.h" |
15 #include "platform/RuntimeEnabledFeatures.h" | 15 #include "platform/RuntimeEnabledFeatures.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 | 18 |
19 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce
ptsNegativeNumbers) | 19 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce
ptsNegativeNumbers) |
20 { | 20 { |
21 switch (propertyId) { | 21 switch (propertyId) { |
22 case CSSPropertyFontSize: | 22 case CSSPropertyFontSize: |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 if (isColorPropertyID(propertyID)) | 962 if (isColorPropertyID(propertyID)) |
963 return parseColor(string, isQuirksModeBehavior(parserMode)); | 963 return parseColor(string, isQuirksModeBehavior(parserMode)); |
964 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str
ing)) | 964 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str
ing)) |
965 return keyword.release(); | 965 return keyword.release(); |
966 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID
, string)) | 966 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID
, string)) |
967 return transform.release(); | 967 return transform.release(); |
968 return nullptr; | 968 return nullptr; |
969 } | 969 } |
970 | 970 |
971 } // namespace blink | 971 } // namespace blink |
OLD | NEW |