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

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

Issue 669633002: Revert of TextRun::length() should return an unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/SVGTextMetricsBuilder.cpp
diff --git a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
index 711aa32c23ef41d161c03960ff220718ffdb09e4..5f3cbf0ea0b6f1c7d3ea9a705291674a8be1d448 100644
--- a/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
+++ b/Source/core/rendering/svg/SVGTextMetricsBuilder.cpp
@@ -18,6 +18,7 @@
*/
#include "config.h"
+
#include "core/rendering/svg/SVGTextMetricsBuilder.h"
#include "core/rendering/svg/RenderSVGInline.h"
@@ -42,7 +43,7 @@
~SVGTextMetricsCalculator();
SVGTextMetrics computeMetricsForCharacter(unsigned textPosition);
- unsigned textLength() const { return m_run.charactersLength(); }
+ unsigned textLength() const { return static_cast<unsigned>(m_run.charactersLength()); }
bool characterStartsSurrogatePair(unsigned textPosition) const
{
« no previous file with comments | « Source/core/rendering/svg/SVGTextMetrics.cpp ('k') | Source/core/rendering/svg/SVGTextRunRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698