Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1169)

Unified Diff: Source/core/rendering/svg/SVGInlineTextBox.cpp

Issue 585563002: [SVG] Restore the non-selection style after painting the selected run (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak test. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/text/selection-partial-gradient-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
index ce4e89cd9a28513c1af3830a129c4a861367e786..c52e4ca7c36ce5175f5270c415963c7b0f91b66c 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
@@ -662,7 +662,7 @@ void SVGInlineTextBox::paintText(GraphicsContext* context, RenderStyle* style,
if (style != selectionStyle) {
StyleDifference diff;
diff.setNeedsPaintInvalidationObject();
- SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, selectionStyle);
+ SVGResourcesCache::clientStyleChanged(&parent()->renderer(), diff, style);
}
// Eventually draw text using regular style from the end position of the selection to the end of the current chunk part
« no previous file with comments | « LayoutTests/svg/text/selection-partial-gradient-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698