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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 static void removePositionedObject(RenderBox*); | 109 static void removePositionedObject(RenderBox*); |
110 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai
ningBlock); | 110 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai
ningBlock); |
111 | 111 |
112 TrackedRendererListHashSet* positionedObjects() const; | 112 TrackedRendererListHashSet* positionedObjects() const; |
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 visibleToHitTestRequest(const HitTestRequest& request) const |
| 120 { |
| 121 if (request.touchAction()) |
| 122 return RenderObject::visibleToHitTestRequest(HitTestRequest(request.
type() & ~HitTestRequest::TouchAction)); |
| 123 return RenderObject::visibleToHitTestRequest(request); |
| 124 } |
| 125 |
119 void addPercentHeightDescendant(RenderBox*); | 126 void addPercentHeightDescendant(RenderBox*); |
120 static void removePercentHeightDescendant(RenderBox*); | 127 static void removePercentHeightDescendant(RenderBox*); |
121 TrackedRendererListHashSet* percentHeightDescendants() const; | 128 TrackedRendererListHashSet* percentHeightDescendants() const; |
122 static bool hasPercentHeightContainerMap(); | 129 static bool hasPercentHeightContainerMap(); |
123 static bool hasPercentHeightDescendant(RenderBox*); | 130 static bool hasPercentHeightDescendant(RenderBox*); |
124 static void clearPercentHeightDescendantsFrom(RenderBox*); | 131 static void clearPercentHeightDescendantsFrom(RenderBox*); |
125 static void removePercentHeightDescendantIfNeeded(RenderBox*); | 132 static void removePercentHeightDescendantIfNeeded(RenderBox*); |
126 | 133 |
127 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } | 134 void setHasMarkupTruncation(bool b) { m_hasMarkupTruncation = b; } |
128 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } | 135 bool hasMarkupTruncation() const { return m_hasMarkupTruncation; } |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 return false; | 594 return false; |
588 } | 595 } |
589 return true; | 596 return true; |
590 } | 597 } |
591 | 598 |
592 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 599 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
593 | 600 |
594 } // namespace WebCore | 601 } // namespace WebCore |
595 | 602 |
596 #endif // RenderBlock_h | 603 #endif // RenderBlock_h |
OLD | NEW |