| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 // Called from lineWidth, to position the floats added in the last line. | 575 // Called from lineWidth, to position the floats added in the last line. |
| 576 // Returns true if and only if it has positioned any floats. | 576 // Returns true if and only if it has positioned any floats. |
| 577 bool positionNewFloats(); | 577 bool positionNewFloats(); |
| 578 | 578 |
| 579 void clearFloats(); | 579 void clearFloats(); |
| 580 int getClearDelta(RenderBox* child, int yPos); | 580 int getClearDelta(RenderBox* child, int yPos); |
| 581 | 581 |
| 582 virtual bool avoidsFloats() const; | 582 virtual bool avoidsFloats() const; |
| 583 | 583 |
| 584 bool hasOverhangingFloats() { return parent() && !hasColumns() && containsFl
oats() && lowestFloatLogicalBottom() > logicalHeight(); } | 584 bool hasOverhangingFloats() { return parent() && !hasColumns() && containsFl
oats() && lowestFloatLogicalBottom() > logicalHeight(); } |
| 585 bool hasOverhangingFloat(RenderBox*); |
| 585 void addIntrudingFloats(RenderBlock* prev, int xoffset, int yoffset); | 586 void addIntrudingFloats(RenderBlock* prev, int xoffset, int yoffset); |
| 586 int addOverhangingFloats(RenderBlock* child, int xoffset, int yoffset, bool
makeChildPaintOtherFloats); | 587 int addOverhangingFloats(RenderBlock* child, int xoffset, int yoffset, bool
makeChildPaintOtherFloats); |
| 587 | 588 |
| 588 int lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::FloatBot
h) const; | 589 int lowestFloatLogicalBottom(FloatingObject::Type = FloatingObject::FloatBot
h) const; |
| 589 int nextFloatLogicalBottomBelow(int) const; | 590 int nextFloatLogicalBottomBelow(int) const; |
| 590 | 591 |
| 591 virtual bool hitTestColumns(const HitTestRequest&, HitTestResult&, const Int
Point& pointInContainer, int tx, int ty, HitTestAction); | 592 virtual bool hitTestColumns(const HitTestRequest&, HitTestResult&, const Int
Point& pointInContainer, int tx, int ty, HitTestAction); |
| 592 virtual bool hitTestContents(const HitTestRequest&, HitTestResult&, const In
tPoint& pointInContainer, int tx, int ty, HitTestAction); | 593 virtual bool hitTestContents(const HitTestRequest&, HitTestResult&, const In
tPoint& pointInContainer, int tx, int ty, HitTestAction); |
| 593 bool hitTestFloats(const HitTestRequest&, HitTestResult&, const IntPoint& po
intInContainer, int tx, int ty); | 594 bool hitTestFloats(const HitTestRequest&, HitTestResult&, const IntPoint& po
intInContainer, int tx, int ty); |
| 594 | 595 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 ASSERT(!object || object->isRenderBlock()); | 853 ASSERT(!object || object->isRenderBlock()); |
| 853 return static_cast<const RenderBlock*>(object); | 854 return static_cast<const RenderBlock*>(object); |
| 854 } | 855 } |
| 855 | 856 |
| 856 // This will catch anyone doing an unnecessary cast. | 857 // This will catch anyone doing an unnecessary cast. |
| 857 void toRenderBlock(const RenderBlock*); | 858 void toRenderBlock(const RenderBlock*); |
| 858 | 859 |
| 859 } // namespace WebCore | 860 } // namespace WebCore |
| 860 | 861 |
| 861 #endif // RenderBlock_h | 862 #endif // RenderBlock_h |
| OLD | NEW |