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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.h

Issue 2416033003: Remove unsafe getFontMetrics methods (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/platform/fonts/Font.h
diff --git a/third_party/WebKit/Source/platform/fonts/Font.h b/third_party/WebKit/Source/platform/fonts/Font.h
index bff7ab2b0ded9a9ba7b53770ea2e1d11a38d1433..77b837aedae3d6bac52311252578e8181791d891 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.h
+++ b/third_party/WebKit/Source/platform/fonts/Font.h
@@ -123,10 +123,6 @@ class PLATFORM_EXPORT Font {
Vector<CharacterRange> individualCharacterRanges(const TextRun&) const;
// Metrics that we query the FontFallbackList for.
- const FontMetrics& getFontMetrics() const {
wkorman 2016/10/13 22:54:31 Suggest adding documentation to Font::primaryFont(
eae 2016/10/13 23:09:58 Done, thank you.
- RELEASE_ASSERT(primaryFont());
- return primaryFont()->getFontMetrics();
- }
float spaceWidth() const {
return primaryFont()->spaceWidth() + getFontDescription().letterSpacing();
}

Powered by Google App Engine
This is Rietveld 408576698