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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 bool hasPositionedObjects() const | 113 bool hasPositionedObjects() const |
114 { | 114 { |
115 TrackedRendererListHashSet* objects = positionedObjects(); | 115 TrackedRendererListHashSet* objects = positionedObjects(); |
116 return objects && !objects->isEmpty(); | 116 return objects && !objects->isEmpty(); |
117 } | 117 } |
118 | 118 |
119 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; } | 119 virtual bool visibleForTouchAction() const OVERRIDE FINAL { return true; } |
120 | 120 |
121 void addPercentHeightDescendant(RenderBox*); | 121 void addPercentHeightDescendant(RenderBox*); |
122 static void removePercentHeightDescendant(RenderBox*); | 122 static void removePercentHeightDescendant(RenderBox*); |
123 TrackedRendererListHashSet* percentHeightDescendants() const; | |
124 static bool hasPercentHeightContainerMap(); | 123 static bool hasPercentHeightContainerMap(); |
125 static bool hasPercentHeightDescendant(RenderBox*); | 124 static bool hasPercentHeightDescendant(RenderBox*); |
126 static void clearPercentHeightDescendantsFrom(RenderBox*); | 125 static void clearPercentHeightDescendantsFrom(RenderBox*); |
127 static void removePercentHeightDescendantIfNeeded(RenderBox*); | 126 static void removePercentHeightDescendantIfNeeded(RenderBox*); |
128 | 127 |
| 128 TrackedRendererListHashSet* percentHeightDescendants() const; |
| 129 bool hasPercentHeightDescendants() const |
| 130 { |
| 131 TrackedRendererListHashSet* descendants = percentHeightDescendants(); |
| 132 return descendants && !descendants->isEmpty(); |
| 133 } |
| 134 |
129 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } | 135 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } |
130 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } | 136 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } |
131 | 137 |
132 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } | 138 void setHasMarginBeforeQuirk(bool b) { m_hasMarginBeforeQuirk = b; } |
133 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } | 139 void setHasMarginAfterQuirk(bool b) { m_hasMarginAfterQuirk = b; } |
134 | 140 |
135 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } | 141 bool hasMarginBeforeQuirk() const { return m_hasMarginBeforeQuirk; } |
136 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } | 142 bool hasMarginAfterQuirk() const { return m_hasMarginAfterQuirk; } |
137 | 143 |
138 bool hasMarginBeforeQuirk(const RenderBox* child) const; | 144 bool hasMarginBeforeQuirk(const RenderBox* child) const; |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 return false; | 590 return false; |
585 } | 591 } |
586 return true; | 592 return true; |
587 } | 593 } |
588 | 594 |
589 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 595 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
590 | 596 |
591 } // namespace WebCore | 597 } // namespace WebCore |
592 | 598 |
593 #endif // RenderBlock_h | 599 #endif // RenderBlock_h |
OLD | NEW |