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

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

Issue 908243002: Move rendering/svg/RenderSVGResource* to layout/svg. (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/SVGInlineTextBoxPainter.cpp ('k') | Source/core/paint/SVGPaintContext.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 /** 1 /**
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version. 12 * version 2 of the License, or (at your option) any later version.
13 * 13 *
14 * This library is distributed in the hope that it will be useful, 14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details. 17 * Library General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Library General Public License 19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to 20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA. 22 * Boston, MA 02110-1301, USA.
23 */ 23 */
24 24
25 #ifndef SVGPaintContext_h 25 #ifndef SVGPaintContext_h
26 #define SVGPaintContext_h 26 #define SVGPaintContext_h
27 27
28 #include "core/layout/PaintInfo.h" 28 #include "core/layout/PaintInfo.h"
29 #include "core/layout/svg/LayoutSVGResourceClipper.h"
29 #include "core/paint/CompositingRecorder.h" 30 #include "core/paint/CompositingRecorder.h"
30 #include "core/paint/FloatClipRecorder.h" 31 #include "core/paint/FloatClipRecorder.h"
31 #include "core/rendering/svg/RenderSVGResourceClipper.h"
32 #include "platform/graphics/paint/ClipPathRecorder.h" 32 #include "platform/graphics/paint/ClipPathRecorder.h"
33 #include "platform/transforms/AffineTransform.h" 33 #include "platform/transforms/AffineTransform.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class LayoutObject; 37 class LayoutObject;
38 class RenderSVGResourceFilter; 38 class LayoutSVGResourceFilter;
39 class RenderSVGResourceMasker; 39 class LayoutSVGResourceMasker;
40 class SVGResources; 40 class SVGResources;
41 41
42 class SVGPaintContext { 42 class SVGPaintContext {
43 STACK_ALLOCATED(); 43 STACK_ALLOCATED();
44 public: 44 public:
45 SVGPaintContext(LayoutObject& object, const PaintInfo& paintInfo) 45 SVGPaintContext(LayoutObject& object, const PaintInfo& paintInfo)
46 : m_object(&object) 46 : m_object(&object)
47 , m_paintInfo(paintInfo) 47 , m_paintInfo(paintInfo)
48 , m_originalPaintInfo(&paintInfo) 48 , m_originalPaintInfo(&paintInfo)
49 , m_filter(nullptr) 49 , m_filter(nullptr)
50 , m_clipper(nullptr) 50 , m_clipper(nullptr)
51 , m_clipperState(RenderSVGResourceClipper::ClipperNotApplied) 51 , m_clipperState(LayoutSVGResourceClipper::ClipperNotApplied)
52 , m_masker(nullptr) 52 , m_masker(nullptr)
53 #if ENABLE(ASSERT) 53 #if ENABLE(ASSERT)
54 , m_applyClipMaskAndFilterIfNecessaryCalled(false) 54 , m_applyClipMaskAndFilterIfNecessaryCalled(false)
55 #endif 55 #endif
56 { } 56 { }
57 57
58 ~SVGPaintContext(); 58 ~SVGPaintContext();
59 59
60 PaintInfo& paintInfo() { return m_paintInfo; } 60 PaintInfo& paintInfo() { return m_paintInfo; }
61 61
(...skipping 12 matching lines...) Expand all
74 bool applyMaskIfNecessary(SVGResources*); 74 bool applyMaskIfNecessary(SVGResources*);
75 75
76 // Return true if no filtering is necessary or if the filter is successfully applied. 76 // Return true if no filtering is necessary or if the filter is successfully applied.
77 bool applyFilterIfNecessary(SVGResources*); 77 bool applyFilterIfNecessary(SVGResources*);
78 78
79 bool isIsolationInstalled() const; 79 bool isIsolationInstalled() const;
80 80
81 RawPtrWillBeMember<LayoutObject> m_object; 81 RawPtrWillBeMember<LayoutObject> m_object;
82 PaintInfo m_paintInfo; 82 PaintInfo m_paintInfo;
83 const PaintInfo* m_originalPaintInfo; 83 const PaintInfo* m_originalPaintInfo;
84 RawPtrWillBeMember<RenderSVGResourceFilter> m_filter; 84 RawPtrWillBeMember<LayoutSVGResourceFilter> m_filter;
85 RawPtrWillBeMember<RenderSVGResourceClipper> m_clipper; 85 RawPtrWillBeMember<LayoutSVGResourceClipper> m_clipper;
86 RenderSVGResourceClipper::ClipperState m_clipperState; 86 LayoutSVGResourceClipper::ClipperState m_clipperState;
87 RawPtrWillBeMember<RenderSVGResourceMasker> m_masker; 87 RawPtrWillBeMember<LayoutSVGResourceMasker> m_masker;
88 OwnPtr<CompositingRecorder> m_compositingRecorder; 88 OwnPtr<CompositingRecorder> m_compositingRecorder;
89 OwnPtr<FloatClipRecorder> m_clipRecorder; 89 OwnPtr<FloatClipRecorder> m_clipRecorder;
90 OwnPtr<ClipPathRecorder> m_clipPathRecorder; 90 OwnPtr<ClipPathRecorder> m_clipPathRecorder;
91 #if ENABLE(ASSERT) 91 #if ENABLE(ASSERT)
92 bool m_applyClipMaskAndFilterIfNecessaryCalled; 92 bool m_applyClipMaskAndFilterIfNecessaryCalled;
93 #endif 93 #endif
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // SVGPaintContext_h 98 #endif // SVGPaintContext_h
OLDNEW
« no previous file with comments | « Source/core/paint/SVGInlineTextBoxPainter.cpp ('k') | Source/core/paint/SVGPaintContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698