| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 | 1243 |
| 1244 LayoutRect hitTestArea = renderer()->view()->documentRect(); | 1244 LayoutRect hitTestArea = renderer()->view()->documentRect(); |
| 1245 if (!request.ignoreClipping()) | 1245 if (!request.ignoreClipping()) |
| 1246 hitTestArea.intersect(frameVisibleRect(renderer())); | 1246 hitTestArea.intersect(frameVisibleRect(renderer())); |
| 1247 | 1247 |
| 1248 RenderLayer* insideLayer = hitTestLayer(this, 0, request, result, hitTestAre
a, hitTestLocation, false); | 1248 RenderLayer* insideLayer = hitTestLayer(this, 0, request, result, hitTestAre
a, hitTestLocation, false); |
| 1249 if (!insideLayer) { | 1249 if (!insideLayer) { |
| 1250 // We didn't hit any layer. If we are the root layer and the mouse is --
or just was -- down, | 1250 // We didn't hit any layer. If we are the root layer and the mouse is --
or just was -- down, |
| 1251 // return ourselves. We do this so mouse events continue getting deliver
ed after a drag has | 1251 // return ourselves. We do this so mouse events continue getting deliver
ed after a drag has |
| 1252 // exited the WebView, and so hit testing over a scrollbar hits the cont
ent document. | 1252 // exited the WebView, and so hit testing over a scrollbar hits the cont
ent document. |
| 1253 if (!request.isChildFrameHitTest() && (request.active() || request.relea
se()) && isRootLayer()) { | 1253 if ((request.active() || request.release()) && isRootLayer()) { |
| 1254 renderer()->updateHitTestResult(result, hitTestLocation.point()); | 1254 renderer()->updateHitTestResult(result, hitTestLocation.point()); |
| 1255 insideLayer = this; | 1255 insideLayer = this; |
| 1256 } | 1256 } |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 // Now determine if the result is inside an anchor - if the urlElement isn't
already set. | 1259 // Now determine if the result is inside an anchor - if the urlElement isn't
already set. |
| 1260 Node* node = result.innerNode(); | 1260 Node* node = result.innerNode(); |
| 1261 if (node && !result.URLElement()) | 1261 if (node && !result.URLElement()) |
| 1262 result.setURLElement(node->enclosingLinkEventParentOrSelf()); | 1262 result.setURLElement(node->enclosingLinkEventParentOrSelf()); |
| 1263 | 1263 |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 } | 1889 } |
| 1890 } | 1890 } |
| 1891 | 1891 |
| 1892 void showLayerTree(const blink::RenderObject* renderer) | 1892 void showLayerTree(const blink::RenderObject* renderer) |
| 1893 { | 1893 { |
| 1894 if (!renderer) | 1894 if (!renderer) |
| 1895 return; | 1895 return; |
| 1896 showLayerTree(renderer->enclosingLayer()); | 1896 showLayerTree(renderer->enclosingLayer()); |
| 1897 } | 1897 } |
| 1898 #endif | 1898 #endif |
| OLD | NEW |