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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h

Issue 1866703002: Use characters (not code units) when computing value list positions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@svg-metrics-cleanup-14
Patch Set: Simplify the test some more. Created 4 years, 8 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: third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h
index 9d2917c594cc6bc180492519c48b464aefa595c7..817a3e056b5622668b3a4e6977dbc369c64d7db7 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextLayoutAttributesBuilder.h
@@ -73,11 +73,11 @@ public:
private:
void buildCharacterDataMap(LayoutSVGText&);
void buildLayoutAttributes(LayoutSVGText&) const;
- void collectTextPositioningElements(LayoutBoxModelObject&, UChar& lastCharacter);
+ void collectTextPositioningElements(LayoutBoxModelObject&);
void fillCharacterDataMap(const TextPosition&);
private:
- unsigned m_textLength;
+ unsigned m_characterCount;
PersistentHeapVector<TextPosition> m_textPositions;
SVGCharacterDataMap m_characterDataMap;
};

Powered by Google App Engine
This is Rietveld 408576698