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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 private: | 100 private: |
101 LayoutUnit selectionTop(); | 101 LayoutUnit selectionTop(); |
102 LayoutUnit selectionBottom(); | 102 LayoutUnit selectionBottom(); |
103 LayoutUnit selectionHeight(); | 103 LayoutUnit selectionHeight(); |
104 | 104 |
105 // charactersWithHyphen, if provided, must not be destroyed before the TextR
un. | 105 // charactersWithHyphen, if provided, must not be destroyed before the TextR
un. |
106 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* character
sWithHyphen = 0) const; | 106 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* character
sWithHyphen = 0) const; |
107 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumL
ength, StringBuilder* charactersWithHyphen = 0) const; | 107 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumL
ength, StringBuilder* charactersWithHyphen = 0) const; |
108 | 108 |
109 public: | 109 public: |
| 110 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const; |
110 virtual FloatRect calculateBoundaries() const { return FloatRect(x(), y(), w
idth(), height()); } | 111 virtual FloatRect calculateBoundaries() const { return FloatRect(x(), y(), w
idth(), height()); } |
111 | 112 |
112 virtual LayoutRect localSelectionRect(int startPos, int endPos); | 113 virtual LayoutRect localSelectionRect(int startPos, int endPos); |
113 bool isSelected(int startPos, int endPos) const; | 114 bool isSelected(int startPos, int endPos) const; |
114 void selectionStartEnd(int& sPos, int& ePos); | 115 void selectionStartEnd(int& sPos, int& ePos); |
115 | 116 |
116 protected: | 117 protected: |
117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom); | 118 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom); |
118 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit
lineTop, LayoutUnit lineBottom) OVERRIDE; | 119 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit
lineTop, LayoutUnit lineBottom) OVERRIDE; |
119 | 120 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 inline RenderText* InlineTextBox::textRenderer() const | 205 inline RenderText* InlineTextBox::textRenderer() const |
205 { | 206 { |
206 return toRenderText(renderer()); | 207 return toRenderText(renderer()); |
207 } | 208 } |
208 | 209 |
209 void alignSelectionRectToDevicePixels(FloatRect&); | 210 void alignSelectionRectToDevicePixels(FloatRect&); |
210 | 211 |
211 } // namespace WebCore | 212 } // namespace WebCore |
212 | 213 |
213 #endif // InlineTextBox_h | 214 #endif // InlineTextBox_h |
OLD | NEW |