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

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

Issue 2786643003: Implement support for the 'transform-box' property (Closed)
Patch Set: Update existing tests to be compatible Created 3 years, 8 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 "core/css/parser/CSSParserFastPaths.h" 5 #include "core/css/parser/CSSParserFastPaths.h"
6 6
7 #include "core/StylePropertyShorthand.h" 7 #include "core/StylePropertyShorthand.h"
8 #include "core/css/CSSColorValue.h" 8 #include "core/css/CSSColorValue.h"
9 #include "core/css/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "core/css/CSSIdentifierValue.h" 10 #include "core/css/CSSIdentifierValue.h"
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 return valueID == CSSValueLogical || valueID == CSSValueVisual; 797 return valueID == CSSValueLogical || valueID == CSSValueVisual;
798 case CSSPropertyWebkitRubyPosition: 798 case CSSPropertyWebkitRubyPosition:
799 return valueID == CSSValueBefore || valueID == CSSValueAfter; 799 return valueID == CSSValueBefore || valueID == CSSValueAfter;
800 case CSSPropertyWebkitTextCombine: 800 case CSSPropertyWebkitTextCombine:
801 return valueID == CSSValueNone || valueID == CSSValueHorizontal; 801 return valueID == CSSValueNone || valueID == CSSValueHorizontal;
802 case CSSPropertyWebkitTextEmphasisPosition: 802 case CSSPropertyWebkitTextEmphasisPosition:
803 return valueID == CSSValueOver || valueID == CSSValueUnder; 803 return valueID == CSSValueOver || valueID == CSSValueUnder;
804 case CSSPropertyWebkitTextSecurity: 804 case CSSPropertyWebkitTextSecurity:
805 return valueID == CSSValueDisc || valueID == CSSValueCircle || 805 return valueID == CSSValueDisc || valueID == CSSValueCircle ||
806 valueID == CSSValueSquare || valueID == CSSValueNone; 806 valueID == CSSValueSquare || valueID == CSSValueNone;
807 case CSSPropertyTransformBox:
808 return valueID == CSSValueBorderBox || valueID == CSSValueFillBox ||
809 valueID == CSSValueViewBox;
807 case CSSPropertyTransformStyle: 810 case CSSPropertyTransformStyle:
808 return valueID == CSSValueFlat || valueID == CSSValuePreserve3d; 811 return valueID == CSSValueFlat || valueID == CSSValuePreserve3d;
809 case CSSPropertyWebkitUserDrag: 812 case CSSPropertyWebkitUserDrag:
810 return valueID == CSSValueAuto || valueID == CSSValueNone || 813 return valueID == CSSValueAuto || valueID == CSSValueNone ||
811 valueID == CSSValueElement; 814 valueID == CSSValueElement;
812 case CSSPropertyWebkitUserModify: 815 case CSSPropertyWebkitUserModify:
813 return valueID == CSSValueReadOnly || valueID == CSSValueReadWrite || 816 return valueID == CSSValueReadOnly || valueID == CSSValueReadWrite ||
814 valueID == CSSValueReadWritePlaintextOnly; 817 valueID == CSSValueReadWritePlaintextOnly;
815 case CSSPropertyUserSelect: 818 case CSSPropertyUserSelect:
816 return valueID == CSSValueAuto || valueID == CSSValueNone || 819 return valueID == CSSValueAuto || valueID == CSSValueNone ||
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 case CSSPropertyWebkitMarginAfterCollapse: 932 case CSSPropertyWebkitMarginAfterCollapse:
930 case CSSPropertyWebkitMarginBeforeCollapse: 933 case CSSPropertyWebkitMarginBeforeCollapse:
931 case CSSPropertyWebkitMarginBottomCollapse: 934 case CSSPropertyWebkitMarginBottomCollapse:
932 case CSSPropertyWebkitMarginTopCollapse: 935 case CSSPropertyWebkitMarginTopCollapse:
933 case CSSPropertyWebkitPrintColorAdjust: 936 case CSSPropertyWebkitPrintColorAdjust:
934 case CSSPropertyWebkitRtlOrdering: 937 case CSSPropertyWebkitRtlOrdering:
935 case CSSPropertyWebkitRubyPosition: 938 case CSSPropertyWebkitRubyPosition:
936 case CSSPropertyWebkitTextCombine: 939 case CSSPropertyWebkitTextCombine:
937 case CSSPropertyWebkitTextEmphasisPosition: 940 case CSSPropertyWebkitTextEmphasisPosition:
938 case CSSPropertyWebkitTextSecurity: 941 case CSSPropertyWebkitTextSecurity:
942 case CSSPropertyTransformBox:
939 case CSSPropertyTransformStyle: 943 case CSSPropertyTransformStyle:
940 case CSSPropertyWebkitUserDrag: 944 case CSSPropertyWebkitUserDrag:
941 case CSSPropertyWebkitUserModify: 945 case CSSPropertyWebkitUserModify:
942 case CSSPropertyUserSelect: 946 case CSSPropertyUserSelect:
943 case CSSPropertyWebkitWritingMode: 947 case CSSPropertyWebkitWritingMode:
944 case CSSPropertyWhiteSpace: 948 case CSSPropertyWhiteSpace:
945 case CSSPropertyWordBreak: 949 case CSSPropertyWordBreak:
946 case CSSPropertyWordWrap: 950 case CSSPropertyWordWrap:
947 case CSSPropertyWritingMode: 951 case CSSPropertyWritingMode:
948 case CSSPropertyScrollSnapType: 952 case CSSPropertyScrollSnapType:
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 if (isColorPropertyID(propertyID)) 1212 if (isColorPropertyID(propertyID))
1209 return parseColor(string, parserMode); 1213 return parseColor(string, parserMode);
1210 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) 1214 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode))
1211 return keyword; 1215 return keyword;
1212 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) 1216 if (CSSValue* transform = parseSimpleTransform(propertyID, string))
1213 return transform; 1217 return transform;
1214 return nullptr; 1218 return nullptr;
1215 } 1219 }
1216 1220
1217 } // namespace blink 1221 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698