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

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

Issue 873963002: Enable text-align-last property, by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 5 years, 3 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/CSSProperties.in ('k') | Source/core/layout/LayoutBlockFlowLine.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/CSSFunctionValue.h" 9 #include "core/css/CSSFunctionValue.h"
10 #include "core/css/CSSValuePool.h" 10 #include "core/css/CSSValuePool.h"
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation 576 case CSSPropertySpeak: // none | normal | spell-out | digits | literal-punct uation | no-punctuation
577 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID = = CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun ctuation || valueID == CSSValueNoPunctuation; 577 return valueID == CSSValueNone || valueID == CSSValueNormal || valueID = = CSSValueSpellOut || valueID == CSSValueDigits || valueID == CSSValueLiteralPun ctuation || valueID == CSSValueNoPunctuation;
578 case CSSPropertyStrokeLinejoin: 578 case CSSPropertyStrokeLinejoin:
579 return valueID == CSSValueMiter || valueID == CSSValueRound || valueID = = CSSValueBevel; 579 return valueID == CSSValueMiter || valueID == CSSValueRound || valueID = = CSSValueBevel;
580 case CSSPropertyStrokeLinecap: 580 case CSSPropertyStrokeLinecap:
581 return valueID == CSSValueButt || valueID == CSSValueRound || valueID == CSSValueSquare; 581 return valueID == CSSValueButt || valueID == CSSValueRound || valueID == CSSValueSquare;
582 case CSSPropertyTableLayout: // auto | fixed 582 case CSSPropertyTableLayout: // auto | fixed
583 return valueID == CSSValueAuto || valueID == CSSValueFixed; 583 return valueID == CSSValueAuto || valueID == CSSValueFixed;
584 case CSSPropertyTextAlignLast: 584 case CSSPropertyTextAlignLast:
585 // auto | start | end | left | right | center | justify 585 // auto | start | end | left | right | center | justify
586 ASSERT(RuntimeEnabledFeatures::css3TextEnabled());
587 return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueI D == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto; 586 return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueI D == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto;
588 case CSSPropertyTextAnchor: 587 case CSSPropertyTextAnchor:
589 return valueID == CSSValueStart || valueID == CSSValueMiddle || valueID == CSSValueEnd; 588 return valueID == CSSValueStart || valueID == CSSValueMiddle || valueID == CSSValueEnd;
590 case CSSPropertyTextDecorationStyle: 589 case CSSPropertyTextDecorationStyle:
591 // solid | double | dotted | dashed | wavy 590 // solid | double | dotted | dashed | wavy
592 ASSERT(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); 591 ASSERT(RuntimeEnabledFeatures::css3TextDecorationsEnabled());
593 return valueID == CSSValueSolid || valueID == CSSValueDouble || valueID == CSSValueDotted || valueID == CSSValueDashed || valueID == CSSValueWavy; 592 return valueID == CSSValueSolid || valueID == CSSValueDouble || valueID == CSSValueDotted || valueID == CSSValueDashed || valueID == CSSValueWavy;
594 case CSSPropertyTextJustify: 593 case CSSPropertyTextJustify:
595 // auto | none | inter-word | distribute 594 // auto | none | inter-word | distribute
596 ASSERT(RuntimeEnabledFeatures::css3TextEnabled()); 595 ASSERT(RuntimeEnabledFeatures::css3TextEnabled());
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 if (isColorPropertyID(propertyID)) 1012 if (isColorPropertyID(propertyID))
1014 return parseColor(string, parserMode); 1013 return parseColor(string, parserMode);
1015 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing)) 1014 if (RefPtrWillBeRawPtr<CSSValue> keyword = parseKeywordValue(propertyID, str ing))
1016 return keyword.release(); 1015 return keyword.release();
1017 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string)) 1016 if (RefPtrWillBeRawPtr<CSSValue> transform = parseSimpleTransform(propertyID , string))
1018 return transform.release(); 1017 return transform.release();
1019 return nullptr; 1018 return nullptr;
1020 } 1019 }
1021 1020
1022 } // namespace blink 1021 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/layout/LayoutBlockFlowLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698