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

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

Issue 723373006: Add CSS parsing support for the scroll-blocks-on property (in place of touch-action-delay) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Apply CR feedback Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/CSSTransformValue.h" 9 #include "core/css/CSSTransformValue.h"
10 #include "core/css/CSSValuePool.h" 10 #include "core/css/CSSValuePool.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 case CSSPropertyTextOverflow: // clip | ellipsis 267 case CSSPropertyTextOverflow: // clip | ellipsis
268 return valueID == CSSValueClip || valueID == CSSValueEllipsis; 268 return valueID == CSSValueClip || valueID == CSSValueEllipsis;
269 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility | geometricPrecision 269 case CSSPropertyTextRendering: // auto | optimizeSpeed | optimizeLegibility | geometricPrecision
270 return valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || va lueID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision; 270 return valueID == CSSValueAuto || valueID == CSSValueOptimizespeed || va lueID == CSSValueOptimizelegibility || valueID == CSSValueGeometricprecision;
271 case CSSPropertyTextTransform: // capitalize | uppercase | lowercase | none 271 case CSSPropertyTextTransform: // capitalize | uppercase | lowercase | none
272 return (valueID >= CSSValueCapitalize && valueID <= CSSValueLowercase) | | valueID == CSSValueNone; 272 return (valueID >= CSSValueCapitalize && valueID <= CSSValueLowercase) | | valueID == CSSValueNone;
273 case CSSPropertyUnicodeBidi: 273 case CSSPropertyUnicodeBidi:
274 return valueID == CSSValueNormal || valueID == CSSValueEmbed 274 return valueID == CSSValueNormal || valueID == CSSValueEmbed
275 || valueID == CSSValueBidiOverride || valueID == CSSValueWebkitIsola te 275 || valueID == CSSValueBidiOverride || valueID == CSSValueWebkitIsola te
276 || valueID == CSSValueWebkitIsolateOverride || valueID == CSSValueWe bkitPlaintext; 276 || valueID == CSSValueWebkitIsolateOverride || valueID == CSSValueWe bkitPlaintext;
277 case CSSPropertyTouchActionDelay: // none | script
278 ASSERT(RuntimeEnabledFeatures::cssTouchActionDelayEnabled());
279 return valueID == CSSValueScript || valueID == CSSValueNone;
280 case CSSPropertyVisibility: // visible | hidden | collapse 277 case CSSPropertyVisibility: // visible | hidden | collapse
281 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI D == CSSValueCollapse; 278 return valueID == CSSValueVisible || valueID == CSSValueHidden || valueI D == CSSValueCollapse;
282 case CSSPropertyWebkitAppearance: 279 case CSSPropertyWebkitAppearance:
283 return (valueID >= CSSValueCheckbox && valueID <= CSSValueTextarea) || v alueID == CSSValueNone; 280 return (valueID >= CSSValueCheckbox && valueID <= CSSValueTextarea) || v alueID == CSSValueNone;
284 case CSSPropertyBackfaceVisibility: 281 case CSSPropertyBackfaceVisibility:
285 case CSSPropertyWebkitBackfaceVisibility: 282 case CSSPropertyWebkitBackfaceVisibility:
286 return valueID == CSSValueVisible || valueID == CSSValueHidden; 283 return valueID == CSSValueVisible || valueID == CSSValueHidden;
287 case CSSPropertyMixBlendMode: 284 case CSSPropertyMixBlendMode:
288 ASSERT(RuntimeEnabledFeatures::cssCompositingEnabled()); 285 ASSERT(RuntimeEnabledFeatures::cssCompositingEnabled());
289 return valueID == CSSValueNormal || valueID == CSSValueMultiply || value ID == CSSValueScreen || valueID == CSSValueOverlay 286 return valueID == CSSValueNormal || valueID == CSSValueMultiply || value ID == CSSValueScreen || valueID == CSSValueOverlay
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 case CSSPropertyResize: 397 case CSSPropertyResize:
401 case CSSPropertyScrollBehavior: 398 case CSSPropertyScrollBehavior:
402 case CSSPropertySpeak: 399 case CSSPropertySpeak:
403 case CSSPropertyTableLayout: 400 case CSSPropertyTableLayout:
404 case CSSPropertyTextAlignLast: 401 case CSSPropertyTextAlignLast:
405 case CSSPropertyTextDecorationStyle: 402 case CSSPropertyTextDecorationStyle:
406 case CSSPropertyTextJustify: 403 case CSSPropertyTextJustify:
407 case CSSPropertyTextOverflow: 404 case CSSPropertyTextOverflow:
408 case CSSPropertyTextRendering: 405 case CSSPropertyTextRendering:
409 case CSSPropertyTextTransform: 406 case CSSPropertyTextTransform:
410 case CSSPropertyTouchActionDelay:
411 case CSSPropertyUnicodeBidi: 407 case CSSPropertyUnicodeBidi:
412 case CSSPropertyVisibility: 408 case CSSPropertyVisibility:
413 case CSSPropertyWebkitAppearance: 409 case CSSPropertyWebkitAppearance:
414 case CSSPropertyBackfaceVisibility: 410 case CSSPropertyBackfaceVisibility:
415 case CSSPropertyWebkitBackfaceVisibility: 411 case CSSPropertyWebkitBackfaceVisibility:
416 case CSSPropertyWebkitBorderAfterStyle: 412 case CSSPropertyWebkitBorderAfterStyle:
417 case CSSPropertyWebkitBorderBeforeStyle: 413 case CSSPropertyWebkitBorderBeforeStyle:
418 case CSSPropertyWebkitBorderEndStyle: 414 case CSSPropertyWebkitBorderEndStyle:
419 case CSSPropertyWebkitBorderStartStyle: 415 case CSSPropertyWebkitBorderStartStyle:
420 case CSSPropertyWebkitBoxAlign: 416 case CSSPropertyWebkitBoxAlign:
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode)) 658 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode))
663 return color.release(); 659 return color.release();
664 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 660 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
665 return keyword.release(); 661 return keyword.release();
666 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 662 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
667 return transform.release(); 663 return transform.release();
668 return nullptr; 664 return nullptr;
669 } 665 }
670 666
671 } // namespace blink 667 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/parser/CSSPropertyParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698