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

Side by Side Diff: sky/engine/core/rendering/RenderLayerStackingNode.h

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODE_H_ 46 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODE_H_
47 47
48 #include "sky/engine/core/rendering/RenderLayerModelObject.h" 48 #include "sky/engine/core/rendering/RenderLayerModelObject.h"
49 #include "sky/engine/wtf/Noncopyable.h" 49 #include "sky/engine/wtf/Noncopyable.h"
50 #include "sky/engine/wtf/OwnPtr.h" 50 #include "sky/engine/wtf/OwnPtr.h"
51 #include "sky/engine/wtf/Vector.h" 51 #include "sky/engine/wtf/Vector.h"
52 52
53 namespace blink { 53 namespace blink {
54 54
55 class RenderLayer; 55 class RenderLayer;
56 class RenderLayerCompositor;
57 class RenderStyle; 56 class RenderStyle;
58 57
59 class RenderLayerStackingNode { 58 class RenderLayerStackingNode {
60 WTF_MAKE_NONCOPYABLE(RenderLayerStackingNode); 59 WTF_MAKE_NONCOPYABLE(RenderLayerStackingNode);
61 public: 60 public:
62 explicit RenderLayerStackingNode(RenderLayer*); 61 explicit RenderLayerStackingNode(RenderLayer*);
63 ~RenderLayerStackingNode(); 62 ~RenderLayerStackingNode();
64 63
65 int zIndex() const { return renderer()->style()->zIndex(); } 64 int zIndex() const { return renderer()->style()->zIndex(); }
66 65
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void updateStackingParentForNormalFlowList(RenderLayerStackingNode* stacking Parent); 134 void updateStackingParentForNormalFlowList(RenderLayerStackingNode* stacking Parent);
136 void setStackingParent(RenderLayerStackingNode* stackingParent) { m_stacking Parent = stackingParent; } 135 void setStackingParent(RenderLayerStackingNode* stackingParent) { m_stacking Parent = stackingParent; }
137 #endif 136 #endif
138 137
139 bool shouldBeNormalFlowOnly() const; 138 bool shouldBeNormalFlowOnly() const;
140 139
141 void updateNormalFlowList(); 140 void updateNormalFlowList();
142 141
143 bool isDirtyStackingContext() const { return m_zOrderListsDirty && isStackin gContext(); } 142 bool isDirtyStackingContext() const { return m_zOrderListsDirty && isStackin gContext(); }
144 143
145 RenderLayerCompositor* compositor() const;
146 // FIXME: Investigate changing this to Renderbox. 144 // FIXME: Investigate changing this to Renderbox.
147 RenderLayerModelObject* renderer() const; 145 RenderLayerModelObject* renderer() const;
148 146
149 RenderLayer* m_layer; 147 RenderLayer* m_layer;
150 148
151 // m_posZOrderList holds a sorted list of all the descendant nodes within 149 // m_posZOrderList holds a sorted list of all the descendant nodes within
152 // that have z-indices of 0 or greater (auto will count as 0). 150 // that have z-indices of 0 or greater (auto will count as 0).
153 // m_negZOrderList holds descendants within our stacking context with 151 // m_negZOrderList holds descendants within our stacking context with
154 // negative z-indices. 152 // negative z-indices.
155 OwnPtr<Vector<RenderLayerStackingNode*> > m_posZOrderList; 153 OwnPtr<Vector<RenderLayerStackingNode*> > m_posZOrderList;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 209
212 private: 210 private:
213 RenderLayerStackingNode* m_stackingNode; 211 RenderLayerStackingNode* m_stackingNode;
214 bool m_previousMutationAllowedState; 212 bool m_previousMutationAllowedState;
215 }; 213 };
216 #endif 214 #endif
217 215
218 } // namespace blink 216 } // namespace blink
219 217
220 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODE_H_ 218 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698