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

Side by Side Diff: Source/core/layout/compositing/CompositingInputsUpdater.h

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CompositingInputsUpdater_h 5 #ifndef CompositingInputsUpdater_h
6 #define CompositingInputsUpdater_h 6 #define CompositingInputsUpdater_h
7 7
8 #include "core/rendering/RenderGeometryMap.h" 8 #include "core/rendering/RenderGeometryMap.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class RenderLayer; 12 class Layer;
13 13
14 class CompositingInputsUpdater { 14 class CompositingInputsUpdater {
15 public: 15 public:
16 explicit CompositingInputsUpdater(RenderLayer* rootRenderLayer); 16 explicit CompositingInputsUpdater(Layer* rootLayer);
17 ~CompositingInputsUpdater(); 17 ~CompositingInputsUpdater();
18 18
19 void update(); 19 void update();
20 20
21 #if ENABLE(ASSERT) 21 #if ENABLE(ASSERT)
22 static void assertNeedsCompositingInputsUpdateBitsCleared(RenderLayer*); 22 static void assertNeedsCompositingInputsUpdateBitsCleared(Layer*);
23 #endif 23 #endif
24 24
25 private: 25 private:
26 enum UpdateType { 26 enum UpdateType {
27 DoNotForceUpdate, 27 DoNotForceUpdate,
28 ForceUpdate, 28 ForceUpdate,
29 }; 29 };
30 30
31 struct AncestorInfo { 31 struct AncestorInfo {
32 AncestorInfo() 32 AncestorInfo()
33 : ancestorStackingContext(0) 33 : ancestorStackingContext(0)
34 , enclosingCompositedLayer(0) 34 , enclosingCompositedLayer(0)
35 , lastScrollingAncestor(0) 35 , lastScrollingAncestor(0)
36 , hasAncestorWithClipOrOverflowClip(false) 36 , hasAncestorWithClipOrOverflowClip(false)
37 , hasAncestorWithClipPath(false) 37 , hasAncestorWithClipPath(false)
38 { 38 {
39 } 39 }
40 40
41 RenderLayer* ancestorStackingContext; 41 Layer* ancestorStackingContext;
42 RenderLayer* enclosingCompositedLayer; 42 Layer* enclosingCompositedLayer;
43 // Notice that lastScrollingAncestor isn't the same thing as 43 // Notice that lastScrollingAncestor isn't the same thing as
44 // ancestorScrollingLayer. The former is just the nearest scrolling 44 // ancestorScrollingLayer. The former is just the nearest scrolling
45 // along the RenderLayer::parent() chain. The latter is the layer that 45 // along the Layer::parent() chain. The latter is the layer that
46 // actually controls the scrolling of this layer, which we find on the 46 // actually controls the scrolling of this layer, which we find on the
47 // containing block chain. 47 // containing block chain.
48 RenderLayer* lastScrollingAncestor; 48 Layer* lastScrollingAncestor;
49 bool hasAncestorWithClipOrOverflowClip; 49 bool hasAncestorWithClipOrOverflowClip;
50 bool hasAncestorWithClipPath; 50 bool hasAncestorWithClipPath;
51 }; 51 };
52 52
53 void updateRecursive(RenderLayer*, UpdateType, AncestorInfo); 53 void updateRecursive(Layer*, UpdateType, AncestorInfo);
54 54
55 RenderGeometryMap m_geometryMap; 55 RenderGeometryMap m_geometryMap;
56 RenderLayer* m_rootRenderLayer; 56 Layer* m_rootLayer;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // CompositingInputsUpdater_h 61 #endif // CompositingInputsUpdater_h
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/CompositedLayerMapping.cpp ('k') | Source/core/layout/compositing/CompositingInputsUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698