| 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 27 matching lines...) Expand all Loading... |
| 38 * version of this file under the LGPL, indicate your decision by | 38 * version of this file under the LGPL, indicate your decision by |
| 39 * deletingthe provisions above and replace them with the notice and | 39 * deletingthe provisions above and replace them with the notice and |
| 40 * other provisions required by the MPL or the GPL, as the case may be. | 40 * other provisions required by the MPL or the GPL, as the case may be. |
| 41 * If you do not delete the provisions above, a recipient may use your | 41 * If you do not delete the provisions above, a recipient may use your |
| 42 * version of this file under any of the LGPL, the MPL or the GPL. | 42 * version of this file under any of the LGPL, the MPL or the GPL. |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 #ifndef DeprecatedPaintLayerStackingNode_h | 45 #ifndef DeprecatedPaintLayerStackingNode_h |
| 46 #define DeprecatedPaintLayerStackingNode_h | 46 #define DeprecatedPaintLayerStackingNode_h |
| 47 | 47 |
| 48 #include "core/CoreExport.h" |
| 48 #include "core/layout/LayoutBoxModelObject.h" | 49 #include "core/layout/LayoutBoxModelObject.h" |
| 49 #include "wtf/Noncopyable.h" | 50 #include "wtf/Noncopyable.h" |
| 50 #include "wtf/OwnPtr.h" | 51 #include "wtf/OwnPtr.h" |
| 51 #include "wtf/Vector.h" | 52 #include "wtf/Vector.h" |
| 52 | 53 |
| 53 namespace blink { | 54 namespace blink { |
| 54 | 55 |
| 55 class DeprecatedPaintLayer; | 56 class DeprecatedPaintLayer; |
| 56 class DeprecatedPaintLayerCompositor; | 57 class DeprecatedPaintLayerCompositor; |
| 57 class ComputedStyle; | 58 class ComputedStyle; |
| 58 class LayoutBoxModelObject; | 59 class LayoutBoxModelObject; |
| 59 | 60 |
| 60 class DeprecatedPaintLayerStackingNode { | 61 class CORE_EXPORT DeprecatedPaintLayerStackingNode { |
| 61 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNode); | 62 WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNode); |
| 62 public: | 63 public: |
| 63 explicit DeprecatedPaintLayerStackingNode(DeprecatedPaintLayer*); | 64 explicit DeprecatedPaintLayerStackingNode(DeprecatedPaintLayer*); |
| 64 ~DeprecatedPaintLayerStackingNode(); | 65 ~DeprecatedPaintLayerStackingNode(); |
| 65 | 66 |
| 66 int zIndex() const { return layoutObject()->style()->zIndex(); } | 67 int zIndex() const { return layoutObject()->style()->zIndex(); } |
| 67 | 68 |
| 68 // A stacking context is a layer that has a non-auto z-index. | 69 // A stacking context is a layer that has a non-auto z-index. |
| 69 bool isStackingContext() const { return !layoutObject()->style()->hasAutoZIn
dex(); } | 70 bool isStackingContext() const { return !layoutObject()->style()->hasAutoZIn
dex(); } |
| 70 | 71 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 213 |
| 213 private: | 214 private: |
| 214 DeprecatedPaintLayerStackingNode* m_stackingNode; | 215 DeprecatedPaintLayerStackingNode* m_stackingNode; |
| 215 bool m_previousMutationAllowedState; | 216 bool m_previousMutationAllowedState; |
| 216 }; | 217 }; |
| 217 #endif | 218 #endif |
| 218 | 219 |
| 219 } // namespace blink | 220 } // namespace blink |
| 220 | 221 |
| 221 #endif // DeprecatedPaintLayerStackingNode_h | 222 #endif // DeprecatedPaintLayerStackingNode_h |
| OLD | NEW |