Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: Source/core/css/parser/CSSParserFastPaths.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698