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

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

Issue 2223313003: Remove ImageRenderingPixelated runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('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 "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/CSSInheritedValue.h" 10 #include "core/css/CSSInheritedValue.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 || (valueID >= CSSValueCentral && valueID <= CSSValueMathematical); 531 || (valueID >= CSSValueCentral && valueID <= CSSValueMathematical);
532 case CSSPropertyEmptyCells: // show | hide 532 case CSSPropertyEmptyCells: // show | hide
533 return valueID == CSSValueShow || valueID == CSSValueHide; 533 return valueID == CSSValueShow || valueID == CSSValueHide;
534 case CSSPropertyFloat: // left | right | none 534 case CSSPropertyFloat: // left | right | none
535 return valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CSSValueNone; 535 return valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CSSValueNone;
536 case CSSPropertyFontStyle: // normal | italic | oblique 536 case CSSPropertyFontStyle: // normal | italic | oblique
537 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID == CSSValueOblique; 537 return valueID == CSSValueNormal || valueID == CSSValueItalic || valueID == CSSValueOblique;
538 case CSSPropertyFontStretch: // normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra- expanded 538 case CSSPropertyFontStretch: // normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra- expanded
539 return valueID == CSSValueNormal || (valueID >= CSSValueUltraCondensed & & valueID <= CSSValueUltraExpanded); 539 return valueID == CSSValueNormal || (valueID >= CSSValueUltraCondensed & & valueID <= CSSValueUltraExpanded);
540 case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated 540 case CSSPropertyImageRendering: // auto | optimizeContrast | pixelated
541 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr ast || (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && valueID == C SSValuePixelated); 541 return valueID == CSSValueAuto || valueID == CSSValueWebkitOptimizeContr ast || valueID == CSSValuePixelated;
542 case CSSPropertyIsolation: // auto | isolate 542 case CSSPropertyIsolation: // auto | isolate
543 return valueID == CSSValueAuto || valueID == CSSValueIsolate; 543 return valueID == CSSValueAuto || valueID == CSSValueIsolate;
544 case CSSPropertyListStylePosition: // inside | outside 544 case CSSPropertyListStylePosition: // inside | outside
545 return valueID == CSSValueInside || valueID == CSSValueOutside; 545 return valueID == CSSValueInside || valueID == CSSValueOutside;
546 case CSSPropertyListStyleType: 546 case CSSPropertyListStyleType:
547 // See section CSS_PROP_LIST_STYLE_TYPE of file CSSValueKeywords.in 547 // See section CSS_PROP_LIST_STYLE_TYPE of file CSSValueKeywords.in
548 // for the list of supported list-style-types. 548 // for the list of supported list-style-types.
549 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) || valueID == CSSValueNone; 549 return (valueID >= CSSValueDisc && valueID <= CSSValueKatakanaIroha) || valueID == CSSValueNone;
550 case CSSPropertyMaskType: 550 case CSSPropertyMaskType:
551 return valueID == CSSValueLuminance || valueID == CSSValueAlpha; 551 return valueID == CSSValueLuminance || valueID == CSSValueAlpha;
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 if (isColorPropertyID(propertyID)) 1081 if (isColorPropertyID(propertyID))
1082 return parseColor(string, parserMode); 1082 return parseColor(string, parserMode);
1083 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode)) 1083 if (CSSValue* keyword = parseKeywordValue(propertyID, string, parserMode))
1084 return keyword; 1084 return keyword;
1085 if (CSSValue* transform = parseSimpleTransform(propertyID, string)) 1085 if (CSSValue* transform = parseSimpleTransform(propertyID, string))
1086 return transform; 1086 return transform;
1087 return nullptr; 1087 return nullptr;
1088 } 1088 }
1089 1089
1090 } // namespace blink 1090 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698