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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 void updateNormalFlowList(); | 851 void updateNormalFlowList(); |
852 | 852 |
853 bool isStackingContext(const RenderStyle* style) const { return !style->hasA
utoZIndex() || isRootLayer(); } | 853 bool isStackingContext(const RenderStyle* style) const { return !style->hasA
utoZIndex() || isRootLayer(); } |
854 | 854 |
855 bool isDirtyStackingContainer() const { return m_zOrderListsDirty && isStack
ingContainer(); } | 855 bool isDirtyStackingContainer() const { return m_zOrderListsDirty && isStack
ingContainer(); } |
856 | 856 |
857 void setAncestorChainHasSelfPaintingLayerDescendant(); | 857 void setAncestorChainHasSelfPaintingLayerDescendant(); |
858 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); | 858 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); |
859 | 859 |
860 bool acceleratedCompositingForOverflowScrollEnabled() const; | 860 bool acceleratedCompositingForOverflowScrollEnabled() const; |
861 void updateDescendantsAreContiguousInStackingOrder(); | |
862 void updateDescendantsAreContiguousInStackingOrderRecursive(const HashMap<co
nst RenderLayer*, int>&, int& minIndex, int& maxIndex, int& count, bool firstIte
ration); | |
863 void collectBeforeAfterPromotionZOrderLists(RenderLayer* ancestorStackingCon
text, | 861 void collectBeforeAfterPromotionZOrderLists(RenderLayer* ancestorStackingCon
text, |
864 OwnPtr<Vector<RenderLayer*> >& posZOrderListBeforePromote, | 862 OwnPtr<Vector<RenderLayer*> >& posZOrderListBeforePromote, |
865 OwnPtr<Vector<RenderLayer*> >& negZOrderListBeforePromote, | 863 OwnPtr<Vector<RenderLayer*> >& negZOrderListBeforePromote, |
866 OwnPtr<Vector<RenderLayer*> >& posZOrderListAfterPromote, | 864 OwnPtr<Vector<RenderLayer*> >& posZOrderListAfterPromote, |
867 OwnPtr<Vector<RenderLayer*> >& negZOrderListAfterPromote); | 865 OwnPtr<Vector<RenderLayer*> >& negZOrderListAfterPromote); |
| 866 void updateCanBeStackingContainer(RenderLayer*); |
| 867 void updateCanBeStackingContainerRecursively(RenderLayer*); |
868 void getPaintOrderLists(RenderLayer* ancestorStackingContext, | 868 void getPaintOrderLists(RenderLayer* ancestorStackingContext, |
869 OwnPtr<Vector<RenderLayer*> >& posZOrderListBeforePromote, | 869 OwnPtr<Vector<RenderLayer*> >& posZOrderListBeforePromote, |
870 OwnPtr<Vector<RenderLayer*> >& negZOrderListBeforePromote, | 870 OwnPtr<Vector<RenderLayer*> >& negZOrderListBeforePromote, |
871 OwnPtr<Vector<RenderLayer*> >& posZOrderListAfterPromote, | 871 OwnPtr<Vector<RenderLayer*> >& posZOrderListAfterPromote, |
872 OwnPtr<Vector<RenderLayer*> >& negZOrderListAfterPromote); | 872 OwnPtr<Vector<RenderLayer*> >& negZOrderListAfterPromote); |
873 | 873 |
874 void computeRepaintRects(const RenderLayerModelObject* repaintContainer, con
st RenderGeometryMap* = 0); | 874 void computeRepaintRects(const RenderLayerModelObject* repaintContainer, con
st RenderGeometryMap* = 0); |
875 void computeRepaintRectsIncludingDescendants(); | 875 void computeRepaintRectsIncludingDescendants(); |
876 void clearRepaintRects(); | 876 void clearRepaintRects(); |
877 | 877 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 // appears between our descendants in stacking order, then we may become a | 1164 // appears between our descendants in stacking order, then we may become a |
1165 // stacking context. | 1165 // stacking context. |
1166 bool m_hasOutOfFlowPositionedDescendant : 1; | 1166 bool m_hasOutOfFlowPositionedDescendant : 1; |
1167 bool m_hasOutOfFlowPositionedDescendantDirty : 1; | 1167 bool m_hasOutOfFlowPositionedDescendantDirty : 1; |
1168 | 1168 |
1169 bool m_needsCompositedScrolling : 1; | 1169 bool m_needsCompositedScrolling : 1; |
1170 | 1170 |
1171 // If this is true, then no non-descendant appears between any of our | 1171 // If this is true, then no non-descendant appears between any of our |
1172 // descendants in stacking order. This is one of the requirements of being | 1172 // descendants in stacking order. This is one of the requirements of being |
1173 // able to safely become a stacking context. | 1173 // able to safely become a stacking context. |
1174 bool m_descendantsAreContiguousInStackingOrder : 1; | 1174 bool m_canBePromotedToStackingContainer : 1; |
1175 | 1175 |
1176 const bool m_isRootLayer : 1; | 1176 const bool m_isRootLayer : 1; |
1177 | 1177 |
1178 bool m_usedTransparency : 1; // Tracks whether we need to close a transparen
t layer, i.e., whether | 1178 bool m_usedTransparency : 1; // Tracks whether we need to close a transparen
t layer, i.e., whether |
1179 // we ended up painting this layer or any desce
ndants (and therefore need to | 1179 // we ended up painting this layer or any desce
ndants (and therefore need to |
1180 // blend). | 1180 // blend). |
1181 bool m_paintingInsideReflection : 1; // A state bit tracking if we are pain
ting inside a replica. | 1181 bool m_paintingInsideReflection : 1; // A state bit tracking if we are pain
ting inside a replica. |
1182 bool m_inOverflowRelayout : 1; | 1182 bool m_inOverflowRelayout : 1; |
1183 unsigned m_repaintStatus : 2; // RepaintStatus | 1183 unsigned m_repaintStatus : 2; // RepaintStatus |
1184 | 1184 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 | 1331 |
1332 } // namespace WebCore | 1332 } // namespace WebCore |
1333 | 1333 |
1334 #ifndef NDEBUG | 1334 #ifndef NDEBUG |
1335 // Outside the WebCore namespace for ease of invocation from gdb. | 1335 // Outside the WebCore namespace for ease of invocation from gdb. |
1336 void showLayerTree(const WebCore::RenderLayer*); | 1336 void showLayerTree(const WebCore::RenderLayer*); |
1337 void showLayerTree(const WebCore::RenderObject*); | 1337 void showLayerTree(const WebCore::RenderObject*); |
1338 #endif | 1338 #endif |
1339 | 1339 |
1340 #endif // RenderLayer_h | 1340 #endif // RenderLayer_h |
OLD | NEW |