| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 bool canUseConvertToLayerCoords() const | 209 bool canUseConvertToLayerCoords() const |
| 210 { | 210 { |
| 211 // These RenderObjects have an impact on their layers without the render
ers knowing about it. | 211 // These RenderObjects have an impact on their layers without the render
ers knowing about it. |
| 212 return !renderer()->hasColumns() && !renderer()->hasTransformRelatedProp
erty() && !renderer()->isSVGRoot(); | 212 return !renderer()->hasColumns() && !renderer()->hasTransformRelatedProp
erty() && !renderer()->isSVGRoot(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; | 215 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutPoint&) co
nst; |
| 216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; | 216 void convertToLayerCoords(const RenderLayer* ancestorLayer, LayoutRect&) con
st; |
| 217 | 217 |
| 218 LayoutPoint visualOffsetFromAncestor(const RenderLayer* ancestorLayer) const
; |
| 219 |
| 218 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. | 220 // The hitTest() method looks for mouse events by walking layers that inters
ect the point from front to back. |
| 219 bool hitTest(const HitTestRequest&, HitTestResult&); | 221 bool hitTest(const HitTestRequest&, HitTestResult&); |
| 220 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 222 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
| 221 | 223 |
| 222 // Pass offsetFromRoot if known. | 224 // Pass offsetFromRoot if known. |
| 223 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0)
const; | 225 bool intersectsDamageRect(const LayoutRect& layerBounds, const LayoutRect& d
amageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromRoot = 0)
const; |
| 224 | 226 |
| 225 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. | 227 // Bounding box relative to some ancestor layer. Pass offsetFromRoot if know
n. |
| 226 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou
tPoint* offsetFromRoot = 0) const; | 228 LayoutRect physicalBoundingBox(const RenderLayer* ancestorLayer, const Layou
tPoint* offsetFromRoot = 0) const; |
| 227 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R
enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; | 229 LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const R
enderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 704 |
| 703 } // namespace blink | 705 } // namespace blink |
| 704 | 706 |
| 705 #ifndef NDEBUG | 707 #ifndef NDEBUG |
| 706 // Outside the WebCore namespace for ease of invocation from gdb. | 708 // Outside the WebCore namespace for ease of invocation from gdb. |
| 707 void showLayerTree(const blink::RenderLayer*); | 709 void showLayerTree(const blink::RenderLayer*); |
| 708 void showLayerTree(const blink::RenderObject*); | 710 void showLayerTree(const blink::RenderObject*); |
| 709 #endif | 711 #endif |
| 710 | 712 |
| 711 #endif // RenderLayer_h | 713 #endif // RenderLayer_h |
| OLD | NEW |