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