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

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

Issue 2821073002: Do not parse caption-side: left / right as valid CSS. (Closed)
Patch Set: Do not parse caption-side: left / right as valid CSS. 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | 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/CSSIdentifierValue.h" 10 #include "core/css/CSSIdentifierValue.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 case CSSPropertyWebkitBorderEndStyle: 529 case CSSPropertyWebkitBorderEndStyle:
530 case CSSPropertyWebkitBorderStartStyle: 530 case CSSPropertyWebkitBorderStartStyle:
531 case CSSPropertyColumnRuleStyle: 531 case CSSPropertyColumnRuleStyle:
532 return value_id >= CSSValueNone && value_id <= CSSValueDouble; 532 return value_id >= CSSValueNone && value_id <= CSSValueDouble;
533 case CSSPropertyBoxSizing: 533 case CSSPropertyBoxSizing:
534 return value_id == CSSValueBorderBox || value_id == CSSValueContentBox; 534 return value_id == CSSValueBorderBox || value_id == CSSValueContentBox;
535 case CSSPropertyBufferedRendering: 535 case CSSPropertyBufferedRendering:
536 return value_id == CSSValueAuto || value_id == CSSValueDynamic || 536 return value_id == CSSValueAuto || value_id == CSSValueDynamic ||
537 value_id == CSSValueStatic; 537 value_id == CSSValueStatic;
538 case CSSPropertyCaptionSide: 538 case CSSPropertyCaptionSide:
539 return value_id == CSSValueLeft || value_id == CSSValueRight || 539 return value_id == CSSValueTop || value_id == CSSValueBottom;
540 value_id == CSSValueTop || value_id == CSSValueBottom;
541 case CSSPropertyClear: 540 case CSSPropertyClear:
542 return value_id == CSSValueNone || value_id == CSSValueLeft || 541 return value_id == CSSValueNone || value_id == CSSValueLeft ||
543 value_id == CSSValueRight || value_id == CSSValueBoth; 542 value_id == CSSValueRight || value_id == CSSValueBoth;
544 case CSSPropertyClipRule: 543 case CSSPropertyClipRule:
545 case CSSPropertyFillRule: 544 case CSSPropertyFillRule:
546 return value_id == CSSValueNonzero || value_id == CSSValueEvenodd; 545 return value_id == CSSValueNonzero || value_id == CSSValueEvenodd;
547 case CSSPropertyColorInterpolation: 546 case CSSPropertyColorInterpolation:
548 case CSSPropertyColorInterpolationFilters: 547 case CSSPropertyColorInterpolationFilters:
549 return value_id == CSSValueAuto || value_id == CSSValueSRGB || 548 return value_id == CSSValueAuto || value_id == CSSValueSRGB ||
550 value_id == CSSValueLinearRGB; 549 value_id == CSSValueLinearRGB;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 if (IsColorPropertyID(property_id)) 1223 if (IsColorPropertyID(property_id))
1225 return ParseColor(string, parser_mode); 1224 return ParseColor(string, parser_mode);
1226 if (CSSValue* keyword = ParseKeywordValue(property_id, string, parser_mode)) 1225 if (CSSValue* keyword = ParseKeywordValue(property_id, string, parser_mode))
1227 return keyword; 1226 return keyword;
1228 if (CSSValue* transform = ParseSimpleTransform(property_id, string)) 1227 if (CSSValue* transform = ParseSimpleTransform(property_id, string))
1229 return transform; 1228 return transform;
1230 return nullptr; 1229 return nullptr;
1231 } 1230 }
1232 1231
1233 } // namespace blink 1232 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698