Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index bacc6c588b996b74f4965d55e00ba5bed33a0f97..73c428c61d3fe04a42b18790b390575ad79bdcb0 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -3070,7 +3070,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio |
Color resultColor; |
TextDecorationStyle resultStyle; |
do { |
- styleToUse = curr->style(firstlineStyle); |
+ styleToUse = curr->style(firstlineStyle ? FirstLineStyle : OwnStyle); |
currDecs = styleToUse->textDecoration(); |
currDecs &= decorations; |
resultColor = styleToUse->visitedDependentDecorationColor(); |
@@ -3102,7 +3102,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio |
// If we bailed out, use the element we bailed out at (typically a <font> or <a> element). |
if (decorations && curr) { |
- styleToUse = curr->style(firstlineStyle); |
+ styleToUse = curr->style(firstlineStyle ? FirstLineStyle : OwnStyle); |
resultColor = styleToUse->visitedDependentDecorationColor(); |
if (decorations & TextDecorationUnderline) { |
underline.color = resultColor; |