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

Side by Side Diff: Source/core/rendering/RenderBoxClipper.h

Issue 732093002: Move RenderBoxClipper to core/paint/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/TableSectionPainter.cpp ('k') | Source/core/rendering/RenderBoxClipper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef RenderBoxClipper_h
6 #define RenderBoxClipper_h
7
8 #include "core/rendering/PaintPhase.h"
9 #include "platform/geometry/LayoutPoint.h"
10
11 namespace blink {
12
13 class RenderBox;
14 struct PaintInfo;
15
16 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
17
18 class RenderBoxClipper {
19 public:
20 RenderBoxClipper(RenderBox&, PaintInfo&, const LayoutPoint& accumulatedOffse t, ContentsClipBehavior);
21 ~RenderBoxClipper();
22
23 bool pushedClip() { return m_pushedClip; }
24 private:
25 bool m_pushedClip;
26 LayoutPoint m_accumulatedOffset;
27 PaintInfo& m_paintInfo;
28 PaintPhase m_originalPhase;
29 RenderBox& m_box;
30 };
31
32 } // namespace blink
33
34 #endif // RenderBoxClipper_h
OLDNEW
« no previous file with comments | « Source/core/paint/TableSectionPainter.cpp ('k') | Source/core/rendering/RenderBoxClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698