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

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

Issue 2786643003: Implement support for the 'transform-box' property (Closed)
Patch Set: Rebase; fix property spec; update histogram.xml 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
index 13596044d7c22bc8720c1a78ed7a39db0488c6d4..7e3d55409dc1f443d38198e1949cf2ece2acec47 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -806,6 +806,9 @@ bool CSSParserFastPaths::isValidKeywordPropertyAndValue(
case CSSPropertyWebkitTextSecurity:
return valueID == CSSValueDisc || valueID == CSSValueCircle ||
valueID == CSSValueSquare || valueID == CSSValueNone;
+ case CSSPropertyTransformBox:
+ return valueID == CSSValueBorderBox || valueID == CSSValueFillBox ||
+ valueID == CSSValueViewBox;
case CSSPropertyTransformStyle:
return valueID == CSSValueFlat || valueID == CSSValuePreserve3d;
case CSSPropertyWebkitUserDrag:
@@ -938,6 +941,7 @@ bool CSSParserFastPaths::isKeywordPropertyID(CSSPropertyID propertyId) {
case CSSPropertyWebkitTextCombine:
case CSSPropertyWebkitTextEmphasisPosition:
case CSSPropertyWebkitTextSecurity:
+ case CSSPropertyTransformBox:
case CSSPropertyTransformStyle:
case CSSPropertyWebkitUserDrag:
case CSSPropertyWebkitUserModify:

Powered by Google App Engine
This is Rietveld 408576698