Enable text-align-last property, by default.

text-align-last is the CSS property which can affect to the last line of a block, even if it is also first line of it.
http://www.w3.org/TR/css-text-3/#text-align-last-property

Review URL: https://codereview.chromium.org/873963002

git-svn-id: svn://svn.chromium.org/blink/trunk@202655 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt
index e89607a..bc0efc8 100644
--- a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt
+++ b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt
@@ -209,6 +209,7 @@
 tabSize
 tableLayout
 textAlign
+textAlignLast
 textAnchor
 textDecoration
 textIndent
diff --git a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/nonstable-css-properties-expected.txt b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/nonstable-css-properties-expected.txt
index 26889bb..a879f3a 100644
--- a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/nonstable-css-properties-expected.txt
+++ b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/nonstable-css-properties-expected.txt
@@ -59,10 +59,6 @@
 el.style.getPropertyValue('grid-template-areas') is 
 getComputedStyle(el).getPropertyValue('grid-template-areas') is 
 
-el.style.setProperty('text-align-last', 'start')
-el.style.getPropertyValue('text-align-last') is 
-getComputedStyle(el).getPropertyValue('text-align-last') is 
-
 el.style.setProperty('text-justify', 'distribute')
 el.style.getPropertyValue('text-justify') is 
 getComputedStyle(el).getPropertyValue('text-justify') is 
diff --git a/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties-expected.txt b/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties-expected.txt
index ddb117b..f61be19 100644
--- a/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties-expected.txt
+++ b/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties-expected.txt
@@ -59,10 +59,6 @@
 el.style.getPropertyValue('grid-template-areas') is "test"
 getComputedStyle(el).getPropertyValue('grid-template-areas') is "test"
 
-el.style.setProperty('text-align-last', 'start')
-el.style.getPropertyValue('text-align-last') is start
-getComputedStyle(el).getPropertyValue('text-align-last') is start
-
 el.style.setProperty('text-justify', 'distribute')
 el.style.getPropertyValue('text-justify') is distribute
 getComputedStyle(el).getPropertyValue('text-justify') is distribute
diff --git a/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties.html b/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties.html
index 41993fe..90f6d54 100644
--- a/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties.html
+++ b/third_party/WebKit/LayoutTests/webexposed/nonstable-css-properties.html
@@ -37,7 +37,6 @@
 ['grid-auto-flow', 'column'],
 ['grid-template-areas', '"test"'],
 
-['text-align-last', 'start'],
 ['text-justify', 'distribute'],
 ];
 
diff --git a/third_party/WebKit/Source/core/css/CSSProperties.in b/third_party/WebKit/Source/core/css/CSSProperties.in
index bcec101..75d70ff 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.in
+++ b/third_party/WebKit/Source/core/css/CSSProperties.in
@@ -281,7 +281,7 @@
 table-layout
 tab-size inherited, converter=convertLengthOrTabSpaces
 text-align inherited, custom_value
-text-align-last runtime_flag=CSS3Text, inherited, type_name=TextAlignLast
+text-align-last inherited, type_name=TextAlignLast
 text-anchor inherited, svg
 // FIXME: We shouldn't switch between shorthand/not shorthand based on a runtime flag
 text-decoration use_handlers_for=CSSPropertyTextDecorationLine, longhands=text-decoration-line;text-decoration-style;text-decoration-color
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
index e4575e9..ce8d9db 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -655,7 +655,6 @@
       return valueID == CSSValueAuto || valueID == CSSValueFixed;
     case CSSPropertyTextAlignLast:
       // auto | start | end | left | right | center | justify
-      ASSERT(RuntimeEnabledFeatures::css3TextEnabled());
       return (valueID >= CSSValueLeft && valueID <= CSSValueJustify) ||
              valueID == CSSValueStart || valueID == CSSValueEnd ||
              valueID == CSSValueAuto;
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index d725375..fb3acb5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -294,9 +294,6 @@
   if (endsWithSoftBreak)
     return alignment;
 
-  if (!RuntimeEnabledFeatures::css3TextEnabled())
-    return (alignment == JUSTIFY) ? TASTART : alignment;
-
   TextAlignLast alignmentLast = style()->textAlignLast();
   switch (alignmentLast) {
     case TextAlignLastStart: