Commit a9baf2d0 authored by L. David Baron's avatar L. David Baron
Browse files

Remove unreachable code, since text-decoration:none is not stored as an...

Remove unreachable code, since text-decoration:none is not stored as an enumerated value.  (Bug 481595)  r+sr=bzbarsky
parent 73dcd3c8
Loading
Loading
Loading
Loading
+11 −14
Original line number Diff line number Diff line
@@ -311,7 +311,8 @@ nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty,
  else if (eCSSUnit_Enumerated == unit) {
    if (eCSSProperty_text_decoration == aProperty) {
      PRInt32 intValue = aValue.GetIntValue();
      if (NS_STYLE_TEXT_DECORATION_NONE != intValue) {
      NS_ABORT_IF_FALSE(NS_STYLE_TEXT_DECORATION_NONE != intValue,
                        "none should be parsed as eCSSUnit_None");
      PRInt32 mask;
      for (mask = NS_STYLE_TEXT_DECORATION_UNDERLINE;
           mask <= NS_STYLE_TEXT_DECORATION_BLINK; 
@@ -325,10 +326,6 @@ nsCSSDeclaration::AppendCSSValueToString(nsCSSProperty aProperty,
        }
      }
    }
      else {
        AppendASCIItoUTF16(nsCSSProps::LookupPropertyValue(aProperty, NS_STYLE_TEXT_DECORATION_NONE), aResult);
      }
    }
    else if (eCSSProperty_azimuth == aProperty) {
      PRInt32 intValue = aValue.GetIntValue();
      AppendASCIItoUTF16(nsCSSProps::LookupPropertyValue(aProperty, (intValue & ~NS_STYLE_AZIMUTH_BEHIND)), aResult);