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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutPoint&) con
st; | 293 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutPoint&) con
st; |
294 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutRect&) cons
t; | 294 void convertToLayerCoords(const PaintLayer* ancestorLayer, LayoutRect&) cons
t; |
295 | 295 |
296 // Does the same as convertToLayerCoords() when not in multicol. For multico
l, however, | 296 // Does the same as convertToLayerCoords() when not in multicol. For multico
l, however, |
297 // convertToLayerCoords() calculates the offset in flow-thread coordinates (
what the layout | 297 // convertToLayerCoords() calculates the offset in flow-thread coordinates (
what the layout |
298 // engine uses internally), while this method calculates the visual coordina
tes; i.e. it figures | 298 // engine uses internally), while this method calculates the visual coordina
tes; i.e. it figures |
299 // out which column the layer starts in and adds in the offset. See | 299 // out which column the layer starts in and adds in the offset. See |
300 // http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info. | 300 // http://www.chromium.org/developers/design-documents/multi-column-layout f
or more info. |
301 LayoutPoint visualOffsetFromAncestor(const PaintLayer* ancestorLayer) const; | 301 LayoutPoint visualOffsetFromAncestor(const PaintLayer* ancestorLayer) const; |
302 | 302 |
| 303 // Convert a bounding box from flow thread coordinates, relative to |this|,
to visual coordinates, relative to |ancestorLayer|. |
| 304 // See http://www.chromium.org/developers/design-documents/multi-column-layo
ut for more info on these coordinate types. |
| 305 // This method requires this layer to be paginated; i.e. it must have an enc
losingPaginationLayer(). |
| 306 void convertFromFlowThreadToVisualBoundingBoxInAncestor(const PaintLayer* an
cestorLayer, LayoutRect&) const; |
| 307 |
303 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. | 308 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. |
304 bool hitTest(HitTestResult&); | 309 bool hitTest(HitTestResult&); |
305 | 310 |
306 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const LayoutPoint& offsetFromRoot) const; | 311 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const LayoutPoint& offsetFromRoot) const; |
307 | 312 |
308 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. | 313 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. |
309 LayoutRect physicalBoundingBox(const LayoutPoint& offsetFromRoot) const; | 314 LayoutRect physicalBoundingBox(const LayoutPoint& offsetFromRoot) const; |
310 LayoutRect physicalBoundingBox(const PaintLayer* ancestorLayer) const; | 315 LayoutRect physicalBoundingBox(const PaintLayer* ancestorLayer) const; |
311 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const L
ayoutPoint& offsetFromRoot) const; | 316 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const L
ayoutPoint& offsetFromRoot) const; |
312 LayoutRect fragmentsBoundingBox(const PaintLayer* ancestorLayer) const; | 317 LayoutRect fragmentsBoundingBox(const PaintLayer* ancestorLayer) const; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 | 824 |
820 } // namespace blink | 825 } // namespace blink |
821 | 826 |
822 #ifndef NDEBUG | 827 #ifndef NDEBUG |
823 // Outside the WebCore namespace for ease of invocation from gdb. | 828 // Outside the WebCore namespace for ease of invocation from gdb. |
824 void showLayerTree(const blink::PaintLayer*); | 829 void showLayerTree(const blink::PaintLayer*); |
825 void showLayerTree(const blink::LayoutObject*); | 830 void showLayerTree(const blink::LayoutObject*); |
826 #endif | 831 #endif |
827 | 832 |
828 #endif // Layer_h | 833 #endif // Layer_h |
OLD | NEW |