Bug 1231485 part 1 - Fix text-emphasis shorthand with style part unspecified being computed incorrectly. draft
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 16 Dec 2015 00:08:53 +1100
changeset 315600 b4778d16ec656277b57f4b0a6fd50c465baec656
parent 315599 7d123f5ce64922bcbff5e40a3a2a4427a6b85902
child 315601 0d317df52b15943518d116febbe9fcbd422ad2b2
push id8436
push userxquan@mozilla.com
push dateTue, 15 Dec 2015 22:14:22 +0000
bugs1231485
milestone46.0a1
Bug 1231485 part 1 - Fix text-emphasis shorthand with style part unspecified being computed incorrectly.
layout/style/nsCSSParser.cpp
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -14521,18 +14521,17 @@ CSSParserImpl::ParseTextEmphasis()
   nsCSSValue values[numProps];
 
   int32_t found = ParseChoice(values, kTextEmphasisIDs, numProps);
   if (found < 1) {
     return false;
   }
 
   if (!(found & 1)) { // Provide default text-emphasis-style
-    values[0].SetIntValue(NS_STYLE_TEXT_EMPHASIS_STYLE_NONE,
-                          eCSSUnit_Enumerated);
+    values[0].SetNoneValue();
   }
   if (!(found & 2)) { // Provide default text-emphasis-color
     values[1].SetIntValue(NS_COLOR_CURRENTCOLOR, eCSSUnit_EnumColor);
   }
 
   for (int32_t index = 0; index < numProps; index++) {
     AppendValue(kTextEmphasisIDs[index], values[index]);
   }