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

Unified Diff: Source/core/css/CSSParser-in.cpp

Issue 17155007: [CSS3] Parsing the property, text-justify. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parsingTextJustify
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSParser-in.cpp
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp
index 4bdef93550d310d97da145d0a73d885479fa2a0d..a9899071b9f544369bcb6c6f35f399266bf74b9d 100644
--- a/Source/core/css/CSSParser-in.cpp
+++ b/Source/core/css/CSSParser-in.cpp
@@ -692,6 +692,12 @@ static inline bool isValidKeywordPropertyAndValue(CSSPropertyID propertyId, int
&& ((valueID >= CSSValueLeft && valueID <= CSSValueJustify) || valueID == CSSValueStart || valueID == CSSValueEnd || valueID == CSSValueAuto))
return true;
break;
+ case CSSPropertyTextJustify:
+ // auto | none | inter-word | distribute
+ if (RuntimeEnabledFeatures::css3TextEnabled()
+ && (valueID == CSSValueInterWord || valueID == CSSValueDistribute || valueID == CSSValueAuto || valueID == CSSValueNone))
+ return true;
+ break;
case CSSPropertyTextLineThroughMode:
case CSSPropertyTextOverlineMode:
case CSSPropertyTextUnderlineMode:
@@ -929,6 +935,7 @@ static inline bool isKeywordPropertyID(CSSPropertyID propertyId)
case CSSPropertyMixBlendMode:
return RuntimeEnabledFeatures::cssCompositingEnabled();
case CSSPropertyTextAlignLast:
+ case CSSPropertyTextJustify:
return RuntimeEnabledFeatures::css3TextEnabled();
Julien - ping for review 2013/07/15 22:05:47 I don't think this logic is OK. In debug, we will
dw.im 2013/07/16 01:13:56 Then, I think TextAlignLast is also needed to retu
Julien - ping for review 2013/07/16 19:40:09 Right, you need to return false when the flag is o
case CSSPropertyBorderBottomStyle:
case CSSPropertyBorderCollapse:
@@ -2765,6 +2772,7 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important)
case CSSPropertySpeak:
case CSSPropertyTableLayout:
case CSSPropertyTextAlignLast:
+ case CSSPropertyTextJustify:
case CSSPropertyTextLineThroughMode:
case CSSPropertyTextLineThroughStyle:
case CSSPropertyTextOverflow:

Powered by Google App Engine
This is Rietveld 408576698