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

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

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests 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/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "core/css/CSSValuePool.h" 10 #include "core/css/CSSValuePool.h"
(...skipping 19 matching lines...) Expand all
30 case CSSPropertyPaddingTop: 30 case CSSPropertyPaddingTop:
31 case CSSPropertyWebkitLogicalWidth: 31 case CSSPropertyWebkitLogicalWidth:
32 case CSSPropertyWebkitLogicalHeight: 32 case CSSPropertyWebkitLogicalHeight:
33 case CSSPropertyWebkitMinLogicalWidth: 33 case CSSPropertyWebkitMinLogicalWidth:
34 case CSSPropertyWebkitMinLogicalHeight: 34 case CSSPropertyWebkitMinLogicalHeight:
35 case CSSPropertyWebkitPaddingAfter: 35 case CSSPropertyWebkitPaddingAfter:
36 case CSSPropertyWebkitPaddingBefore: 36 case CSSPropertyWebkitPaddingBefore:
37 case CSSPropertyWebkitPaddingEnd: 37 case CSSPropertyWebkitPaddingEnd:
38 case CSSPropertyWebkitPaddingStart: 38 case CSSPropertyWebkitPaddingStart:
39 case CSSPropertyShapeMargin: 39 case CSSPropertyShapeMargin:
40 case CSSPropertyRx:
41 case CSSPropertyRy:
40 acceptsNegativeNumbers = false; 42 acceptsNegativeNumbers = false;
41 return true; 43 return true;
42 case CSSPropertyBottom: 44 case CSSPropertyBottom:
43 case CSSPropertyLeft: 45 case CSSPropertyLeft:
44 case CSSPropertyMarginBottom: 46 case CSSPropertyMarginBottom:
45 case CSSPropertyMarginLeft: 47 case CSSPropertyMarginLeft:
46 case CSSPropertyMarginRight: 48 case CSSPropertyMarginRight:
47 case CSSPropertyMarginTop: 49 case CSSPropertyMarginTop:
48 case CSSPropertyRight: 50 case CSSPropertyRight:
49 case CSSPropertyTop: 51 case CSSPropertyTop:
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode)) 660 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode))
659 return color.release(); 661 return color.release();
660 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 662 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
661 return keyword.release(); 663 return keyword.release();
662 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 664 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
663 return transform.release(); 665 return transform.release();
664 return nullptr; 666 return nullptr;
665 } 667 }
666 668
667 } // namespace blink 669 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698