Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
index 8dfc839b6fdc138cfd97f38765d977ba7b00863f..02dfe398c5c9f019d68f8f2cf755fa8704e38802 100644 |
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
@@ -30,6 +30,7 @@ |
#include "core/rendering/HitTestResult.h" |
#include "core/rendering/InlineFlowBox.h" |
#include "core/rendering/PointerEventsHitRules.h" |
+#include "core/rendering/RenderInline.h" |
#include "core/rendering/RenderTheme.h" |
#include "core/rendering/style/ShadowList.h" |
#include "core/rendering/svg/RenderSVGInlineText.h" |
@@ -286,8 +287,9 @@ void SVGInlineTextBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse |
hasFill = svgSelectionStyle->hasFill(); |
if (!hasVisibleStroke) |
hasVisibleStroke = svgSelectionStyle->hasVisibleStroke(); |
- } else |
+ } else { |
selectionStyle = style; |
+ } |
} |
if (textRenderer.frame() && textRenderer.frame()->view() && textRenderer.frame()->view()->paintBehavior() & PaintBehaviorRenderingSVGMask) { |
@@ -345,6 +347,10 @@ void SVGInlineTextBox::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffse |
paintDecoration(paintInfo.context, TextDecorationLineThrough, fragment); |
} |
+ // finally, paint the outline if any |
+ if (style->hasOutline() && parentRenderer.isRenderInline()) |
+ toRenderInline(parentRenderer).paintOutline(paintInfo, paintOffset); |
+ |
ASSERT(!m_paintingResource); |
} |