Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerStackingNode.h

Issue 1170963002: Componentization: make core classes visible for blink_tests and blink_web. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/PageScaleConstraintsSet.h ('k') | Source/core/paint/ScopeRecorder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/frame/PageScaleConstraintsSet.h ('k') | Source/core/paint/ScopeRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698