Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
index 105e5dc5ac5a2f4583a147c59b9321d0af52ad42..824dc83dec89c23defd5d799d233a42160c2a536 100644 |
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
@@ -681,13 +681,19 @@ void SVGInlineTextBox::paintText(GraphicsContext* context, RenderStyle* style, |
paintTextWithShadows(context, style, textRun, fragment, 0, startPosition, resourceMode); |
// Draw text using selection style from the start to the end position of the selection |
- if (style != selectionStyle) |
- SVGResourcesCache::clientStyleChanged(&parent()->renderer(), StyleDifferenceRepaint, selectionStyle); |
+ if (style != selectionStyle) { |
+ StyleDifference diff; |
+ diff.setNeedsRepaintSelf(); |
+ SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selectionStyle); |
+ } |
paintTextWithShadows(context, selectionStyle, textRun, fragment, startPosition, endPosition, resourceMode); |
- if (style != selectionStyle) |
- SVGResourcesCache::clientStyleChanged(&parent()->renderer(), StyleDifferenceRepaint, style); |
+ if (style != selectionStyle) { |
+ StyleDifference diff; |
+ diff.setNeedsRepaintSelf(); |
+ SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selectionStyle); |
+ } |
// Eventually draw text using regular style from the end position of the selection to the end of the current chunk part |
if (endPosition < static_cast<int>(fragment.length) && !paintSelectedTextOnly) |