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/CSSTransformValue.h" | 9 #include "core/css/CSSTransformValue.h" |
10 #include "core/css/CSSValuePool.h" | 10 #include "core/css/CSSValuePool.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 case CSSPropertyMarginBottom: | 44 case CSSPropertyMarginBottom: |
45 case CSSPropertyMarginLeft: | 45 case CSSPropertyMarginLeft: |
46 case CSSPropertyMarginRight: | 46 case CSSPropertyMarginRight: |
47 case CSSPropertyMarginTop: | 47 case CSSPropertyMarginTop: |
48 case CSSPropertyRight: | 48 case CSSPropertyRight: |
49 case CSSPropertyTop: | 49 case CSSPropertyTop: |
50 case CSSPropertyWebkitMarginAfter: | 50 case CSSPropertyWebkitMarginAfter: |
51 case CSSPropertyWebkitMarginBefore: | 51 case CSSPropertyWebkitMarginBefore: |
52 case CSSPropertyWebkitMarginEnd: | 52 case CSSPropertyWebkitMarginEnd: |
53 case CSSPropertyWebkitMarginStart: | 53 case CSSPropertyWebkitMarginStart: |
| 54 case CSSPropertyX: |
| 55 case CSSPropertyY: |
54 acceptsNegativeNumbers = true; | 56 acceptsNegativeNumbers = true; |
55 return true; | 57 return true; |
56 default: | 58 default: |
57 return false; | 59 return false; |
58 } | 60 } |
59 } | 61 } |
60 | 62 |
61 template <typename CharacterType> | 63 template <typename CharacterType> |
62 static inline bool parseSimpleLength(const CharacterType* characters, unsigned l
ength, CSSPrimitiveValue::UnitType& unit, double& number) | 64 static inline bool parseSimpleLength(const CharacterType* characters, unsigned l
ength, CSSPrimitiveValue::UnitType& unit, double& number) |
63 { | 65 { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string,
parserMode)) | 658 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string,
parserMode)) |
657 return color.release(); | 659 return color.release(); |
658 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str
ing)) | 660 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str
ing)) |
659 return keyword.release(); | 661 return keyword.release(); |
660 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID
, string)) | 662 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID
, string)) |
661 return transform.release(); | 663 return transform.release(); |
662 return nullptr; | 664 return nullptr; |
663 } | 665 } |
664 | 666 |
665 } // namespace blink | 667 } // namespace blink |
OLD | NEW |