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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 #if ENABLE(SVG) | 441 #if ENABLE(SVG) |
442 // Only used by RenderSVGText, which explicitely overrides RenderBlock::layo
utBlock(), do NOT use for anything else. | 442 // Only used by RenderSVGText, which explicitely overrides RenderBlock::layo
utBlock(), do NOT use for anything else. |
443 void forceLayoutInlineChildren() | 443 void forceLayoutInlineChildren() |
444 { | 444 { |
445 LayoutUnit repaintLogicalTop = 0; | 445 LayoutUnit repaintLogicalTop = 0; |
446 LayoutUnit repaintLogicalBottom = 0; | 446 LayoutUnit repaintLogicalBottom = 0; |
447 layoutInlineChildren(true, repaintLogicalTop, repaintLogicalBottom); | 447 layoutInlineChildren(true, repaintLogicalTop, repaintLogicalBottom); |
448 } | 448 } |
449 #endif | 449 #endif |
450 | 450 |
| 451 void computeInitialRegionRangeForBlock(); |
| 452 void computeRegionRangeForBlock(); |
451 private: | 453 private: |
452 virtual RenderObjectChildList* virtualChildren() { return children(); } | 454 virtual RenderObjectChildList* virtualChildren() { return children(); } |
453 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } | 455 virtual const RenderObjectChildList* virtualChildren() const { return childr
en(); } |
454 | 456 |
455 virtual const char* renderName() const; | 457 virtual const char* renderName() const; |
456 | 458 |
457 virtual bool isRenderBlock() const { return true; } | 459 virtual bool isRenderBlock() const { return true; } |
458 virtual bool isBlockFlow() const { return (!isInline() || isReplaced()) && !
isTable(); } | 460 virtual bool isBlockFlow() const { return (!isInline() || isReplaced()) && !
isTable(); } |
459 virtual bool isInlineBlockOrInlineTable() const { return isInline() && isRep
laced(); } | 461 virtual bool isInlineBlockOrInlineTable() const { return isInline() && isRep
laced(); } |
460 | 462 |
461 void makeChildrenNonInline(RenderObject* insertionPoint = 0); | 463 void makeChildrenNonInline(RenderObject* insertionPoint = 0); |
462 virtual void removeLeftoverAnonymousBlock(RenderBlock* child); | 464 virtual void removeLeftoverAnonymousBlock(RenderBlock* child); |
463 | 465 |
464 static void collapseAnonymousBoxChild(RenderBlock* parent, RenderObject* chi
ld); | 466 static void collapseAnonymousBoxChild(RenderBlock* parent, RenderObject* chi
ld); |
465 | 467 |
466 virtual void dirtyLinesFromChangedChild(RenderObject* child) { m_lineBoxes.d
irtyLinesFromChangedChild(this, child); } | 468 virtual void dirtyLinesFromChangedChild(RenderObject* child) { m_lineBoxes.d
irtyLinesFromChangedChild(this, child); } |
467 | 469 |
468 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil
d); | 470 void addChildToContinuation(RenderObject* newChild, RenderObject* beforeChil
d); |
469 void addChildIgnoringContinuation(RenderObject* newChild, RenderObject* befo
reChild); | 471 void addChildIgnoringContinuation(RenderObject* newChild, RenderObject* befo
reChild); |
470 void addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* b
eforeChild); | 472 void addChildToAnonymousColumnBlocks(RenderObject* newChild, RenderObject* b
eforeChild); |
| 473 |
471 virtual void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, R
enderObject* beforeChild = 0); | 474 virtual void addChildIgnoringAnonymousColumnBlocks(RenderObject* newChild, R
enderObject* beforeChild = 0); |
472 | 475 |
473 virtual bool isSelfCollapsingBlock() const; | 476 virtual bool isSelfCollapsingBlock() const; |
474 | 477 |
475 virtual LayoutUnit collapsedMarginBefore() const { return maxPositiveMarginB
efore() - maxNegativeMarginBefore(); } | 478 virtual LayoutUnit collapsedMarginBefore() const { return maxPositiveMarginB
efore() - maxNegativeMarginBefore(); } |
476 virtual LayoutUnit collapsedMarginAfter() const { return maxPositiveMarginAf
ter() - maxNegativeMarginAfter(); } | 479 virtual LayoutUnit collapsedMarginAfter() const { return maxPositiveMarginAf
ter() - maxNegativeMarginAfter(); } |
477 | 480 |
478 virtual void repaintOverhangingFloats(bool paintAllDescendants); | 481 virtual void repaintOverhangingFloats(bool paintAllDescendants); |
479 | 482 |
480 void layoutBlockChildren(bool relayoutChildren, LayoutUnit& maxFloatLogicalB
ottom); | 483 void layoutBlockChildren(bool relayoutChildren, LayoutUnit& maxFloatLogicalB
ottom); |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 static String string(const int value); | 1106 static String string(const int value); |
1104 }; | 1107 }; |
1105 template<> struct ValueToString<RenderBlock::FloatingObject*> { | 1108 template<> struct ValueToString<RenderBlock::FloatingObject*> { |
1106 static String string(const RenderBlock::FloatingObject*); | 1109 static String string(const RenderBlock::FloatingObject*); |
1107 }; | 1110 }; |
1108 #endif | 1111 #endif |
1109 | 1112 |
1110 } // namespace WebCore | 1113 } // namespace WebCore |
1111 | 1114 |
1112 #endif // RenderBlock_h | 1115 #endif // RenderBlock_h |
OLD | NEW |