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

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

Issue 2330863003: Switch to null root property tree nodes [spv2] (Closed)
Patch Set: Rebase from space Created 4 years, 3 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 | « third_party/WebKit/Source/platform/graphics/paint/README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ScrollPaintPropertyNode_h 5 #ifndef ScrollPaintPropertyNode_h
6 #define ScrollPaintPropertyNode_h 6 #define ScrollPaintPropertyNode_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatSize.h" 9 #include "platform/geometry/FloatSize.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
11 #include "wtf/PassRefPtr.h" 11 #include "wtf/PassRefPtr.h"
12 #include "wtf/RefCounted.h" 12 #include "wtf/RefCounted.h"
13 #include "wtf/RefPtr.h" 13 #include "wtf/RefPtr.h"
14 14
15 #include <iosfwd> 15 #include <iosfwd>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 // A scroll node contains auxiliary scrolling information for compositor-thread 19 // A scroll node contains auxiliary scrolling information such as how far an
20 // scrolling and includes how far an area can be scrolled, which 20 // area can be scrolled, which |TransformPaintPropertyNode| contains the scroll
21 // |TransformPaintPropertyNode| contains the scroll offset, etc. 21 // offset, etc.
22 class PLATFORM_EXPORT ScrollPaintPropertyNode : public RefCounted<ScrollPaintPro pertyNode> { 22 class PLATFORM_EXPORT ScrollPaintPropertyNode : public RefCounted<ScrollPaintPro pertyNode> {
23 public: 23 public:
24 static PassRefPtr<ScrollPaintPropertyNode> create( 24 static PassRefPtr<ScrollPaintPropertyNode> create(
25 PassRefPtr<const ScrollPaintPropertyNode> parent, 25 PassRefPtr<const ScrollPaintPropertyNode> parent,
26 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation, 26 PassRefPtr<const TransformPaintPropertyNode> scrollOffsetTranslation,
27 const IntSize& clip, 27 const IntSize& clip,
28 const IntSize& bounds, 28 const IntSize& bounds,
29 bool userScrollableHorizontal, 29 bool userScrollableHorizontal,
30 bool userScrollableVertical) 30 bool userScrollableVertical)
31 { 31 {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // TODO(pdr): Add a bit for whether this is affected by page scale. 88 // TODO(pdr): Add a bit for whether this is affected by page scale.
89 }; 89 };
90 90
91 // Redeclared here to avoid ODR issues. 91 // Redeclared here to avoid ODR issues.
92 // See platform/testing/PaintPrinters.h. 92 // See platform/testing/PaintPrinters.h.
93 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*); 93 void PrintTo(const ScrollPaintPropertyNode&, std::ostream*);
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // ScrollPaintPropertyNode_h 97 #endif // ScrollPaintPropertyNode_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698