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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // charactersWithHyphen, if provided, must not be destroyed before the TextR
un. | 104 // charactersWithHyphen, if provided, must not be destroyed before the TextR
un. |
105 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* character
sWithHyphen = 0) const; | 105 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* character
sWithHyphen = 0) const; |
106 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumL
ength, StringBuilder* charactersWithHyphen = 0) const; | 106 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumL
ength, StringBuilder* charactersWithHyphen = 0) const; |
107 | 107 |
108 public: | 108 public: |
109 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const; | 109 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const; |
110 virtual FloatRect calculateBoundaries() const OVERRIDE { return FloatRect(x(
), y(), width(), height()); } | 110 virtual FloatRect calculateBoundaries() const OVERRIDE { return FloatRect(x(
), y(), width(), height()); } |
111 | 111 |
112 virtual LayoutRect localSelectionRect(int startPos, int endPos); | 112 virtual LayoutRect localSelectionRect(int startPos, int endPos); |
113 bool isSelected(int startPos, int endPos) const; | 113 bool isSelected(int startPos, int endPos) const; |
114 void selectionStartEnd(int& sPos, int& ePos); | 114 void selectionStartEnd(int& sPos, int& ePos) const; |
115 | 115 |
116 protected: | 116 protected: |
117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom) OVERRIDE; | 117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou
tUnit lineBottom) OVERRIDE; |
118 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit
lineTop, LayoutUnit lineBottom) OVERRIDE; | 118 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit
lineTop, LayoutUnit lineBottom) OVERRIDE; |
119 | 119 |
120 private: | 120 private: |
121 virtual void deleteLine() OVERRIDE FINAL; | 121 virtual void deleteLine() OVERRIDE FINAL; |
122 virtual void extractLine() OVERRIDE FINAL; | 122 virtual void extractLine() OVERRIDE FINAL; |
123 virtual void attachLine() OVERRIDE FINAL; | 123 virtual void attachLine() OVERRIDE FINAL; |
124 | 124 |
125 public: | 125 public: |
126 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; | 126 virtual RenderObject::SelectionState selectionState() const OVERRIDE FINAL; |
127 | 127 |
128 private: | 128 private: |
129 virtual void clearTruncation() OVERRIDE FINAL { m_truncation = cNoTruncation
; } | 129 virtual void clearTruncation() OVERRIDE FINAL { m_truncation = cNoTruncation
; } |
130 virtual float placeEllipsisBox(bool flowIsLTR, float visibleLeftEdge, float
visibleRightEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) OV
ERRIDE FINAL; | 130 virtual float placeEllipsisBox(bool flowIsLTR, float visibleLeftEdge, float
visibleRightEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) OV
ERRIDE FINAL; |
131 | 131 |
132 public: | 132 public: |
133 virtual bool isLineBreak() const OVERRIDE FINAL; | 133 virtual bool isLineBreak() const OVERRIDE FINAL; |
134 | 134 |
135 void setExpansion(int newExpansion) | 135 void setExpansion(int newExpansion) |
136 { | 136 { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) | 199 inline AffineTransform InlineTextBox::rotation(const FloatRect& boxRect, Rotatio
nDirection rotationDirection) |
200 { | 200 { |
201 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) | 201 return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect
.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x()) |
202 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); | 202 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x()
+ boxRect.maxY()); |
203 } | 203 } |
204 | 204 |
205 } // namespace blink | 205 } // namespace blink |
206 | 206 |
207 #endif // InlineTextBox_h | 207 #endif // InlineTextBox_h |
OLD | NEW |