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

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

Issue 15183002: Clear SVGInlineTextBox fragments when the text changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised per reviewer comments. Created 7 years, 7 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
Index: Source/core/rendering/svg/SVGInlineTextBox.cpp
diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp
index 685fa18419dd2de509fbb0300a94e1c681e188cb..13e6802a2ba3d8f3fd841bc1b782555971363b8b 100644
--- a/Source/core/rendering/svg/SVGInlineTextBox.cpp
+++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp
@@ -68,6 +68,12 @@ void SVGInlineTextBox::dirtyLineBoxes()
// Clear the now stale text fragments
clearTextFragments();
+
+ // And clear any following text fragments as the text on which they
eseidel 2013/05/15 18:35:01 This doesn't feel right. In CSS the block handles
Stephen Chennney 2013/05/15 19:16:46 SVG creates InlineTextBoxes for reasons that diffe
+ // depend may now no longer exist.
+ InlineTextBox* nextBox = nextTextBox();
+ if (nextBox)
+ nextBox->dirtyLineBoxes();
}
int SVGInlineTextBox::offsetForPosition(float, bool) const

Powered by Google App Engine
This is Rietveld 408576698