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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 static void removePositionedObject(RenderBox*); | 108 static void removePositionedObject(RenderBox*); |
109 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock); | 109 void removePositionedObjects(RenderBlock*, ContainingBlockState = SameContai ningBlock); |
110 | 110 |
111 TrackedRendererListHashSet* positionedObjects() const; | 111 TrackedRendererListHashSet* positionedObjects() const; |
112 bool hasPositionedObjects() const | 112 bool hasPositionedObjects() const |
113 { | 113 { |
114 TrackedRendererListHashSet* objects = positionedObjects(); | 114 TrackedRendererListHashSet* objects = positionedObjects(); |
115 return objects && !objects->isEmpty(); | 115 return objects && !objects->isEmpty(); |
116 } | 116 } |
117 | 117 |
118 virtual bool visibleToHitTestRequest(const HitTestRequest& request) const | |
119 { | |
120 if (request.touchAction()) | |
121 return style()->visibility() == VISIBLE && style()->pointerEvents() != PE_NONE && !isInert(); | |
Rick Byers
2014/02/17 14:43:52
The general approach of updating visibleToHitTestR
gnana
2014/02/24 18:59:50
This looks better. modified
Done.
| |
122 return RenderObject::visibleToHitTestRequest(request); | |
123 } | |
124 | |
118 void addPercentHeightDescendant(RenderBox*); | 125 void addPercentHeightDescendant(RenderBox*); |
119 static void removePercentHeightDescendant(RenderBox*); | 126 static void removePercentHeightDescendant(RenderBox*); |
120 static bool hasPercentHeightContainerMap(); | 127 static bool hasPercentHeightContainerMap(); |
121 static bool hasPercentHeightDescendant(RenderBox*); | 128 static bool hasPercentHeightDescendant(RenderBox*); |
122 static void clearPercentHeightDescendantsFrom(RenderBox*); | 129 static void clearPercentHeightDescendantsFrom(RenderBox*); |
123 static void removePercentHeightDescendantIfNeeded(RenderBox*); | 130 static void removePercentHeightDescendantIfNeeded(RenderBox*); |
124 | 131 |
125 TrackedRendererListHashSet* percentHeightDescendants() const; | 132 TrackedRendererListHashSet* percentHeightDescendants() const; |
126 bool hasPercentHeightDescendants() const | 133 bool hasPercentHeightDescendants() const |
127 { | 134 { |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
635 return false; | 642 return false; |
636 } | 643 } |
637 return true; | 644 return true; |
638 } | 645 } |
639 | 646 |
640 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 647 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
641 | 648 |
642 } // namespace WebCore | 649 } // namespace WebCore |
643 | 650 |
644 #endif // RenderBlock_h | 651 #endif // RenderBlock_h |
OLD | NEW |