Chromium Code Reviews| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 487 m_rareData->m_discardMarginBefore = false; | 487 m_rareData->m_discardMarginBefore = false; |
| 488 m_rareData->m_discardMarginAfter = false; | 488 m_rareData->m_discardMarginAfter = false; |
| 489 } | 489 } |
| 490 } | 490 } |
| 491 | 491 |
| 492 virtual void layout(); | 492 virtual void layout(); |
| 493 | 493 |
| 494 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false); | 494 void layoutPositionedObjects(bool relayoutChildren, bool fixedPositionObject sOnly = false); |
| 495 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&); | 495 void markFixedPositionObjectForLayoutIfNeeded(RenderObject* child, SubtreeLa youtScope&); |
| 496 | 496 |
| 497 // FIXME: This should be pure virtual with an implementation in the header. | |
|
esprehn
2013/08/23 20:47:27
What does that mean? pure virtual is = 0 and then
pdr.
2013/08/26 05:50:40
You can have a pure virtual with an implementation
| |
| 498 virtual bool supportsPartialLayout() const OVERRIDE { return true; }; | |
| 499 | |
| 497 virtual void paint(PaintInfo&, const LayoutPoint&); | 500 virtual void paint(PaintInfo&, const LayoutPoint&); |
| 498 virtual void paintObject(PaintInfo&, const LayoutPoint&); | 501 virtual void paintObject(PaintInfo&, const LayoutPoint&); |
| 499 virtual void paintChildren(PaintInfo&, const LayoutPoint&); | 502 virtual void paintChildren(PaintInfo&, const LayoutPoint&); |
| 500 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); | 503 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); |
| 501 | 504 |
| 502 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed Offset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logica lHeight = 0) const | 505 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed Offset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logica lHeight = 0) const |
| 503 { | 506 { |
| 504 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo gicalTop, fixedOffset, heightRemaining, logicalHeight, ShapeOutsideFloatShapeOff set), applyTextIndent); | 507 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo gicalTop, fixedOffset, heightRemaining, logicalHeight, ShapeOutsideFloatShapeOff set), applyTextIndent); |
| 505 } | 508 } |
| 506 LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedO ffset, bool applyTextIndent, LayoutUnit* heightRemaining = 0, LayoutUnit logical Height = 0) const | 509 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... | |
| 1094 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); | 1097 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderBlock()); |
| 1095 return static_cast<const RenderBlock*>(object); | 1098 return static_cast<const RenderBlock*>(object); |
| 1096 } | 1099 } |
| 1097 | 1100 |
| 1098 // This will catch anyone doing an unnecessary cast. | 1101 // This will catch anyone doing an unnecessary cast. |
| 1099 void toRenderBlock(const RenderBlock*); | 1102 void toRenderBlock(const RenderBlock*); |
| 1100 | 1103 |
| 1101 } // namespace WebCore | 1104 } // namespace WebCore |
| 1102 | 1105 |
| 1103 #endif // RenderBlock_h | 1106 #endif // RenderBlock_h |
| OLD | NEW |