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

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

Issue 669553002: Remove <marquee> leftovers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 2 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 | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 return valueID == CSSValueAuto || valueID == CSSValueNormal || valueID = = CSSValueNone; 325 return valueID == CSSValueAuto || valueID == CSSValueNormal || valueID = = CSSValueNone;
326 case CSSPropertyWebkitFontSmoothing: 326 case CSSPropertyWebkitFontSmoothing:
327 return valueID == CSSValueAuto || valueID == CSSValueNone || valueID == CSSValueAntialiased || valueID == CSSValueSubpixelAntialiased; 327 return valueID == CSSValueAuto || valueID == CSSValueNone || valueID == CSSValueAntialiased || valueID == CSSValueSubpixelAntialiased;
328 case CSSPropertyWebkitLineBreak: // auto | loose | normal | strict | after-w hite-space 328 case CSSPropertyWebkitLineBreak: // auto | loose | normal | strict | after-w hite-space
329 return valueID == CSSValueAuto || valueID == CSSValueLoose || valueID == CSSValueNormal || valueID == CSSValueStrict || valueID == CSSValueAfterWhiteSpa ce; 329 return valueID == CSSValueAuto || valueID == CSSValueLoose || valueID == CSSValueNormal || valueID == CSSValueStrict || valueID == CSSValueAfterWhiteSpa ce;
330 case CSSPropertyWebkitMarginAfterCollapse: 330 case CSSPropertyWebkitMarginAfterCollapse:
331 case CSSPropertyWebkitMarginBeforeCollapse: 331 case CSSPropertyWebkitMarginBeforeCollapse:
332 case CSSPropertyWebkitMarginBottomCollapse: 332 case CSSPropertyWebkitMarginBottomCollapse:
333 case CSSPropertyWebkitMarginTopCollapse: 333 case CSSPropertyWebkitMarginTopCollapse:
334 return valueID == CSSValueCollapse || valueID == CSSValueSeparate || val ueID == CSSValueDiscard; 334 return valueID == CSSValueCollapse || valueID == CSSValueSeparate || val ueID == CSSValueDiscard;
335 case CSSPropertyInternalMarqueeDirection:
336 return valueID == CSSValueForwards || valueID == CSSValueBackwards || va lueID == CSSValueAhead || valueID == CSSValueReverse || valueID == CSSValueLeft || valueID == CSSValueRight || valueID == CSSValueDown
337 || valueID == CSSValueUp || valueID == CSSValueAuto;
338 case CSSPropertyInternalMarqueeStyle:
339 return valueID == CSSValueNone || valueID == CSSValueSlide || valueID == CSSValueScroll || valueID == CSSValueAlternate;
340 case CSSPropertyWebkitPrintColorAdjust: 335 case CSSPropertyWebkitPrintColorAdjust:
341 return valueID == CSSValueExact || valueID == CSSValueEconomy; 336 return valueID == CSSValueExact || valueID == CSSValueEconomy;
342 case CSSPropertyWebkitRtlOrdering: 337 case CSSPropertyWebkitRtlOrdering:
343 return valueID == CSSValueLogical || valueID == CSSValueVisual; 338 return valueID == CSSValueLogical || valueID == CSSValueVisual;
344 case CSSPropertyWebkitRubyPosition: 339 case CSSPropertyWebkitRubyPosition:
345 return valueID == CSSValueBefore || valueID == CSSValueAfter; 340 return valueID == CSSValueBefore || valueID == CSSValueAfter;
346 case CSSPropertyWebkitTextCombine: 341 case CSSPropertyWebkitTextCombine:
347 return valueID == CSSValueNone || valueID == CSSValueHorizontal; 342 return valueID == CSSValueNone || valueID == CSSValueHorizontal;
348 case CSSPropertyWebkitTextEmphasisPosition: 343 case CSSPropertyWebkitTextEmphasisPosition:
349 return valueID == CSSValueOver || valueID == CSSValueUnder; 344 return valueID == CSSValueOver || valueID == CSSValueUnder;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 case CSSPropertyFlexDirection: 435 case CSSPropertyFlexDirection:
441 case CSSPropertyFlexWrap: 436 case CSSPropertyFlexWrap:
442 case CSSPropertyJustifyContent: 437 case CSSPropertyJustifyContent:
443 case CSSPropertyFontKerning: 438 case CSSPropertyFontKerning:
444 case CSSPropertyWebkitFontSmoothing: 439 case CSSPropertyWebkitFontSmoothing:
445 case CSSPropertyWebkitLineBreak: 440 case CSSPropertyWebkitLineBreak:
446 case CSSPropertyWebkitMarginAfterCollapse: 441 case CSSPropertyWebkitMarginAfterCollapse:
447 case CSSPropertyWebkitMarginBeforeCollapse: 442 case CSSPropertyWebkitMarginBeforeCollapse:
448 case CSSPropertyWebkitMarginBottomCollapse: 443 case CSSPropertyWebkitMarginBottomCollapse:
449 case CSSPropertyWebkitMarginTopCollapse: 444 case CSSPropertyWebkitMarginTopCollapse:
450 case CSSPropertyInternalMarqueeDirection:
451 case CSSPropertyInternalMarqueeStyle:
452 case CSSPropertyWebkitPrintColorAdjust: 445 case CSSPropertyWebkitPrintColorAdjust:
453 case CSSPropertyWebkitRtlOrdering: 446 case CSSPropertyWebkitRtlOrdering:
454 case CSSPropertyWebkitRubyPosition: 447 case CSSPropertyWebkitRubyPosition:
455 case CSSPropertyWebkitTextCombine: 448 case CSSPropertyWebkitTextCombine:
456 case CSSPropertyWebkitTextEmphasisPosition: 449 case CSSPropertyWebkitTextEmphasisPosition:
457 case CSSPropertyWebkitTextSecurity: 450 case CSSPropertyWebkitTextSecurity:
458 case CSSPropertyTransformStyle: 451 case CSSPropertyTransformStyle:
459 case CSSPropertyWebkitTransformStyle: 452 case CSSPropertyWebkitTransformStyle:
460 case CSSPropertyWebkitUserDrag: 453 case CSSPropertyWebkitUserDrag:
461 case CSSPropertyWebkitUserModify: 454 case CSSPropertyWebkitUserModify:
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode)) 666 if (RefPtrWillBeRawPtr<CSSValue> color = parseColorValue(propertyID, string, parserMode))
674 return color.release(); 667 return color.release();
675 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 668 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
676 return keyword.release(); 669 return keyword.release();
677 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 670 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
678 return transform.release(); 671 return transform.release();
679 return nullptr; 672 return nullptr;
680 } 673 }
681 674
682 } // namespace blink 675 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSValueKeywords.in ('k') | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698