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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 bool hasPercentHeightDescendants() const | 94 bool hasPercentHeightDescendants() const |
95 { | 95 { |
96 TrackedRendererListHashSet* objects = percentHeightDescendants(); | 96 TrackedRendererListHashSet* objects = percentHeightDescendants(); |
97 return objects && !objects->isEmpty(); | 97 return objects && !objects->isEmpty(); |
98 } | 98 } |
99 static bool hasPercentHeightContainerMap(); | 99 static bool hasPercentHeightContainerMap(); |
100 static bool hasPercentHeightDescendant(RenderBox&); | 100 static bool hasPercentHeightDescendant(RenderBox&); |
101 static void clearPercentHeightDescendantsFrom(RenderBox&); | 101 static void clearPercentHeightDescendantsFrom(RenderBox&); |
102 static void removePercentHeightDescendantIfNeeded(RenderBox&); | 102 static void removePercentHeightDescendantIfNeeded(RenderBox&); |
103 | 103 |
| 104 bool isContainingBlockAncestorFor(RenderObject&) const; |
| 105 |
104 void setHasMarginBeforeQuirk(bool b) { setRenderBlockHasMarginBeforeQuirk(b)
; } | 106 void setHasMarginBeforeQuirk(bool b) { setRenderBlockHasMarginBeforeQuirk(b)
; } |
105 void setHasMarginAfterQuirk(bool b) { setRenderBlockHasMarginAfterQuirk(b);
} | 107 void setHasMarginAfterQuirk(bool b) { setRenderBlockHasMarginAfterQuirk(b);
} |
106 void setShouldForceRelayoutChildren(bool b) { setRenderBlockShouldForceRelay
outChildren(b); } | 108 void setShouldForceRelayoutChildren(bool b) { setRenderBlockShouldForceRelay
outChildren(b); } |
107 | 109 |
108 bool hasMarginBeforeQuirk() const { return renderBlockHasMarginBeforeQuirk()
; } | 110 bool hasMarginBeforeQuirk() const { return renderBlockHasMarginBeforeQuirk()
; } |
109 bool hasMarginAfterQuirk() const { return renderBlockHasMarginAfterQuirk();
} | 111 bool hasMarginAfterQuirk() const { return renderBlockHasMarginAfterQuirk();
} |
110 bool hasBorderOrPaddingLogicalWidthChanged() const { return renderBlockShoul
dForceRelayoutChildren(); } | 112 bool hasBorderOrPaddingLogicalWidthChanged() const { return renderBlockShoul
dForceRelayoutChildren(); } |
111 | 113 |
112 bool hasMarginBeforeQuirk(const RenderBox& child) const; | 114 bool hasMarginBeforeQuirk(const RenderBox& child) const; |
113 bool hasMarginAfterQuirk(const RenderBox& child) const; | 115 bool hasMarginAfterQuirk(const RenderBox& child) const; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 } | 538 } |
537 | 539 |
538 inline RenderPtr<RenderBlock> RenderBlock::createAnonymousBlock(DisplayType disp
lay) const | 540 inline RenderPtr<RenderBlock> RenderBlock::createAnonymousBlock(DisplayType disp
lay) const |
539 { | 541 { |
540 return createAnonymousBlockWithStyleAndDisplay(document(), style(), display)
; | 542 return createAnonymousBlockWithStyleAndDisplay(document(), style(), display)
; |
541 } | 543 } |
542 | 544 |
543 } // namespace WebCore | 545 } // namespace WebCore |
544 | 546 |
545 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderBlock, isRenderBlock()) | 547 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderBlock, isRenderBlock()) |
OLD | NEW |