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

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

Issue 622393002: Introduce new entry-points for non-paint-server RenderSVGResources (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // failures in the SVG image cache for example). To avoid having our Pattern Data deleted by 110 // failures in the SVG image cache for example). To avoid having our Pattern Data deleted by
111 // removeAllClientsFromCache(), we only make it visible in the cache at the very end. 111 // removeAllClientsFromCache(), we only make it visible in the cache at the very end.
112 return m_patternMap.set(object, patternData.release()).storedValue->value.ge t(); 112 return m_patternMap.set(object, patternData.release()).storedValue->value.ge t();
113 } 113 }
114 114
115 bool RenderSVGResourcePattern::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode) 115 bool RenderSVGResourcePattern::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode)
116 { 116 {
117 ASSERT(object); 117 ASSERT(object);
118 ASSERT(style); 118 ASSERT(style);
119 ASSERT(context); 119 ASSERT(context);
120 ASSERT(resourceMode != ApplyToDefaultMode);
121 120
122 clearInvalidationMask(); 121 clearInvalidationMask();
123 122
124 SVGPatternElement* patternElement = toSVGPatternElement(element()); 123 SVGPatternElement* patternElement = toSVGPatternElement(element());
125 if (!patternElement) 124 if (!patternElement)
126 return false; 125 return false;
127 126
128 if (m_shouldCollectPatternAttributes) { 127 if (m_shouldCollectPatternAttributes) {
129 patternElement->synchronizeAnimatedSVGAttribute(anyQName()); 128 patternElement->synchronizeAnimatedSVGAttribute(anyQName());
130 129
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 continue; 247 continue;
249 if (element->renderer()->needsLayout()) 248 if (element->renderer()->needsLayout())
250 return nullptr; 249 return nullptr;
251 SVGRenderingContext::renderSubtree(tileImage->context(), element->render er(), contentTransformation); 250 SVGRenderingContext::renderSubtree(tileImage->context(), element->render er(), contentTransformation);
252 } 251 }
253 252
254 return tileImage.release(); 253 return tileImage.release();
255 } 254 }
256 255
257 } 256 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceMasker.cpp ('k') | Source/core/rendering/svg/RenderSVGResourceSolidColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698