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

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

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 CSSPropertyR:
40 case CSSPropertyRx: 41 case CSSPropertyRx:
41 case CSSPropertyRy: 42 case CSSPropertyRy:
42 acceptsNegativeNumbers = false; 43 acceptsNegativeNumbers = false;
43 return true; 44 return true;
44 case CSSPropertyBottom: 45 case CSSPropertyBottom:
46 case CSSPropertyCx:
47 case CSSPropertyCy:
45 case CSSPropertyLeft: 48 case CSSPropertyLeft:
46 case CSSPropertyMarginBottom: 49 case CSSPropertyMarginBottom:
47 case CSSPropertyMarginLeft: 50 case CSSPropertyMarginLeft:
48 case CSSPropertyMarginRight: 51 case CSSPropertyMarginRight:
49 case CSSPropertyMarginTop: 52 case CSSPropertyMarginTop:
50 case CSSPropertyRight: 53 case CSSPropertyRight:
51 case CSSPropertyTop: 54 case CSSPropertyTop:
52 case CSSPropertyWebkitMarginAfter: 55 case CSSPropertyWebkitMarginAfter:
53 case CSSPropertyWebkitMarginBefore: 56 case CSSPropertyWebkitMarginBefore:
54 case CSSPropertyWebkitMarginEnd: 57 case CSSPropertyWebkitMarginEnd:
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode)) 663 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode))
661 return color.release(); 664 return color.release();
662 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 665 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
663 return keyword.release(); 666 return keyword.release();
664 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 667 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
665 return transform.release(); 668 return transform.release();
666 return nullptr; 669 return nullptr;
667 } 670 }
668 671
669 } // namespace blink 672 } // 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