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

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

Issue 2817663002: Rewrite references to "wtf/" to "platform/wtf/" in core/paint. (Closed)
Patch Set: Created 3 years, 8 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 "platform/graphics/paint/ScopedPaintChunkProperties.h"
11 #include "wtf/Allocator.h" 11 #include "platform/wtf/Allocator.h"
12 #include "wtf/Optional.h" 12 #include "platform/wtf/Optional.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class LayoutBox; 16 class LayoutBox;
17 struct PaintInfo; 17 struct PaintInfo;
18 18
19 enum ContentsClipBehavior { kForceContentsClip, kSkipContentsClipIfPossible }; 19 enum ContentsClipBehavior { kForceContentsClip, kSkipContentsClipIfPossible };
20 20
21 class BoxClipper { 21 class BoxClipper {
22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 22 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
23 23
24 public: 24 public:
25 BoxClipper(const LayoutBox&, 25 BoxClipper(const LayoutBox&,
26 const PaintInfo&, 26 const PaintInfo&,
27 const LayoutPoint& accumulated_offset, 27 const LayoutPoint& accumulated_offset,
28 ContentsClipBehavior); 28 ContentsClipBehavior);
29 ~BoxClipper(); 29 ~BoxClipper();
30 30
31 private: 31 private:
32 const LayoutBox& box_; 32 const LayoutBox& box_;
33 const PaintInfo& paint_info_; 33 const PaintInfo& paint_info_;
34 DisplayItem::Type clip_type_; 34 DisplayItem::Type clip_type_;
35 35
36 Optional<ScopedPaintChunkProperties> scoped_clip_property_; 36 Optional<ScopedPaintChunkProperties> scoped_clip_property_;
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // BoxClipper_h 41 #endif // BoxClipper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPaintInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698