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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceFilterPrimitive.cpp

Issue 15427003: Remove 100 superfluous includes from core/rendering/svg (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back RenderView.h include to RenderSVGResourceContainer.cpp, broke rel compiles Created 7 years, 7 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/rendering/svg/RenderSVGResourceFilterPrimitive.h ('k') | no next file » | 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) 2010 University of Szeged 2 * Copyright (C) 2010 University of Szeged
3 * Copyright (C) 2010 Zoltan Herczeg 3 * Copyright (C) 2010 Zoltan Herczeg
4 * Copyright (C) 2011 Renata Hodovan (reni@webkit.org) 4 * Copyright (C) 2011 Renata Hodovan (reni@webkit.org)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 11 matching lines...) Expand all
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 29
30 #include "core/rendering/svg/RenderSVGResourceFilterPrimitive.h" 30 #include "core/rendering/svg/RenderSVGResourceFilterPrimitive.h"
31 31
32 #include "SVGNames.h"
33 #include "core/rendering/svg/RenderSVGResource.h"
34 #include "core/svg/graphics/filters/SVGFEImage.h"
35 #include "core/svg/graphics/filters/SVGFilter.h"
36
37 namespace WebCore { 32 namespace WebCore {
38 33
39
40 void RenderSVGResourceFilterPrimitive::styleDidChange(StyleDifference diff, cons t RenderStyle* oldStyle) 34 void RenderSVGResourceFilterPrimitive::styleDidChange(StyleDifference diff, cons t RenderStyle* oldStyle)
41 { 35 {
42 RenderSVGHiddenContainer::styleDidChange(diff, oldStyle); 36 RenderSVGHiddenContainer::styleDidChange(diff, oldStyle);
43 37
44 RenderObject* filter = parent(); 38 RenderObject* filter = parent();
45 if (!filter) 39 if (!filter)
46 return; 40 return;
47 ASSERT(filter->isSVGResourceFilter()); 41 ASSERT(filter->isSVGResourceFilter());
48 42
49 if (diff == StyleDifferenceEqual || !oldStyle) 43 if (diff == StyleDifferenceEqual || !oldStyle)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Clip every filter effect to the filter region. 92 // Clip every filter effect to the filter region.
99 FloatRect absoluteScaledFilterRegion = filter->absoluteFilterRegion(); 93 FloatRect absoluteScaledFilterRegion = filter->absoluteFilterRegion();
100 absoluteScaledFilterRegion.scale(filterResolution.width(), filterResolution. height()); 94 absoluteScaledFilterRegion.scale(filterResolution.width(), filterResolution. height());
101 absoluteSubregion.intersect(absoluteScaledFilterRegion); 95 absoluteSubregion.intersect(absoluteScaledFilterRegion);
102 96
103 effect->setMaxEffectRect(absoluteSubregion); 97 effect->setMaxEffectRect(absoluteSubregion);
104 return subregion; 98 return subregion;
105 } 99 }
106 100
107 } // namespace WebCore 101 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceFilterPrimitive.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698