| 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" |
| 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 Loading... |
| 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 |
| OLD | NEW |