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

Unified Diff: third_party/WebKit/Source/core/paint/ClipPathClipper.h

Issue 2265123002: Refactor ClipPathHelper in PaintLayerPainter.cpp for reuse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move comment Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/paint/ClipPathClipper.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/ClipPathClipper.h
diff --git a/third_party/WebKit/Source/core/paint/ClipPathClipper.h b/third_party/WebKit/Source/core/paint/ClipPathClipper.h
new file mode 100644
index 0000000000000000000000000000000000000000..0e297044dc94646040abb87397fd32752ccb8d07
--- /dev/null
+++ b/third_party/WebKit/Source/core/paint/ClipPathClipper.h
@@ -0,0 +1,41 @@
+// Copyright 2016 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 ClipPathClipper_h
+#define ClipPathClipper_h
+
+#include "core/paint/SVGClipPainter.h"
+#include "platform/graphics/paint/ClipPathRecorder.h"
+#include "wtf/Optional.h"
+
+namespace blink {
+
+class FloatPoint;
+class FloatRect;
+class GraphicsContext;
+class LayoutSVGResourceClipper;
+class LayoutObject;
+
+class ClipPathClipper {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+public:
+ ClipPathClipper(
+ GraphicsContext&,
+ const LayoutObject&,
+ const FloatRect& referenceBox,
+ const FloatRect& visualOverflowRect,
+ const FloatPoint& origin);
+ ~ClipPathClipper();
+
+private:
+ LayoutSVGResourceClipper* m_resourceClipper;
+ Optional<ClipPathRecorder> m_clipPathRecorder;
+ SVGClipPainter::ClipperState m_clipperState;
+ const LayoutObject& m_layoutObject;
+ GraphicsContext& m_context;
+};
+
+} // namespace blink
+
+#endif // ClipPathClipper_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/paint/ClipPathClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698