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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 acceptsNegativeNumbers = false; | 48 acceptsNegativeNumbers = false; |
49 return true; | 49 return true; |
50 case CSSPropertyBottom: | 50 case CSSPropertyBottom: |
51 case CSSPropertyCx: | 51 case CSSPropertyCx: |
52 case CSSPropertyCy: | 52 case CSSPropertyCy: |
53 case CSSPropertyLeft: | 53 case CSSPropertyLeft: |
54 case CSSPropertyMarginBottom: | 54 case CSSPropertyMarginBottom: |
55 case CSSPropertyMarginLeft: | 55 case CSSPropertyMarginLeft: |
56 case CSSPropertyMarginRight: | 56 case CSSPropertyMarginRight: |
57 case CSSPropertyMarginTop: | 57 case CSSPropertyMarginTop: |
58 case CSSPropertyMotionOffset: | 58 case CSSPropertyOffsetDistance: |
59 case CSSPropertyRight: | 59 case CSSPropertyRight: |
60 case CSSPropertyTop: | 60 case CSSPropertyTop: |
61 case CSSPropertyWebkitMarginAfter: | 61 case CSSPropertyWebkitMarginAfter: |
62 case CSSPropertyWebkitMarginBefore: | 62 case CSSPropertyWebkitMarginBefore: |
63 case CSSPropertyWebkitMarginEnd: | 63 case CSSPropertyWebkitMarginEnd: |
64 case CSSPropertyWebkitMarginStart: | 64 case CSSPropertyWebkitMarginStart: |
65 case CSSPropertyX: | 65 case CSSPropertyX: |
66 case CSSPropertyY: | 66 case CSSPropertyY: |
67 acceptsNegativeNumbers = true; | 67 acceptsNegativeNumbers = true; |
68 return true; | 68 return true; |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 if (isColorPropertyID(propertyID)) | 1085 if (isColorPropertyID(propertyID)) |
1086 return parseColor(string, parserMode); | 1086 return parseColor(string, parserMode); |
1087 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) | 1087 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) |
1088 return keyword; | 1088 return keyword; |
1089 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) | 1089 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) |
1090 return transform; | 1090 return transform; |
1091 return nullptr; | 1091 return nullptr; |
1092 } | 1092 } |
1093 | 1093 |
1094 } // namespace blink | 1094 } // namespace blink |
OLD | NEW |