| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons
t; | 143 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons
t; |
| 144 | 144 |
| 145 const RenderLayer* compositingContainer() const; | 145 const RenderLayer* compositingContainer() const; |
| 146 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const; | 146 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const; |
| 147 bool hasAncestorWithFilterOutsets() const; | 147 bool hasAncestorWithFilterOutsets() const; |
| 148 | 148 |
| 149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; | 149 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; |
| 150 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; | 150 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; |
| 151 | 151 |
| 152 // The two main functions that use the layer system. The paint method | 152 // The hitTest method looks for mouse events by walking |
| 153 // paints the layers that intersect the damage rect from back to | |
| 154 // front. The hitTest method looks for mouse events by walking | |
| 155 // layers that intersect the point from front to back. | 153 // layers that intersect the point from front to back. |
| 156 bool hitTest(const HitTestRequest&, HitTestResult&); | |
| 157 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 154 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
| 158 | 155 |
| 159 // Pass offsetFromRoot if known. | 156 // Pass offsetFromRoot if known. |
| 160 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0)
const; | 157 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0)
const; |
| 161 | 158 |
| 162 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. | 159 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. |
| 163 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou
tPoint* offsetFromRoot = 0) const; | 160 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou
tPoint* offsetFromRoot = 0) const; |
| 164 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R
enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; | 161 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R
enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; |
| 165 | 162 |
| 166 // If true, this layer's children are included in its bounds for overlap tes
ting. | 163 // If true, this layer's children are included in its bounds for overlap tes
ting. |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 | 353 |
| 357 } // namespace blink | 354 } // namespace blink |
| 358 | 355 |
| 359 #ifndef NDEBUG | 356 #ifndef NDEBUG |
| 360 // Outside the WebCore namespace for ease of invocation from gdb. | 357 // Outside the WebCore namespace for ease of invocation from gdb. |
| 361 void showLayerTree(const blink::RenderLayer*); | 358 void showLayerTree(const blink::RenderLayer*); |
| 362 void showLayerTree(const blink::RenderObject*); | 359 void showLayerTree(const blink::RenderObject*); |
| 363 #endif | 360 #endif |
| 364 | 361 |
| 365 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 362 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
| OLD | NEW |