OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 // Does the same as convertToLayerCoords() when not in multicol. For multico
l, however, | 226 // Does the same as convertToLayerCoords() when not in multicol. For multico
l, however, |
227 // convertToLayerCoords() calculates the offset in flow-thread coordinates (
what the layout | 227 // convertToLayerCoords() calculates the offset in flow-thread coordinates (
what the layout |
228 // engine uses internally), while this method calculates the visual coordina
tes; i.e. it figures | 228 // engine uses internally), while this method calculates the visual coordina
tes; i.e. it figures |
229 // out which column the layer starts in and adds in the offset. See | 229 // out which column the layer starts in and adds in the offset. See |
230 // http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info. | 230 // http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info. |
231 LayoutPoint visualOffsetFromAncestor(const DeprecatedPaintLayer* ancestorLay
er) const; | 231 LayoutPoint visualOffsetFromAncestor(const DeprecatedPaintLayer* ancestorLay
er) const; |
232 | 232 |
233 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. | 233 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. |
234 bool hitTest(HitTestResult&); | 234 bool hitTest(HitTestResult&); |
235 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | |
236 | 235 |
237 // Pass offsetFromRoot if known. | 236 // Pass offsetFromRoot if known. |
238 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const DeprecatedPaintLayer* rootLayer, const LayoutPoint* offsetFromR
oot = 0) const; | 237 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const DeprecatedPaintLayer* rootLayer, const LayoutPoint* offsetFromR
oot = 0) const; |
239 | 238 |
240 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. | 239 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. |
241 LayoutRect physicalBoundingBox(const DeprecatedPaintLayer* ancestorLayer, co
nst LayoutPoint* offsetFromRoot = 0) const; | 240 LayoutRect physicalBoundingBox(const DeprecatedPaintLayer* ancestorLayer, co
nst LayoutPoint* offsetFromRoot = 0) const; |
242 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const D
eprecatedPaintLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; | 241 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const D
eprecatedPaintLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; |
243 LayoutRect fragmentsBoundingBox(const DeprecatedPaintLayer* ancestorLayer) c
onst; | 242 LayoutRect fragmentsBoundingBox(const DeprecatedPaintLayer* ancestorLayer) c
onst; |
244 | 243 |
245 LayoutRect boundingBoxForCompositingOverlapTest() const; | 244 LayoutRect boundingBoxForCompositingOverlapTest() const; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 | 721 |
723 } // namespace blink | 722 } // namespace blink |
724 | 723 |
725 #ifndef NDEBUG | 724 #ifndef NDEBUG |
726 // Outside the WebCore namespace for ease of invocation from gdb. | 725 // Outside the WebCore namespace for ease of invocation from gdb. |
727 void showLayerTree(const blink::DeprecatedPaintLayer*); | 726 void showLayerTree(const blink::DeprecatedPaintLayer*); |
728 void showLayerTree(const blink::LayoutObject*); | 727 void showLayerTree(const blink::LayoutObject*); |
729 #endif | 728 #endif |
730 | 729 |
731 #endif // Layer_h | 730 #endif // Layer_h |
OLD | NEW |