| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |