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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; } | 65 unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; } |
66 unsigned len() const { return m_len; } | 66 unsigned len() const { return m_len; } |
67 | 67 |
68 void setStart(unsigned start) { m_start = start; } | 68 void setStart(unsigned start) { m_start = start; } |
69 void setLen(unsigned len) { m_len = len; } | 69 void setLen(unsigned len) { m_len = len; } |
70 | 70 |
71 void offsetRun(int d) { ASSERT(!isDirty()); m_start += d; } | 71 void offsetRun(int d) { ASSERT(!isDirty()); m_start += d; } |
72 | 72 |
73 unsigned short truncation() { return m_truncation; } | 73 unsigned short truncation() { return m_truncation; } |
74 | 74 |
75 virtual void markDirty(bool dirty = true) OVERRIDE FINAL; | 75 virtual void markDirty() OVERRIDE FINAL; |
76 | 76 |
77 using InlineBox::hasHyphen; | 77 using InlineBox::hasHyphen; |
78 using InlineBox::setHasHyphen; | 78 using InlineBox::setHasHyphen; |
79 using InlineBox::canHaveLeadingExpansion; | 79 using InlineBox::canHaveLeadingExpansion; |
80 using InlineBox::setCanHaveLeadingExpansion; | 80 using InlineBox::setCanHaveLeadingExpansion; |
81 | 81 |
82 static inline bool compareByStart(const InlineTextBox* first, const InlineTe
xtBox* second) { return first->start() < second->start(); } | 82 static inline bool compareByStart(const InlineTextBox* first, const InlineTe
xtBox* second) { return first->start() < second->start(); } |
83 | 83 |
84 virtual int baselinePosition(FontBaseline) const OVERRIDE FINAL; | 84 virtual int baselinePosition(FontBaseline) const OVERRIDE FINAL; |
85 virtual LayoutUnit lineHeight() const OVERRIDE FINAL; | 85 virtual LayoutUnit lineHeight() const OVERRIDE FINAL; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) | 207 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) |
208 { | 208 { |
209 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) | 209 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) |
210 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); | 210 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); |
211 } | 211 } |
212 | 212 |
213 } // namespace WebCore | 213 } // namespace WebCore |
214 | 214 |
215 #endif // InlineTextBox_h | 215 #endif // InlineTextBox_h |
OLD | NEW |