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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 ClipPathClipper_h
6 #define ClipPathClipper_h
7
8 #include "core/paint/SVGClipPainter.h"
9 #include "platform/graphics/paint/ClipPathRecorder.h"
10 #include "wtf/Optional.h"
11
12 namespace blink {
13
14 class FloatPoint;
15 class FloatRect;
16 class GraphicsContext;
17 class LayoutSVGResourceClipper;
18 class LayoutObject;
19
20 class ClipPathClipper {
21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
22 public:
23 ClipPathClipper(
24 GraphicsContext&,
25 const LayoutObject&,
26 const FloatRect& referenceBox,
27 const FloatRect& visualOverflowRect,
28 const FloatPoint& origin);
29 ~ClipPathClipper();
30
31 private:
32 LayoutSVGResourceClipper* m_resourceClipper;
33 Optional<ClipPathRecorder> m_clipPathRecorder;
34 SVGClipPainter::ClipperState m_clipperState;
35 const LayoutObject& m_layoutObject;
36 GraphicsContext& m_context;
37 };
38
39 } // namespace blink
40
41 #endif // ClipPathClipper_h
OLDNEW
« 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