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

Side by Side Diff: Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp

Issue 13616008: Remove CG codepaths from SVG (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (!node->isSVGElement() || !toSVGElement(node)->isSVGStyledElement() | | !renderer) 140 if (!node->isSVGElement() || !toSVGElement(node)->isSVGStyledElement() | | !renderer)
141 continue; 141 continue;
142 if (renderer->needsLayout()) 142 if (renderer->needsLayout())
143 return false; 143 return false;
144 RenderStyle* style = renderer->style(); 144 RenderStyle* style = renderer->style();
145 if (!style || style->display() == NONE || style->visibility() != VISIBLE ) 145 if (!style || style->display() == NONE || style->visibility() != VISIBLE )
146 continue; 146 continue;
147 SVGRenderingContext::renderSubtreeToImageBuffer(maskerData->maskImage.ge t(), renderer, maskContentTransformation); 147 SVGRenderingContext::renderSubtreeToImageBuffer(maskerData->maskImage.ge t(), renderer, maskContentTransformation);
148 } 148 }
149 149
150 #if !USE(CG)
151 maskerData->maskImage->transformColorSpace(ColorSpaceDeviceRGB, colorSpace); 150 maskerData->maskImage->transformColorSpace(ColorSpaceDeviceRGB, colorSpace);
152 #else
153 UNUSED_PARAM(colorSpace);
154 #endif
155 151
156 ASSERT(style()); 152 ASSERT(style());
157 ASSERT(style()->svgStyle()); 153 ASSERT(style()->svgStyle());
158 // Create the luminance mask. 154 // Create the luminance mask.
159 if (style()->svgStyle()->maskType() == MT_LUMINANCE) 155 if (style()->svgStyle()->maskType() == MT_LUMINANCE)
160 maskerData->maskImage->convertToLuminanceMask(); 156 maskerData->maskImage->convertToLuminanceMask();
161 157
162 return true; 158 return true;
163 } 159 }
164 160
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 maskRect = transform.mapRect(maskRect); 194 maskRect = transform.mapRect(maskRect);
199 } 195 }
200 196
201 maskRect.intersect(maskBoundaries); 197 maskRect.intersect(maskBoundaries);
202 return maskRect; 198 return maskRect;
203 } 199 }
204 200
205 } 201 }
206 202
207 #endif // ENABLE(SVG) 203 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGResourceGradient.cpp ('k') | Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698