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

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

Issue 1379473005: Determine used fonts based on the correct font code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 private: 155 private:
156 bool shouldSkipDrawing() const 156 bool shouldSkipDrawing() const
157 { 157 {
158 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing(); 158 return m_fontFallbackList && m_fontFallbackList->shouldSkipDrawing();
159 } 159 }
160 160
161 FontDescription m_fontDescription; 161 FontDescription m_fontDescription;
162 mutable RefPtr<FontFallbackList> m_fontFallbackList; 162 mutable RefPtr<FontFallbackList> m_fontFallbackList;
163 mutable unsigned m_canShapeWordByWord : 1; 163 mutable unsigned m_canShapeWordByWord : 1;
164 mutable unsigned m_shapeWordByWordComputed : 1; 164 mutable unsigned m_shapeWordByWordComputed : 1;
165
166 // For accessing buildGlyphbuffer and retrieving fonts used in rendering a n ode.
wkorman 2015/10/01 17:53:04 buildGlyphBuffer (caps on buffer)
167 friend class InspectorCSSAgent;
165 }; 168 };
166 169
167 inline Font::~Font() 170 inline Font::~Font()
168 { 171 {
169 } 172 }
170 173
171 inline const SimpleFontData* Font::primaryFont() const 174 inline const SimpleFontData* Font::primaryFont() const
172 { 175 {
173 ASSERT(m_fontFallbackList); 176 ASSERT(m_fontFallbackList);
174 return m_fontFallbackList->primarySimpleFontData(m_fontDescription); 177 return m_fontFallbackList->primarySimpleFontData(m_fontDescription);
(...skipping 21 matching lines...) Expand all
196 // if the distance to the next tab stop is less than that, advance an additi onal tab stop. 199 // if the distance to the next tab stop is less than that, advance an additi onal tab stop.
197 if (distanceToTabStop < std::max(fontDescription().letterSpacing(), LayoutUn it::epsilon())) 200 if (distanceToTabStop < std::max(fontDescription().letterSpacing(), LayoutUn it::epsilon()))
198 distanceToTabStop += baseTabWidth; 201 distanceToTabStop += baseTabWidth;
199 202
200 return distanceToTabStop; 203 return distanceToTabStop;
201 } 204 }
202 205
203 } // namespace blink 206 } // namespace blink
204 207
205 #endif 208 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698