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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/ReplacedPainter.cpp ('k') | Source/core/paint/RoundedInnerRectClipper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "core/rendering/PaintPhase.h" 8 #include "core/rendering/PaintPhase.h"
9 #include "platform/graphics/paint/DisplayItem.h" 9 #include "platform/graphics/paint/DisplayItem.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 RenderObject; 15 class LayoutObject;
16 struct PaintInfo; 16 struct PaintInfo;
17 17
18 enum RoundedInnerRectClipperBehavior { 18 enum RoundedInnerRectClipperBehavior {
19 ApplyToDisplayListIfEnabled, 19 ApplyToDisplayListIfEnabled,
20 ApplyToContext 20 ApplyToContext
21 }; 21 };
22 22
23 class RoundedInnerRectClipper { 23 class RoundedInnerRectClipper {
24 public: 24 public:
25 RoundedInnerRectClipper(RenderObject&, const PaintInfo&, const LayoutRect&, const FloatRoundedRect& clipRect, RoundedInnerRectClipperBehavior); 25 RoundedInnerRectClipper(LayoutObject&, const PaintInfo&, const LayoutRect&, const FloatRoundedRect& clipRect, RoundedInnerRectClipperBehavior);
26 ~RoundedInnerRectClipper(); 26 ~RoundedInnerRectClipper();
27 27
28 private: 28 private:
29 RenderObject& m_renderer; 29 LayoutObject& m_renderer;
30 const PaintInfo& m_paintInfo; 30 const PaintInfo& m_paintInfo;
31 bool m_useDisplayItemList; 31 bool m_useDisplayItemList;
32 DisplayItem::Type m_clipType; 32 DisplayItem::Type m_clipType;
33 }; 33 };
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // RoundedInnerRectClipper_h 37 #endif // RoundedInnerRectClipper_h
OLDNEW
« no previous file with comments | « Source/core/paint/ReplacedPainter.cpp ('k') | Source/core/paint/RoundedInnerRectClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698