| 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, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 int firstRunX() const; | 88 int firstRunX() const; |
| 89 int firstRunY() const; | 89 int firstRunY() const; |
| 90 | 90 |
| 91 virtual int verticalPositionHint(bool firstLine) const; | 91 virtual int verticalPositionHint(bool firstLine) const; |
| 92 | 92 |
| 93 void setText(PassRefPtr<StringImpl>, bool force = false); | 93 void setText(PassRefPtr<StringImpl>, bool force = false); |
| 94 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); | 94 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); |
| 95 | 95 |
| 96 virtual bool canBeSelectionLeaf() const { return true; } | 96 virtual bool canBeSelectionLeaf() const { return true; } |
| 97 virtual void setSelectionState(SelectionState s); | 97 virtual void setSelectionState(SelectionState s); |
| 98 virtual IntRect selectionRectForRepaint(RenderBoxModelObject* repaintContain
er, bool clipToVisibleContent = true); | 98 virtual IntRect selectionRectForRepaint(RenderBox* repaintContainer, bool cl
ipToVisibleContent = true); |
| 99 virtual IntRect localCaretRect(InlineBox*, int caretOffset, int* extraWidthT
oEndOfLine = 0); | 99 virtual IntRect localCaretRect(InlineBox*, int caretOffset, int* extraWidthT
oEndOfLine = 0); |
| 100 | 100 |
| 101 virtual int marginLeft() const { return style()->marginLeft().calcMinValue(0
); } | 101 virtual int marginLeft() const { return style()->marginLeft().calcMinValue(0
); } |
| 102 virtual int marginRight() const { return style()->marginRight().calcMinValue
(0); } | 102 virtual int marginRight() const { return style()->marginRight().calcMinValue
(0); } |
| 103 | 103 |
| 104 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintC
ontainer); | 104 virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); |
| 105 | 105 |
| 106 InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 106 InlineTextBox* firstTextBox() const { return m_firstTextBox; } |
| 107 InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 107 InlineTextBox* lastTextBox() const { return m_lastTextBox; } |
| 108 | 108 |
| 109 virtual int caretMinOffset() const; | 109 virtual int caretMinOffset() const; |
| 110 virtual int caretMaxOffset() const; | 110 virtual int caretMaxOffset() const; |
| 111 virtual unsigned caretMaxRenderedOffset() const; | 111 virtual unsigned caretMaxRenderedOffset() const; |
| 112 | 112 |
| 113 virtual int previousOffset(int current) const; | 113 virtual int previousOffset(int current) const; |
| 114 virtual int previousOffsetForBackwardDeletion(int current) const; | |
| 115 virtual int nextOffset(int current) const; | 114 virtual int nextOffset(int current) const; |
| 116 | 115 |
| 117 bool containsReversedText() const { return m_containsReversedText; } | 116 bool containsReversedText() const { return m_containsReversedText; } |
| 118 | 117 |
| 119 InlineTextBox* findNextInlineTextBox(int offset, int& pos) const; | 118 InlineTextBox* findNextInlineTextBox(int offset, int& pos) const; |
| 120 | 119 |
| 121 bool allowTabs() const { return !style()->collapseWhiteSpace(); } | 120 bool allowTabs() const { return !style()->collapseWhiteSpace(); } |
| 122 | 121 |
| 123 void checkConsistency() const; | 122 void checkConsistency() const; |
| 124 | 123 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 184 |
| 186 #ifdef NDEBUG | 185 #ifdef NDEBUG |
| 187 inline void RenderText::checkConsistency() const | 186 inline void RenderText::checkConsistency() const |
| 188 { | 187 { |
| 189 } | 188 } |
| 190 #endif | 189 #endif |
| 191 | 190 |
| 192 } // namespace WebCore | 191 } // namespace WebCore |
| 193 | 192 |
| 194 #endif // RenderText_h | 193 #endif // RenderText_h |
| OLD | NEW |