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

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

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. 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
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/layout/LayoutGeometryMap.h" 8 #include "core/layout/LayoutGeometryMap.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 12 matching lines...) Expand all
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(nullptr)
34 , enclosingCompositedLayer(0) 34 , enclosingCompositedLayer(nullptr)
35 , lastScrollingAncestor(0) 35 , lastScrollingAncestor(nullptr)
36 , hasAncestorWithClipOrOverflowClip(false) 36 , hasAncestorWithClipOrOverflowClip(false)
37 , hasAncestorWithClipPath(false) 37 , hasAncestorWithClipPath(false)
38 { 38 {
39 } 39 }
40 40
41 DeprecatedPaintLayer* ancestorStackingContext; 41 DeprecatedPaintLayer* ancestorStackingContext;
42 DeprecatedPaintLayer* enclosingCompositedLayer; 42 DeprecatedPaintLayer* 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 DeprecatedPaintLayer::parent() chain. The latter is the lay er that 45 // along the DeprecatedPaintLayer::parent() chain. The latter is the lay er 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 DeprecatedPaintLayer* lastScrollingAncestor; 48 DeprecatedPaintLayer* lastScrollingAncestor;
49 bool hasAncestorWithClipOrOverflowClip; 49 bool hasAncestorWithClipOrOverflowClip;
50 bool hasAncestorWithClipPath; 50 bool hasAncestorWithClipPath;
51 }; 51 };
52 52
53 void updateRecursive(DeprecatedPaintLayer*, UpdateType, AncestorInfo); 53 void updateRecursive(DeprecatedPaintLayer*, UpdateType, AncestorInfo);
54 54
55 LayoutGeometryMap m_geometryMap; 55 LayoutGeometryMap m_geometryMap;
56 DeprecatedPaintLayer* m_rootLayer; 56 DeprecatedPaintLayer* m_rootLayer;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // CompositingInputsUpdater_h 61 #endif // CompositingInputsUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698