| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual LayoutRect calculateBoundaries() const override { return LayoutRect(
x(), y(), width(), height()); } | 103 virtual LayoutRect calculateBoundaries() const override { return LayoutRect(
x(), y(), width(), height()); } |
| 104 | 104 |
| 105 virtual LayoutRect localSelectionRect(int startPos, int endPos); | 105 virtual LayoutRect localSelectionRect(int startPos, int endPos); |
| 106 bool isSelected(int startPos, int endPos) const; | 106 bool isSelected(int startPos, int endPos) const; |
| 107 void selectionStartEnd(int& sPos, int& ePos) const; | 107 void selectionStartEnd(int& sPos, int& ePos) const; |
| 108 | 108 |
| 109 // These functions both paint markers and update the DocumentMarker's render
edRect. | 109 // These functions both paint markers and update the DocumentMarker's render
edRect. |
| 110 virtual void paintDocumentMarker(GraphicsContext*, const LayoutPoint& boxOri
gin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar); | 110 virtual void paintDocumentMarker(GraphicsContext*, const LayoutPoint& boxOri
gin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar); |
| 111 virtual void paintTextMatchMarker(GraphicsContext*, const LayoutPoint& boxOr
igin, DocumentMarker*, const ComputedStyle&, const Font&); | 111 virtual void paintTextMatchMarker(GraphicsContext*, const LayoutPoint& boxOr
igin, DocumentMarker*, const ComputedStyle&, const Font&); |
| 112 | 112 |
| 113 virtual void move(const LayoutSize&) override final; |
| 114 |
| 113 protected: | 115 protected: |
| 114 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop,
LayoutUnit lineBottom) override; | 116 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop,
LayoutUnit lineBottom) override; |
| 115 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li
neBottom) override; | 117 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li
neBottom) override; |
| 116 | 118 |
| 117 private: | 119 private: |
| 118 virtual void deleteLine() override final; | 120 virtual void deleteLine() override final; |
| 119 virtual void extractLine() override final; | 121 virtual void extractLine() override final; |
| 120 virtual void attachLine() override final; | 122 virtual void attachLine() override final; |
| 121 | 123 |
| 122 public: | 124 public: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 175 } |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); | 178 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); |
| 177 | 179 |
| 178 void alignSelectionRectToDevicePixels(LayoutRect&); | 180 void alignSelectionRectToDevicePixels(LayoutRect&); |
| 179 | 181 |
| 180 } // namespace blink | 182 } // namespace blink |
| 181 | 183 |
| 182 #endif // InlineTextBox_h | 184 #endif // InlineTextBox_h |
| OLD | NEW |