| OLD | NEW |
| 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 Loading... |
| 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. |
| 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 Loading... |
| 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 |
| OLD | NEW |