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 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 // Only safe to call from RenderLayerModelObject::destroyLayer() | 708 // Only safe to call from RenderLayerModelObject::destroyLayer() |
709 void operator delete(void*); | 709 void operator delete(void*); |
710 | 710 |
711 bool isComposited() const { return m_backing != 0; } | 711 bool isComposited() const { return m_backing != 0; } |
712 bool hasCompositedMask() const; | 712 bool hasCompositedMask() const; |
713 RenderLayerBacking* backing() const { return m_backing.get(); } | 713 RenderLayerBacking* backing() const { return m_backing.get(); } |
714 RenderLayerBacking* ensureBacking(); | 714 RenderLayerBacking* ensureBacking(); |
715 void clearBacking(bool layerBeingDestroyed = false); | 715 void clearBacking(bool layerBeingDestroyed = false); |
716 bool needsCompositedScrolling() const; | 716 bool needsCompositedScrolling() const; |
717 bool needsToBeStackingContainer() const; | 717 bool needsToBeStackingContainer() const; |
| 718 |
| 719 RenderLayer* scrollParent() const; |
| 720 RenderLayer* clipParent() const; |
| 721 |
718 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const
RenderStyle* newStyle) const; | 722 bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const
RenderStyle* newStyle) const; |
719 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; | 723 bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, c
onst RenderStyle* newStyle) const; |
720 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co
nst RenderStyle* newStyle, bool didPaintWithFilters) const; | 724 bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, co
nst RenderStyle* newStyle, bool didPaintWithFilters) const; |
721 | 725 |
722 bool paintsWithTransparency(PaintBehavior paintBehavior) const | 726 bool paintsWithTransparency(PaintBehavior paintBehavior) const |
723 { | 727 { |
724 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || !isComposited()); | 728 return isTransparent() && ((paintBehavior & PaintBehaviorFlattenComposit
ingLayers) || !isComposited()); |
725 } | 729 } |
726 | 730 |
727 bool paintsWithTransform(PaintBehavior) const; | 731 bool paintsWithTransform(PaintBehavior) const; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 bool shouldBeSelfPaintingLayer() const; | 979 bool shouldBeSelfPaintingLayer() const; |
976 | 980 |
977 // Start of ScrollableArea interface | 981 // Start of ScrollableArea interface |
978 // To be moved to RenderLayerScrollableArea | 982 // To be moved to RenderLayerScrollableArea |
979 ScrollableArea* enclosingScrollableArea() const; | 983 ScrollableArea* enclosingScrollableArea() const; |
980 | 984 |
981 void updateNeedsCompositedScrolling(); | 985 void updateNeedsCompositedScrolling(); |
982 | 986 |
983 public: | 987 public: |
984 GraphicsLayer* layerForScrolling() const; | 988 GraphicsLayer* layerForScrolling() const; |
| 989 GraphicsLayer* layerForScrollChild() const; |
985 GraphicsLayer* layerForHorizontalScrollbar() const; | 990 GraphicsLayer* layerForHorizontalScrollbar() const; |
986 GraphicsLayer* layerForVerticalScrollbar() const; | 991 GraphicsLayer* layerForVerticalScrollbar() const; |
987 GraphicsLayer* layerForScrollCorner() const; | 992 GraphicsLayer* layerForScrollCorner() const; |
988 Scrollbar* horizontalScrollbar() const { return m_hBar.get(); } | 993 Scrollbar* horizontalScrollbar() const { return m_hBar.get(); } |
989 Scrollbar* verticalScrollbar() const { return m_vBar.get(); } | 994 Scrollbar* verticalScrollbar() const { return m_vBar.get(); } |
990 bool usesCompositedScrolling() const; | 995 bool usesCompositedScrolling() const; |
991 | 996 |
992 bool hasOverlayScrollbars() const; | 997 bool hasOverlayScrollbars() const; |
993 | 998 |
994 int scrollXOffset() const; | 999 int scrollXOffset() const; |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 | 1308 |
1304 } // namespace WebCore | 1309 } // namespace WebCore |
1305 | 1310 |
1306 #ifndef NDEBUG | 1311 #ifndef NDEBUG |
1307 // Outside the WebCore namespace for ease of invocation from gdb. | 1312 // Outside the WebCore namespace for ease of invocation from gdb. |
1308 void showLayerTree(const WebCore::RenderLayer*); | 1313 void showLayerTree(const WebCore::RenderLayer*); |
1309 void showLayerTree(const WebCore::RenderObject*); | 1314 void showLayerTree(const WebCore::RenderObject*); |
1310 #endif | 1315 #endif |
1311 | 1316 |
1312 #endif // RenderLayer_h | 1317 #endif // RenderLayer_h |
OLD | NEW |