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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 // Begin by walking our list of positive layers from highest z-index down to
the lowest z-index. | 989 // Begin by walking our list of positive layers from highest z-index down to
the lowest z-index. |
990 RenderLayer* hitLayer = hitTestChildren(PositiveZOrderChildren, rootLayer, r
equest, result, hitTestRect, hitTestLocation, | 990 RenderLayer* hitLayer = hitTestChildren(PositiveZOrderChildren, rootLayer, r
equest, result, hitTestRect, hitTestLocation, |
991 localTransformState.get(), zOffsetForDes
cendantsPtr, zOffset, unflattenedTransformState.get(), depthSortDescendants); | 991 localTransformState.get(), zOffsetForDes
cendantsPtr, zOffset, unflattenedTransformState.get(), depthSortDescendants); |
992 if (hitLayer) { | 992 if (hitLayer) { |
993 if (!depthSortDescendants) | 993 if (!depthSortDescendants) |
994 return hitLayer; | 994 return hitLayer; |
995 candidateLayer = hitLayer; | 995 candidateLayer = hitLayer; |
996 } | 996 } |
997 | 997 |
998 // Now check our overflow objects. | 998 // Now check our overflow objects. |
| 999 // TODO(ojan): This call has no test coverage. |
999 hitLayer = hitTestChildren(NormalFlowChildren, rootLayer, request, result, h
itTestRect, hitTestLocation, | 1000 hitLayer = hitTestChildren(NormalFlowChildren, rootLayer, request, result, h
itTestRect, hitTestLocation, |
1000 localTransformState.get(), zOffsetForDescendantsPtr,
zOffset, unflattenedTransformState.get(), depthSortDescendants); | 1001 localTransformState.get(), zOffsetForDescendantsPtr,
zOffset, unflattenedTransformState.get(), depthSortDescendants); |
1001 if (hitLayer) { | 1002 if (hitLayer) { |
1002 if (!depthSortDescendants) | 1003 if (!depthSortDescendants) |
1003 return hitLayer; | 1004 return hitLayer; |
1004 candidateLayer = hitLayer; | 1005 candidateLayer = hitLayer; |
1005 } | 1006 } |
1006 | 1007 |
1007 LayoutRect layerBounds; | 1008 LayoutRect layerBounds; |
1008 ClipRect backgroundRect, foregroundRect; | 1009 ClipRect backgroundRect, foregroundRect; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 } | 1424 } |
1424 } | 1425 } |
1425 | 1426 |
1426 void showLayerTree(const blink::RenderObject* renderer) | 1427 void showLayerTree(const blink::RenderObject* renderer) |
1427 { | 1428 { |
1428 if (!renderer) | 1429 if (!renderer) |
1429 return; | 1430 return; |
1430 showLayerTree(renderer->enclosingLayer()); | 1431 showLayerTree(renderer->enclosingLayer()); |
1431 } | 1432 } |
1432 #endif | 1433 #endif |
OLD | NEW |