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

Unified Diff: Source/platform/fonts/WidthIterator.h

Issue 567543002: Avoid re-parsing of string in fillText and measureText in Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating test expectation file 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 | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/WidthIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/WidthIterator.h
diff --git a/Source/platform/fonts/WidthIterator.h b/Source/platform/fonts/WidthIterator.h
index 490ebfabcf5ce87586ff7f1e16a47d81b98440c2..9291a93a8f146dbe59aff9ec1545763cbd59375b 100644
--- a/Source/platform/fonts/WidthIterator.h
+++ b/Source/platform/fonts/WidthIterator.h
@@ -79,9 +79,9 @@ private:
int characterOffset;
};
- GlyphData glyphDataForCharacter(CharacterData&);
+ GlyphData glyphDataForCharacter(CharacterData&, bool normalizeSpace = false);
float characterWidth(UChar32, const GlyphData&) const;
- void cacheFallbackFont(UChar32, const SimpleFontData*, const SimpleFontData* primaryFont);
+ void cacheFallbackFont(const SimpleFontData*, const SimpleFontData* primaryFont);
float adjustSpacing(float, const CharacterData&, const SimpleFontData&, GlyphBuffer*);
void updateGlyphBounds(const GlyphData&, float width, bool firstCharacter);
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/WidthIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698