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

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

Issue 551183005: [TextBlob] Fix LCD text handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: pass a bool instead of a GC 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/fonts/Font.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool loadingCustomFonts() const 180 bool loadingCustomFonts() const
181 { 181 {
182 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); 182 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts();
183 } 183 }
184 184
185 bool shouldSkipDrawing() const 185 bool shouldSkipDrawing() const
186 { 186 {
187 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); 187 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing();
188 } 188 }
189 189
190 PassTextBlobPtr buildTextBlob(const GlyphBuffer&, float initialAdvance, cons t FloatRect& bounds, float& advance) const; 190 PassTextBlobPtr buildTextBlob(const GlyphBuffer&, float initialAdvance, cons t FloatRect& bounds,
191 float& advance, bool couldUseLCD) const;
191 192
192 FontDescription m_fontDescription; 193 FontDescription m_fontDescription;
193 mutable RefPtr<FontFallbackList> m_fontFallbackList; 194 mutable RefPtr<FontFallbackList> m_fontFallbackList;
194 }; 195 };
195 196
196 inline Font::~Font() 197 inline Font::~Font()
197 { 198 {
198 } 199 }
199 200
200 inline const SimpleFontData* Font::primaryFont() const 201 inline const SimpleFontData* Font::primaryFont() const
(...skipping 23 matching lines...) Expand all
224 { 225 {
225 if (!tabSize) 226 if (!tabSize)
226 return fontDescription().letterSpacing(); 227 return fontDescription().letterSpacing();
227 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS pacing(); 228 float tabWidth = tabSize * fontData.spaceWidth() + fontDescription().letterS pacing();
228 return tabWidth - fmodf(position, tabWidth); 229 return tabWidth - fmodf(position, tabWidth);
229 } 230 }
230 231
231 } // namespace blink 232 } // namespace blink
232 233
233 #endif 234 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/platform/fonts/Font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698