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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h

Issue 2394853003: Enforce comment formatting in platform/ (Closed)
Patch Set: change Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PropertyTreeState_h 5 #ifndef PropertyTreeState_h
6 #define PropertyTreeState_h 6 #define PropertyTreeState_h
7 7
8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" 10 #include "platform/graphics/paint/ScrollPaintPropertyNode.h"
11 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 11 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
12 #include "wtf/HashFunctions.h" 12 #include "wtf/HashFunctions.h"
13 #include "wtf/HashTraits.h" 13 #include "wtf/HashTraits.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 // A complete set of paint properties including those that are inherited from ot her objects. 17 // A complete set of paint properties including those that are inherited from
18 // RefPtrs are used to guard against use-after-free bugs and DCHECKs ensure Prop ertyTreeState 18 // other objects. RefPtrs are used to guard against use-after-free bugs and
19 // never retains the last reference to a property tree node. 19 // DCHECKs ensure PropertyTreeState never retains the last reference to a
20 // property tree node.
20 class PropertyTreeState { 21 class PropertyTreeState {
21 public: 22 public:
22 PropertyTreeState(const TransformPaintPropertyNode* transform, 23 PropertyTreeState(const TransformPaintPropertyNode* transform,
23 const ClipPaintPropertyNode* clip, 24 const ClipPaintPropertyNode* clip,
24 const EffectPaintPropertyNode* effect, 25 const EffectPaintPropertyNode* effect,
25 const ScrollPaintPropertyNode* scroll) 26 const ScrollPaintPropertyNode* scroll)
26 : m_transform(transform), 27 : m_transform(transform),
27 m_clip(clip), 28 m_clip(clip),
28 m_effect(effect), 29 m_effect(effect),
29 m_scroll(scroll) { 30 m_scroll(scroll) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 private: 71 private:
71 RefPtr<const TransformPaintPropertyNode> m_transform; 72 RefPtr<const TransformPaintPropertyNode> m_transform;
72 RefPtr<const ClipPaintPropertyNode> m_clip; 73 RefPtr<const ClipPaintPropertyNode> m_clip;
73 RefPtr<const EffectPaintPropertyNode> m_effect; 74 RefPtr<const EffectPaintPropertyNode> m_effect;
74 RefPtr<const ScrollPaintPropertyNode> m_scroll; 75 RefPtr<const ScrollPaintPropertyNode> m_scroll;
75 }; 76 };
76 } // namespace blink 77 } // namespace blink
77 78
78 #endif // PropertyTreeState_h 79 #endif // PropertyTreeState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698