| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 virtual float positionForOffset(int offset) const; | 154 virtual float positionForOffset(int offset) const; |
| 155 | 155 |
| 156 bool containsCaretOffset(int offset) const; // false for offset after line b
reak | 156 bool containsCaretOffset(int offset) const; // false for offset after line b
reak |
| 157 | 157 |
| 158 // Fills a vector with the pixel width of each character. | 158 // Fills a vector with the pixel width of each character. |
| 159 void characterWidths(Vector<float>&) const; | 159 void characterWidths(Vector<float>&) const; |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 InlineTextBox* m_prevTextBox; // The previous box that also uses our RenderO
bject | 162 InlineTextBox* m_prevTextBox; // The previous box that also uses our RenderO
bject |
| 163 InlineTextBox* m_nextTextBox; // The next box that also uses our RenderObjec
t | 163 InlineTextBox* m_nextTextBox; // The next box that also uses our RenderObjec
t |
| 164 TextBlobPtr m_cachedTextBlob; |
| 164 | 165 |
| 165 int m_start; | 166 int m_start; |
| 166 unsigned short m_len; | 167 unsigned short m_len; |
| 167 | 168 |
| 168 unsigned short m_truncation; // Where to truncate when text overflow is appl
ied. We use special constants to | 169 unsigned short m_truncation; // Where to truncate when text overflow is appl
ied. We use special constants to |
| 169 // denote no truncation (the whole run paints) and full tr
uncation (nothing paints at all). | 170 // denote no truncation (the whole run paints) and full tr
uncation (nothing paints at all). |
| 170 | 171 |
| 171 unsigned underlinePaintStart(const CompositionUnderline&); | 172 unsigned underlinePaintStart(const CompositionUnderline&); |
| 172 unsigned underlinePaintEnd(const CompositionUnderline&); | 173 unsigned underlinePaintEnd(const CompositionUnderline&); |
| 173 | 174 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 198 | 199 |
| 199 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) | 200 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) |
| 200 { | 201 { |
| 201 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) | 202 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) |
| 202 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); | 203 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace blink | 206 } // namespace blink |
| 206 | 207 |
| 207 #endif // SKY_ENGINE_CORE_RENDERING_INLINETEXTBOX_H_ | 208 #endif // SKY_ENGINE_CORE_RENDERING_INLINETEXTBOX_H_ |
| OLD | NEW |