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

Unified Diff: Source/core/paint/ContentBoxRadiusClipper.h

Issue 865353002: Implement clip and scroll DisplayItems for PartPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/ContentBoxRadiusClipper.h
diff --git a/Source/core/paint/ContentBoxRadiusClipper.h b/Source/core/paint/ContentBoxRadiusClipper.h
new file mode 100644
index 0000000000000000000000000000000000000000..ca2f8d9919e0533bf4bf38616d44d640d2579ab5
--- /dev/null
+++ b/Source/core/paint/ContentBoxRadiusClipper.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ContentBoxRadiusClipper_h
+#define ContentBoxRadiusClipper_h
+
+#include "core/rendering/PaintPhase.h"
+#include "platform/geometry/LayoutPoint.h"
+
+namespace blink {
+
+class RenderBox;
+struct PaintInfo;
+
+class ContentBoxRadiusClipper {
+public:
+ ContentBoxRadiusClipper(RenderBox&, const PaintInfo&, const LayoutPoint& accumulatedOffset);
+ ~ContentBoxRadiusClipper();
+ bool completelyClipped() { return m_completelyClipped; }
+
+private:
+ RenderBox& m_box;
+ const PaintInfo& m_paintInfo;
+ bool m_pushedClip;
+ bool m_completelyClipped;
+};
+
+} // namespace blink
+
+#endif // ContentBoxRadiusClipper_h

Powered by Google App Engine
This is Rietveld 408576698