| 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. | 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. |
| 5 * All rights reserved. | 5 * All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 #ifndef NDEBUG | 120 #ifndef NDEBUG |
| 121 void showBox(int = 0) const override; | 121 void showBox(int = 0) const override; |
| 122 #endif | 122 #endif |
| 123 const char* boxName() const override; | 123 const char* boxName() const override; |
| 124 String debugName() const override; | 124 String debugName() const override; |
| 125 | 125 |
| 126 String text() const; | 126 String text() const; |
| 127 | 127 |
| 128 public: | 128 public: |
| 129 TextRun constructTextRunForInspector(const ComputedStyle&) const; | 129 TextRun constructTextRunForInspector(const ComputedStyle&) const; |
| 130 LayoutRect calculateBoundaries() const override { | 130 LayoutRect frameRect() const { |
| 131 return LayoutRect(x(), y(), width(), height()); | 131 return LayoutRect(x(), y(), width(), height()); |
| 132 } | 132 } |
| 133 | 133 |
| 134 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; | 134 virtual LayoutRect localSelectionRect(int startPos, int endPos) const; |
| 135 bool isSelected(int startPos, int endPos) const; | 135 bool isSelected(int startPos, int endPos) const; |
| 136 void selectionStartEnd(int& sPos, int& ePos) const; | 136 void selectionStartEnd(int& sPos, int& ePos) const; |
| 137 | 137 |
| 138 // These functions both paint markers and update the DocumentMarker's | 138 // These functions both paint markers and update the DocumentMarker's |
| 139 // renderedRect. | 139 // renderedRect. |
| 140 virtual void paintDocumentMarker(GraphicsContext&, | 140 virtual void paintDocumentMarker(GraphicsContext&, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion | 239 (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion |
| 240 : TextRun::ForbidTrailingExpansion); | 240 : TextRun::ForbidTrailingExpansion); |
| 241 } | 241 } |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); | 244 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
| 245 | 245 |
| 246 } // namespace blink | 246 } // namespace blink |
| 247 | 247 |
| 248 #endif // InlineTextBox_h | 248 #endif // InlineTextBox_h |
| OLD | NEW |