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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/Font.h

Issue 2751163002: Report UseCounter metric when observing NotDef glyphs (Closed)
Patch Set: Relax num_glyphs assertion, not feasible on Mac Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Holger Hans Peter Freyther 6 * Copyright (C) 2008 Holger Hans Peter Freyther
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Whether the font supports shaping word by word instead of shaping the 190 // Whether the font supports shaping word by word instead of shaping the
191 // full run in one go. Allows better caching for fonts where space cannot 191 // full run in one go. Allows better caching for fonts where space cannot
192 // participate in kerning and/or ligatures. 192 // participate in kerning and/or ligatures.
193 bool CanShapeWordByWord() const; 193 bool CanShapeWordByWord() const;
194 194
195 void SetCanShapeWordByWordForTesting(bool b) { 195 void SetCanShapeWordByWordForTesting(bool b) {
196 can_shape_word_by_word_ = b; 196 can_shape_word_by_word_ = b;
197 shape_word_by_word_computed_ = true; 197 shape_word_by_word_computed_ = true;
198 } 198 }
199 199
200 void ReportNotDefGlyph() const;
201
200 private: 202 private:
201 enum ForTextEmphasisOrNot { kNotForTextEmphasis, kForTextEmphasis }; 203 enum ForTextEmphasisOrNot { kNotForTextEmphasis, kForTextEmphasis };
202 204
203 GlyphData GetEmphasisMarkGlyphData(const AtomicString&) const; 205 GlyphData GetEmphasisMarkGlyphData(const AtomicString&) const;
204 206
205 bool ComputeCanShapeWordByWord() const; 207 bool ComputeCanShapeWordByWord() const;
206 208
207 public: 209 public:
208 FontSelector* GetFontSelector() const; 210 FontSelector* GetFontSelector() const;
209 PassRefPtr<FontFallbackIterator> CreateFontFallbackIterator( 211 PassRefPtr<FontFallbackIterator> CreateFontFallbackIterator(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // advance an additional tab stop. 261 // advance an additional tab stop.
260 if (distance_to_tab_stop < font_data->SpaceWidth() / 2) 262 if (distance_to_tab_stop < font_data->SpaceWidth() / 2)
261 distance_to_tab_stop += base_tab_width; 263 distance_to_tab_stop += base_tab_width;
262 264
263 return distance_to_tab_stop; 265 return distance_to_tab_stop;
264 } 266 }
265 267
266 } // namespace blink 268 } // namespace blink
267 269
268 #endif 270 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/platform/fonts/Font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698