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

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

Issue 1835303002: Implementation of the GreenWeb language extensions. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change GreenWeb-related CSS property names such that they apply in the desired order at runtime. Created 4 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 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 104d7188378d44a3a431d2982cfe8c09bc5db38c..fa9ba0ed44dffa0307469bd39f138f8754dbe714 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -467,6 +467,18 @@ bool CSSParserFastPaths::isValidKeywordPropertyAndValue(CSSPropertyID propertyId
return false;
switch (propertyId) {
+ case CSSPropertyOnclickType:
+ case CSSPropertyOnscrollType:
+ case CSSPropertyOntouchstartType:
+ case CSSPropertyOntouchendType:
+ case CSSPropertyOntouchmoveType:
+ return valueID == CSSValueSingle || valueID == CSSValueContinuous;
+ case CSSPropertyOnclickVduration:
+ case CSSPropertyOnscrollVduration:
+ case CSSPropertyOntouchstartVduration:
+ case CSSPropertyOntouchendVduration:
+ case CSSPropertyOntouchmoveVduration:
+ return valueID == CSSValueShort || valueID == CSSValueLong;
case CSSPropertyAlignmentBaseline:
// auto | baseline | before-edge | text-before-edge | middle |
// central | after-edge | text-after-edge | ideographic | alphabetic |
@@ -710,6 +722,16 @@ bool CSSParserFastPaths::isValidKeywordPropertyAndValue(CSSPropertyID propertyId
bool CSSParserFastPaths::isKeywordPropertyID(CSSPropertyID propertyId)
{
switch (propertyId) {
+ case CSSPropertyOnclickType:
+ case CSSPropertyOnclickVduration:
+ case CSSPropertyOnscrollType:
+ case CSSPropertyOnscrollVduration:
+ case CSSPropertyOntouchstartType:
+ case CSSPropertyOntouchstartVduration:
+ case CSSPropertyOntouchendType:
+ case CSSPropertyOntouchendVduration:
+ case CSSPropertyOntouchmoveType:
+ case CSSPropertyOntouchmoveVduration:
case CSSPropertyAlignmentBaseline:
case CSSPropertyAll:
case CSSPropertyMixBlendMode:

Powered by Google App Engine
This is Rietveld 408576698