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

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

Issue 2842983002: [LayoutNG] Paint inlines from the fragment tree
Patch Set: Rebase w/HEAD Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 RoundedInnerRectClipper_h 5 #ifndef RoundedInnerRectClipper_h
6 #define RoundedInnerRectClipper_h 6 #define RoundedInnerRectClipper_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "platform/wtf/Allocator.h" 9 #include "platform/wtf/Allocator.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class FloatRoundedRect; 13 class FloatRoundedRect;
14 class LayoutRect; 14 class LayoutRect;
15 class LayoutObject;
16 struct PaintInfo; 15 struct PaintInfo;
17 16
18 enum RoundedInnerRectClipperBehavior { kApplyToDisplayList, kApplyToContext }; 17 enum RoundedInnerRectClipperBehavior { kApplyToDisplayList, kApplyToContext };
19 18
20 class RoundedInnerRectClipper { 19 class RoundedInnerRectClipper {
21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
22 21
23 public: 22 public:
24 RoundedInnerRectClipper(const LayoutObject&, 23 RoundedInnerRectClipper(const DisplayItemClient&,
25 const PaintInfo&, 24 const PaintInfo&,
26 const LayoutRect&, 25 const LayoutRect&,
27 const FloatRoundedRect& clip_rect, 26 const FloatRoundedRect& clip_rect,
28 RoundedInnerRectClipperBehavior); 27 RoundedInnerRectClipperBehavior);
29 ~RoundedInnerRectClipper(); 28 ~RoundedInnerRectClipper();
30 29
31 private: 30 private:
32 const LayoutObject& layout_object_; 31 const DisplayItemClient& display_item_;
33 const PaintInfo& paint_info_; 32 const PaintInfo& paint_info_;
34 bool use_paint_controller_; 33 bool use_paint_controller_;
35 DisplayItem::Type clip_type_; 34 DisplayItem::Type clip_type_;
36 }; 35 };
37 36
38 } // namespace blink 37 } // namespace blink
39 38
40 #endif // RoundedInnerRectClipper_h 39 #endif // RoundedInnerRectClipper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698