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

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxClipper.h

Issue 1652313003: [SPv2] Hookup overflow clip/scroll property nodes for normal flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chunk_property_hookup_4
Patch Set: rebase Created 4 years, 9 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 BoxClipper_h 5 #ifndef BoxClipper_h
6 #define BoxClipper_h 6 #define BoxClipper_h
7 7
8 #include "platform/geometry/LayoutPoint.h" 8 #include "platform/geometry/LayoutPoint.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.h"
10 #include "platform/graphics/paint/ScopedPaintChunkProperties.h"
10 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
12 #include "wtf/Optional.h"
11 13
12 namespace blink { 14 namespace blink {
13 15
14 class LayoutBox; 16 class LayoutBox;
15 struct PaintInfo; 17 struct PaintInfo;
16 18
17 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; 19 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
18 20
19 class BoxClipper { 21 class BoxClipper {
20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
21 public: 23 public:
22 BoxClipper(const LayoutBox&, const PaintInfo&, const LayoutPoint& accumulate dOffset, ContentsClipBehavior); 24 BoxClipper(const LayoutBox&, const PaintInfo&, const LayoutPoint& accumulate dOffset, ContentsClipBehavior);
23 ~BoxClipper(); 25 ~BoxClipper();
24 private: 26 private:
25 const LayoutBox& m_box; 27 const LayoutBox& m_box;
26 const PaintInfo& m_paintInfo; 28 const PaintInfo& m_paintInfo;
27 DisplayItem::Type m_clipType; 29 DisplayItem::Type m_clipType;
30
31 Optional<ScopedPaintChunkProperties> m_scopedClipProperty;
28 }; 32 };
29 33
30 } // namespace blink 34 } // namespace blink
31 35
32 #endif // BoxClipper_h 36 #endif // BoxClipper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BlockPainter.cpp ('k') | third_party/WebKit/Source/core/paint/BoxClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698