| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 m_rareData->m_discardMarginBefore = false; | 485 m_rareData->m_discardMarginBefore = false; |
| 486 m_rareData->m_discardMarginAfter = false; | 486 m_rareData->m_discardMarginAfter = false; |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 | 489 |
| 490 virtual void layout(); | 490 virtual void layout(); |
| 491 | 491 |
| 492 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); | 492 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject
sOnly = false); |
| 493 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child); | 493 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child); |
| 494 | 494 |
| 495 // FIXME: This should be pure virtual with an implementation in the header. |
| 496 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; |
| 497 |
| 495 virtual void paint(PaintInfo&, const LayoutPoint&); | 498 virtual void paint(PaintInfo&, const LayoutPoint&); |
| 496 virtual void paintObject(PaintInfo&, const LayoutPoint&); | 499 virtual void paintObject(PaintInfo&, const LayoutPoint&); |
| 497 virtual void paintChildren(PaintInfo&, const LayoutPoint&); | 500 virtual void paintChildren(PaintInfo&, const LayoutPoint&); |
| 498 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); | 501 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); |
| 499 | 502 |
| 500 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed
Offset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logica
lHeight = 0) const | 503 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed
Offset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logica
lHeight = 0) const |
| 501 { | 504 { |
| 502 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo
gicalTop, fixedOffset, heightRemaining, logicalHeight, ShapeOutsideFloatShapeOff
set), applyTextIndent); | 505 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo
gicalTop, fixedOffset, heightRemaining, logicalHeight, ShapeOutsideFloatShapeOff
set), applyTextIndent); |
| 503 } | 506 } |
| 504 LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedO
ffset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logical
Height = 0) const | 507 LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedO
ffset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logical
Height = 0) const |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); | 1095 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); |
| 1093 return static_cast<const RenderBlock*>(object); | 1096 return static_cast<const RenderBlock*>(object); |
| 1094 } | 1097 } |
| 1095 | 1098 |
| 1096 // This will catch anyone doing an unnecessary cast. | 1099 // This will catch anyone doing an unnecessary cast. |
| 1097 void toRenderBlock(const RenderBlock*); | 1100 void toRenderBlock(const RenderBlock*); |
| 1098 | 1101 |
| 1099 } // namespace WebCore | 1102 } // namespace WebCore |
| 1100 | 1103 |
| 1101 #endif // RenderBlock_h | 1104 #endif // RenderBlock_h |
| OLD | NEW |