| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 InlineBox* firstSelectedBox() const; | 115 InlineBox* firstSelectedBox() const; |
| 116 InlineBox* lastSelectedBox() const; | 116 InlineBox* lastSelectedBox() const; |
| 117 | 117 |
| 118 GapRects lineSelectionGap(const RenderBlock* rootBlock, const LayoutPoint& r
ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT
op, LayoutUnit selHeight, const PaintInfo*) const; | 118 GapRects lineSelectionGap(const RenderBlock* rootBlock, const LayoutPoint& r
ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT
op, LayoutUnit selHeight, const PaintInfo*) const; |
| 119 | 119 |
| 120 RenderBlockFlow& block() const; | 120 RenderBlockFlow& block() const; |
| 121 | 121 |
| 122 InlineBox* closestLeafChildForPoint(const LayoutPoint&, bool onlyEditableLea
ves); | 122 InlineBox* closestLeafChildForPoint(const LayoutPoint&, bool onlyEditableLea
ves); |
| 123 InlineBox* closestLeafChildForLogicalLeftPosition(LayoutUnit, bool onlyEdita
bleLeaves = false); | 123 InlineBox* closestLeafChildForLogicalLeftPosition(LayoutUnit, bool onlyEdita
bleLeaves = false); |
| 124 | 124 |
| 125 void appendFloat(RenderBox* floatingBox) | 125 void appendFloat(LayoutBox* floatingBox) |
| 126 { | 126 { |
| 127 ASSERT(!isDirty()); | 127 ASSERT(!isDirty()); |
| 128 if (m_floats) | 128 if (m_floats) |
| 129 m_floats->append(floatingBox); | 129 m_floats->append(floatingBox); |
| 130 else | 130 else |
| 131 m_floats= adoptPtr(new Vector<RenderBox*>(1, floatingBox)); | 131 m_floats= adoptPtr(new Vector<LayoutBox*>(1, floatingBox)); |
| 132 } | 132 } |
| 133 | 133 |
| 134 Vector<RenderBox*>* floatsPtr() { ASSERT(!isDirty()); return m_floats.get();
} | 134 Vector<LayoutBox*>* floatsPtr() { ASSERT(!isDirty()); return m_floats.get();
} |
| 135 | 135 |
| 136 virtual void extractLineBoxFromLayoutObject() override final; | 136 virtual void extractLineBoxFromLayoutObject() override final; |
| 137 virtual void attachLineBoxToLayoutObject() override final; | 137 virtual void attachLineBoxToLayoutObject() override final; |
| 138 virtual void removeLineBoxFromLayoutObject() override final; | 138 virtual void removeLineBoxFromLayoutObject() override final; |
| 139 | 139 |
| 140 FontBaseline baselineType() const { return static_cast<FontBaseline>(m_basel
ineType); } | 140 FontBaseline baselineType() const { return static_cast<FontBaseline>(m_basel
ineType); } |
| 141 | 141 |
| 142 bool hasAnnotationsBefore() const { return m_hasAnnotationsBefore; } | 142 bool hasAnnotationsBefore() const { return m_hasAnnotationsBefore; } |
| 143 bool hasAnnotationsAfter() const { return m_hasAnnotationsAfter; } | 143 bool hasAnnotationsAfter() const { return m_hasAnnotationsAfter; } |
| 144 | 144 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // This folds into the padding at the end of InlineFlowBox on 64-bit. | 185 // This folds into the padding at the end of InlineFlowBox on 64-bit. |
| 186 unsigned m_lineBreakPos; | 186 unsigned m_lineBreakPos; |
| 187 | 187 |
| 188 // Where this line ended. The exact object and the position within that obj
ect are stored so that | 188 // Where this line ended. The exact object and the position within that obj
ect are stored so that |
| 189 // we can create an InlineIterator beginning just after the end of this line
. | 189 // we can create an InlineIterator beginning just after the end of this line
. |
| 190 LayoutObject* m_lineBreakObj; | 190 LayoutObject* m_lineBreakObj; |
| 191 RefPtr<BidiContext> m_lineBreakContext; | 191 RefPtr<BidiContext> m_lineBreakContext; |
| 192 | 192 |
| 193 // Floats hanging off the line are pushed into this vector during layout. It
is only | 193 // Floats hanging off the line are pushed into this vector during layout. It
is only |
| 194 // good for as long as the line has not been marked dirty. | 194 // good for as long as the line has not been marked dirty. |
| 195 OwnPtr<Vector<RenderBox*>> m_floats; | 195 OwnPtr<Vector<LayoutBox*>> m_floats; |
| 196 | 196 |
| 197 LayoutUnit m_lineTop; | 197 LayoutUnit m_lineTop; |
| 198 LayoutUnit m_lineBottom; | 198 LayoutUnit m_lineBottom; |
| 199 LayoutUnit m_lineTopWithLeading; | 199 LayoutUnit m_lineTopWithLeading; |
| 200 LayoutUnit m_lineBottomWithLeading; | 200 LayoutUnit m_lineBottomWithLeading; |
| 201 LayoutUnit m_selectionBottom; | 201 LayoutUnit m_selectionBottom; |
| 202 LayoutUnit m_paginationStrut; | 202 LayoutUnit m_paginationStrut; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace blink | 205 } // namespace blink |
| 206 | 206 |
| 207 #endif // RootInlineBox_h | 207 #endif // RootInlineBox_h |
| OLD | NEW |