| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class EllipsisBox; | 29 class EllipsisBox; |
| 30 class HitTestResult; | 30 class HitTestResult; |
| 31 class RenderBlockFlow; | 31 class RenderBlockFlow; |
| 32 | 32 |
| 33 struct BidiStatus; | 33 struct BidiStatus; |
| 34 struct GapRects; | 34 struct GapRects; |
| 35 | 35 |
| 36 class RootInlineBox : public InlineFlowBox { | 36 class RootInlineBox : public InlineFlowBox { |
| 37 public: | 37 public: |
| 38 explicit RootInlineBox(RenderBlockFlow*); | 38 explicit RootInlineBox(RenderBlockFlow&); |
| 39 | 39 |
| 40 virtual void destroy() OVERRIDE FINAL; | 40 virtual void destroy() OVERRIDE FINAL; |
| 41 | 41 |
| 42 virtual bool isRootInlineBox() const OVERRIDE FINAL { return true; } | 42 virtual bool isRootInlineBox() const OVERRIDE FINAL { return true; } |
| 43 | 43 |
| 44 void detachEllipsisBox(); | 44 void detachEllipsisBox(); |
| 45 | 45 |
| 46 RootInlineBox* nextRootBox() const { return static_cast<RootInlineBox*>(m_ne
xtLineBox); } | 46 RootInlineBox* nextRootBox() const { return static_cast<RootInlineBox*>(m_ne
xtLineBox); } |
| 47 RootInlineBox* prevRootBox() const { return static_cast<RootInlineBox*>(m_pr
evLineBox); } | 47 RootInlineBox* prevRootBox() const { return static_cast<RootInlineBox*>(m_pr
evLineBox); } |
| 48 | 48 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 using InlineBox::hasSelectedChildren; | 119 using InlineBox::hasSelectedChildren; |
| 120 using InlineBox::setHasSelectedChildren; | 120 using InlineBox::setHasSelectedChildren; |
| 121 | 121 |
| 122 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; | 122 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; |
| 123 InlineBox* firstSelectedBox(); | 123 InlineBox* firstSelectedBox(); |
| 124 InlineBox* lastSelectedBox(); | 124 InlineBox* lastSelectedBox(); |
| 125 | 125 |
| 126 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo
ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La
youtUnit selHeight, const PaintInfo*); | 126 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo
ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La
youtUnit selHeight, const PaintInfo*); |
| 127 | 127 |
| 128 RenderBlockFlow* block() const; | 128 RenderBlockFlow& block() const; |
| 129 | 129 |
| 130 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves
); | 130 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves
); |
| 131 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav
es = false); | 131 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav
es = false); |
| 132 | 132 |
| 133 void appendFloat(RenderBox* floatingBox) | 133 void appendFloat(RenderBox* floatingBox) |
| 134 { | 134 { |
| 135 ASSERT(!isDirty()); | 135 ASSERT(!isDirty()); |
| 136 if (m_floats) | 136 if (m_floats) |
| 137 m_floats->append(floatingBox); | 137 m_floats->append(floatingBox); |
| 138 else | 138 else |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 OwnPtr<LineFragmentationData> m_fragmentationData; | 232 OwnPtr<LineFragmentationData> m_fragmentationData; |
| 233 | 233 |
| 234 // Floats hanging off the line are pushed into this vector during layout. It
is only | 234 // Floats hanging off the line are pushed into this vector during layout. It
is only |
| 235 // good for as long as the line has not been marked dirty. | 235 // good for as long as the line has not been marked dirty. |
| 236 OwnPtr<Vector<RenderBox*> > m_floats; | 236 OwnPtr<Vector<RenderBox*> > m_floats; |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace WebCore | 239 } // namespace WebCore |
| 240 | 240 |
| 241 #endif // RootInlineBox_h | 241 #endif // RootInlineBox_h |
| OLD | NEW |