| 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 "core/css/parser/CSSParserFastPaths.h" | 5 #include "core/css/parser/CSSParserFastPaths.h" |
| 6 | 6 |
| 7 #include "core/StylePropertyShorthand.h" | 7 #include "core/StylePropertyShorthand.h" |
| 8 #include "core/css/CSSColorValue.h" | 8 #include "core/css/CSSColorValue.h" |
| 9 #include "core/css/CSSFunctionValue.h" | 9 #include "core/css/CSSFunctionValue.h" |
| 10 #include "core/css/CSSInheritedValue.h" | 10 #include "core/css/CSSInheritedValue.h" |
| 11 #include "core/css/CSSInitialValue.h" | 11 #include "core/css/CSSInitialValue.h" |
| 12 #include "core/css/CSSPrimitiveValue.h" | 12 #include "core/css/CSSPrimitiveValue.h" |
| 13 #include "core/css/StyleColor.h" | 13 #include "core/css/StyleColor.h" |
| 14 #include "core/css/parser/CSSParserIdioms.h" | 14 #include "core/css/parser/CSSParserIdioms.h" |
| 15 #include "core/css/parser/CSSPropertyParser.h" | 15 #include "core/css/parser/CSSPropertyParser.h" |
| 16 #include "core/html/parser/HTMLParserIdioms.h" | 16 #include "core/html/parser/HTMLParserIdioms.h" |
| 17 #include "platform/RuntimeEnabledFeatures.h" | 17 #include "platform/RuntimeEnabledFeatures.h" |
| 18 #include "wtf/text/StringToNumber.h" |
| 18 | 19 |
| 19 namespace blink { | 20 namespace blink { |
| 20 | 21 |
| 21 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce
ptsNegativeNumbers) | 22 static inline bool isSimpleLengthPropertyID(CSSPropertyID propertyId, bool& acce
ptsNegativeNumbers) |
| 22 { | 23 { |
| 23 switch (propertyId) { | 24 switch (propertyId) { |
| 24 case CSSPropertyFontSize: | 25 case CSSPropertyFontSize: |
| 25 case CSSPropertyGridColumnGap: | 26 case CSSPropertyGridColumnGap: |
| 26 case CSSPropertyGridRowGap: | 27 case CSSPropertyGridRowGap: |
| 27 case CSSPropertyHeight: | 28 case CSSPropertyHeight: |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 if (isColorPropertyID(propertyID)) | 1075 if (isColorPropertyID(propertyID)) |
| 1075 return parseColor(string, parserMode); | 1076 return parseColor(string, parserMode); |
| 1076 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) | 1077 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) |
| 1077 return keyword; | 1078 return keyword; |
| 1078 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) | 1079 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) |
| 1079 return transform; | 1080 return transform; |
| 1080 return nullptr; | 1081 return nullptr; |
| 1081 } | 1082 } |
| 1082 | 1083 |
| 1083 } // namespace blink | 1084 } // namespace blink |
| OLD | NEW |