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 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 // transformState.m_accumulatedTransform holds the transform from the containing
flattening layer. | 1747 // transformState.m_accumulatedTransform holds the transform from the containing
flattening layer. |
1748 // transformState.m_lastPlanarPoint is the hitTestLocation in the plane of the c
ontaining flattening layer. | 1748 // transformState.m_lastPlanarPoint is the hitTestLocation in the plane of the c
ontaining flattening layer. |
1749 // transformState.m_lastPlanarQuad is the hitTestRect as a quad in the plane of
the containing flattening layer. | 1749 // transformState.m_lastPlanarQuad is the hitTestRect as a quad in the plane of
the containing flattening layer. |
1750 // | 1750 // |
1751 // If zOffset is non-null (which indicates that the caller wants z offset inform
ation), | 1751 // If zOffset is non-null (which indicates that the caller wants z offset inform
ation), |
1752 // *zOffset on return is the z offset of the hit point relative to the containi
ng flattening layer. | 1752 // *zOffset on return is the z offset of the hit point relative to the containi
ng flattening layer. |
1753 PaintLayer* PaintLayer::hitTestLayer(PaintLayer* rootLayer, PaintLayer* containe
rLayer, HitTestResult& result, | 1753 PaintLayer* PaintLayer::hitTestLayer(PaintLayer* rootLayer, PaintLayer* containe
rLayer, HitTestResult& result, |
1754 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, bool
appliedTransform, | 1754 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, bool
appliedTransform, |
1755 const HitTestingTransformState* transformState, double* zOffset) | 1755 const HitTestingTransformState* transformState, double* zOffset) |
1756 { | 1756 { |
1757 ASSERT(layoutObject()->document().lifecycle().state() >= DocumentLifecycle::
CompositingClean); | 1757 DCHECK(layoutObject()->document().lifecycle().state() >= DocumentLifecycle::
PrePaintClean); |
1758 | 1758 |
1759 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) | 1759 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) |
1760 return nullptr; | 1760 return nullptr; |
1761 | 1761 |
1762 ClipRectsCacheSlot clipRectsCacheSlot = result.hitTestRequest().ignoreClippi
ng() ? RootRelativeClipRectsIgnoringViewportClip : RootRelativeClipRects; | 1762 ClipRectsCacheSlot clipRectsCacheSlot = result.hitTestRequest().ignoreClippi
ng() ? RootRelativeClipRectsIgnoringViewportClip : RootRelativeClipRects; |
1763 | 1763 |
1764 // Apply a transform if we have one. | 1764 // Apply a transform if we have one. |
1765 if (transform() && !appliedTransform) { | 1765 if (transform() && !appliedTransform) { |
1766 if (enclosingPaginationLayer()) | 1766 if (enclosingPaginationLayer()) |
1767 return hitTestTransformedLayerInFragments(rootLayer, containerLayer,
result, hitTestRect, hitTestLocation, transformState, zOffset, clipRectsCacheSl
ot); | 1767 return hitTestTransformedLayerInFragments(rootLayer, containerLayer,
result, hitTestRect, hitTestLocation, transformState, zOffset, clipRectsCacheSl
ot); |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2980 | 2980 |
2981 void showLayerTree(const blink::LayoutObject* layoutObject) | 2981 void showLayerTree(const blink::LayoutObject* layoutObject) |
2982 { | 2982 { |
2983 if (!layoutObject) { | 2983 if (!layoutObject) { |
2984 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); | 2984 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); |
2985 return; | 2985 return; |
2986 } | 2986 } |
2987 showLayerTree(layoutObject->enclosingLayer()); | 2987 showLayerTree(layoutObject->enclosingLayer()); |
2988 } | 2988 } |
2989 #endif | 2989 #endif |
OLD | NEW |