OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2009 Google, Inc. | 3 * Copyright (C) 2009 Google, Inc. |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 if (!localTransform.isInvertible()) | 130 if (!localTransform.isInvertible()) |
131 return false; | 131 return false; |
132 | 132 |
133 FloatPoint localPoint = localTransform.inverse().mapPoint(pointInParent); | 133 FloatPoint localPoint = localTransform.inverse().mapPoint(pointInParent); |
134 | 134 |
135 // Early exit if local point is not contained in clipped viewport area | 135 // Early exit if local point is not contained in clipped viewport area |
136 if (SVGLayoutSupport::isOverflowHidden(this) && !m_viewport.contains(localPo
int)) | 136 if (SVGLayoutSupport::isOverflowHidden(this) && !m_viewport.contains(localPo
int)) |
137 return false; | 137 return false; |
138 | 138 |
139 // FOs establish a stacking context, so we need to hit-test all layers. | 139 // FOs establish a stacking context, so we need to hit-test all layers. |
140 HitTestLocation hitTestLocation(roundedLayoutPoint(localPoint)); | 140 HitTestLocation hitTestLocation(localPoint); |
141 return LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estForeground) | 141 return LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estForeground) |
142 || LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estFloat) | 142 || LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estFloat) |
143 || LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estChildBlockBackgrounds); | 143 || LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), HitT
estChildBlockBackgrounds); |
144 } | 144 } |
145 | 145 |
146 } // namespace blink | 146 } // namespace blink |
OLD | NEW |