| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 TrackedRendererListHashSet* positionedObjects() const; | 118 TrackedRendererListHashSet* positionedObjects() const; |
| 119 bool hasPositionedObjects() const | 119 bool hasPositionedObjects() const |
| 120 { | 120 { |
| 121 TrackedRendererListHashSet* objects = positionedObjects(); | 121 TrackedRendererListHashSet* objects = positionedObjects(); |
| 122 return objects && !objects->isEmpty(); | 122 return objects && !objects->isEmpty(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void addPercentHeightDescendant(RenderBox*); | 125 void addPercentHeightDescendant(RenderBox*); |
| 126 static void removePercentHeightDescendant(RenderBox*); | 126 static void removePercentHeightDescendant(RenderBox*); |
| 127 TrackedRendererListHashSet* percentHeightDescendants() const; | |
| 128 static bool hasPercentHeightContainerMap(); | 127 static bool hasPercentHeightContainerMap(); |
| 129 static bool hasPercentHeightDescendant(RenderBox*); | 128 static bool hasPercentHeightDescendant(RenderBox*); |
| 130 static void clearPercentHeightDescendantsFrom(RenderBox*); | 129 static void clearPercentHeightDescendantsFrom(RenderBox*); |
| 131 static void removePercentHeightDescendantIfNeeded(RenderBox*); | 130 static void removePercentHeightDescendantIfNeeded(RenderBox*); |
| 132 | 131 |
| 132 TrackedRendererListHashSet* percentHeightDescendants() const; |
| 133 bool hasPercentHeightDescendants() const |
| 134 { |
| 135 TrackedRendererListHashSet* descendants = percentHeightDescendants(); |
| 136 return descendants && !descendants->isEmpty(); |
| 137 } |
| 138 |
| 133 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } | 139 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } |
| 134 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } | 140 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } |
| 135 | 141 |
| 136 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } | 142 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } |
| 137 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } | 143 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } |
| 138 | 144 |
| 139 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } | 145 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } |
| 140 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } | 146 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } |
| 141 | 147 |
| 142 bool hasMarginBeforeQuirk(const RenderBox* child) const; | 148 bool hasMarginBeforeQuirk(const RenderBox* child) const; |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 // FIXME: This is temporary as we move code that accesses block flow | 721 // FIXME: This is temporary as we move code that accesses block flow |
| 716 // member variables out of RenderBlock and into RenderBlockFlow. | 722 // member variables out of RenderBlock and into RenderBlockFlow. |
| 717 friend class RenderBlockFlow; | 723 friend class RenderBlockFlow; |
| 718 }; | 724 }; |
| 719 | 725 |
| 720 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 726 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 721 | 727 |
| 722 } // namespace WebCore | 728 } // namespace WebCore |
| 723 | 729 |
| 724 #endif // RenderBlock_h | 730 #endif // RenderBlock_h |
| OLD | NEW |