| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 #include "core/layout/LayoutBoxModelObject.h" | 48 #include "core/layout/LayoutBoxModelObject.h" |
| 49 #include "wtf/Noncopyable.h" | 49 #include "wtf/Noncopyable.h" |
| 50 #include "wtf/OwnPtr.h" | 50 #include "wtf/OwnPtr.h" |
| 51 #include "wtf/Vector.h" | 51 #include "wtf/Vector.h" |
| 52 | 52 |
| 53 namespace blink { | 53 namespace blink { |
| 54 | 54 |
| 55 class DeprecatedPaintLayer; | 55 class DeprecatedPaintLayer; |
| 56 class DeprecatedPaintLayerCompositor; | 56 class DeprecatedPaintLayerCompositor; |
| 57 class LayoutStyle; | 57 class ComputedStyle; |
| 58 class LayoutBoxModelObject; | 58 class LayoutBoxModelObject; |
| 59 | 59 |
| 60 class DeprecatedPaintLayerStackingNode { | 60 class DeprecatedPaintLayerStackingNode { |
| 61 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNode); | 61 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNode); |
| 62 public: | 62 public: |
| 63 explicit DeprecatedPaintLayerStackingNode(DeprecatedPaintLayer*); | 63 explicit DeprecatedPaintLayerStackingNode(DeprecatedPaintLayer*); |
| 64 ~DeprecatedPaintLayerStackingNode(); | 64 ~DeprecatedPaintLayerStackingNode(); |
| 65 | 65 |
| 66 int zIndex() const { return layoutObject()->style()->zIndex(); } | 66 int zIndex() const { return layoutObject()->style()->zIndex(); } |
| 67 | 67 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 79 | 79 |
| 80 bool hasPositiveZOrderList() const { return posZOrderList() && posZOrderList
()->size(); } | 80 bool hasPositiveZOrderList() const { return posZOrderList() && posZOrderList
()->size(); } |
| 81 bool hasNegativeZOrderList() const { return negZOrderList() && negZOrderList
()->size(); } | 81 bool hasNegativeZOrderList() const { return negZOrderList() && negZOrderList
()->size(); } |
| 82 | 82 |
| 83 // FIXME: should check for dirtiness here? | 83 // FIXME: should check for dirtiness here? |
| 84 bool isNormalFlowOnly() const { return m_isNormalFlowOnly; } | 84 bool isNormalFlowOnly() const { return m_isNormalFlowOnly; } |
| 85 void updateIsNormalFlowOnly(); | 85 void updateIsNormalFlowOnly(); |
| 86 bool normalFlowListDirty() const { return m_normalFlowListDirty; } | 86 bool normalFlowListDirty() const { return m_normalFlowListDirty; } |
| 87 void dirtyNormalFlowList(); | 87 void dirtyNormalFlowList(); |
| 88 | 88 |
| 89 void updateStackingNodesAfterStyleChange(const LayoutStyle* oldStyle); | 89 void updateStackingNodesAfterStyleChange(const ComputedStyle* oldStyle); |
| 90 | 90 |
| 91 DeprecatedPaintLayerStackingNode* ancestorStackingContextNode() const; | 91 DeprecatedPaintLayerStackingNode* ancestorStackingContextNode() const; |
| 92 | 92 |
| 93 DeprecatedPaintLayer* layer() const { return m_layer; } | 93 DeprecatedPaintLayer* layer() const { return m_layer; } |
| 94 | 94 |
| 95 #if ENABLE(ASSERT) | 95 #if ENABLE(ASSERT) |
| 96 bool layerListMutationAllowed() const { return m_layerListMutationAllowed; } | 96 bool layerListMutationAllowed() const { return m_layerListMutationAllowed; } |
| 97 void setLayerListMutationAllowed(bool flag) { m_layerListMutationAllowed = f
lag; } | 97 void setLayerListMutationAllowed(bool flag) { m_layerListMutationAllowed = f
lag; } |
| 98 #endif | 98 #endif |
| 99 | 99 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 private: | 209 private: |
| 210 DeprecatedPaintLayerStackingNode* m_stackingNode; | 210 DeprecatedPaintLayerStackingNode* m_stackingNode; |
| 211 bool m_previousMutationAllowedState; | 211 bool m_previousMutationAllowedState; |
| 212 }; | 212 }; |
| 213 #endif | 213 #endif |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif // DeprecatedPaintLayerStackingNode_h | 217 #endif // DeprecatedPaintLayerStackingNode_h |
| OLD | NEW |