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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 const LayoutObject&, | 565 const LayoutObject&, |
566 const LayoutBoxModelObject& paint_invalidation_container, | 566 const LayoutBoxModelObject& paint_invalidation_container, |
567 LayoutRect&); | 567 LayoutRect&); |
568 | 568 |
569 bool PaintsWithTransparency(GlobalPaintFlags global_paint_flags) const { | 569 bool PaintsWithTransparency(GlobalPaintFlags global_paint_flags) const { |
570 return IsTransparent() && | 570 return IsTransparent() && |
571 ((global_paint_flags & kGlobalPaintFlattenCompositingLayers) || | 571 ((global_paint_flags & kGlobalPaintFlattenCompositingLayers) || |
572 GetCompositingState() != kPaintsIntoOwnBacking); | 572 GetCompositingState() != kPaintsIntoOwnBacking); |
573 } | 573 } |
574 | 574 |
| 575 // Returns the ScrollingCoordinator associated with this layer, if |
| 576 // any. Otherwise nullptr. |
| 577 ScrollingCoordinator* GetScrollingCoordinator(); |
| 578 |
575 // Returns true if the element or any ancestor is transformed. | 579 // Returns true if the element or any ancestor is transformed. |
576 bool CompositesWithTransform() const; | 580 bool CompositesWithTransform() const; |
577 | 581 |
578 // Returns true if the element or any ancestor has non 1 opacity. | 582 // Returns true if the element or any ancestor has non 1 opacity. |
579 bool CompositesWithOpacity() const; | 583 bool CompositesWithOpacity() const; |
580 | 584 |
581 bool PaintsWithTransform(GlobalPaintFlags) const; | 585 bool PaintsWithTransform(GlobalPaintFlags) const; |
582 | 586 |
583 // Returns true if background phase is painted opaque in the given rect. | 587 // Returns true if background phase is painted opaque in the given rect. |
584 // The query rect is given in local coordinates. | 588 // The query rect is given in local coordinates. |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 | 1272 |
1269 } // namespace blink | 1273 } // namespace blink |
1270 | 1274 |
1271 #ifndef NDEBUG | 1275 #ifndef NDEBUG |
1272 // Outside the WebCore namespace for ease of invocation from gdb. | 1276 // Outside the WebCore namespace for ease of invocation from gdb. |
1273 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); | 1277 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); |
1274 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); | 1278 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); |
1275 #endif | 1279 #endif |
1276 | 1280 |
1277 #endif // Layer_h | 1281 #endif // Layer_h |
OLD | NEW |