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

Unified Diff: Source/core/layout/svg/LayoutSVGInlineText.h

Issue 1150383003: Don't iterate past the end of the metrics list (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/layout/svg/LayoutSVGInlineText.h
diff --git a/Source/core/layout/svg/LayoutSVGInlineText.h b/Source/core/layout/svg/LayoutSVGInlineText.h
index 98594511cc37aa203334a8a99ccd3ad40a92fe2a..b0f22264ab509266e1c11beb6c8e1721e56e1c98 100644
--- a/Source/core/layout/svg/LayoutSVGInlineText.h
+++ b/Source/core/layout/svg/LayoutSVGInlineText.h
@@ -106,6 +106,7 @@ public:
const Vector<SVGTextMetrics>& metricsList() const { return m_textLayoutObject->layoutAttributes()->textMetricsValues(); }
unsigned metricsListOffset() const { return m_metricsListOffset; }
unsigned characterOffset() const { return m_characterOffset; }
+ bool isAtEnd() const { return m_metricsListOffset == metricsList().size(); }
private:
void reset(const LayoutSVGInlineText* textLayoutObject)
« no previous file with comments | « LayoutTests/svg/text/unpaired-surrogate-crash-expected.txt ('k') | Source/core/layout/svg/SVGTextLayoutEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698