Index: Source/core/html/HTMLHRElement.cpp |
diff --git a/Source/core/html/HTMLHRElement.cpp b/Source/core/html/HTMLHRElement.cpp |
index e8a35a1c550f078c28c5aeb9efac9244d1df8f68..912c589e927827e4183666eef859a4be03da5150 100644 |
--- a/Source/core/html/HTMLHRElement.cpp |
+++ b/Source/core/html/HTMLHRElement.cpp |
@@ -76,11 +76,13 @@ void HTMLHRElement::collectStyleForPresentationAttribute(const QualifiedName& na |
addHTMLColorToStyle(style, CSSPropertyBorderColor, value); |
addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); |
} else if (name == noshadeAttr) { |
- addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, CSSValueSolid); |
+ if (!hasAttribute(colorAttr)) { |
+ addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderStyle, CSSValueSolid); |
- RefPtrWillBeRawPtr<CSSPrimitiveValue> darkGrayValue = cssValuePool().createColorValue(Color::darkGray); |
- style->setProperty(CSSPropertyBorderColor, darkGrayValue); |
- style->setProperty(CSSPropertyBackgroundColor, darkGrayValue); |
+ RefPtrWillBeRawPtr<CSSPrimitiveValue> darkGrayValue = cssValuePool().createColorValue(Color::darkGray); |
+ style->setProperty(CSSPropertyBorderColor, darkGrayValue); |
+ style->setProperty(CSSPropertyBackgroundColor, darkGrayValue); |
+ } |
} else if (name == sizeAttr) { |
StringImpl* si = value.impl(); |
int size = si->toInt(); |