Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index 4728932f4336a8a2e5db0e9762673725d363d0dc..4beab5aa66caa8bb94df0f4a37abbd0cc50cff5b 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -3140,7 +3140,7 @@ void RenderObject::getTextDecorations(unsigned decorations, AppliedTextDecoratio |
Color resultColor; |
TextDecorationStyle resultStyle; |
do { |
- styleToUse = curr->style(firstlineStyle); |
+ styleToUse = curr->styleOrFirstLineStyle(firstlineStyle); |
currDecs = styleToUse->textDecoration(); |
currDecs &= decorations; |
resultColor = styleToUse->visitedDependentDecorationColor(); |
@@ -3172,7 +3172,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->styleOrFirstLineStyle(firstlineStyle); |
resultColor = styleToUse->visitedDependentDecorationColor(); |
if (decorations & TextDecorationUnderline) { |
underline.color = resultColor; |