OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 bool SVGImageElement::selfHasRelativeLengths() const | 182 bool SVGImageElement::selfHasRelativeLengths() const |
183 { | 183 { |
184 return x().isRelative() | 184 return x().isRelative() |
185 || y().isRelative() | 185 || y().isRelative() |
186 || width().isRelative() | 186 || width().isRelative() |
187 || height().isRelative(); | 187 || height().isRelative(); |
188 } | 188 } |
189 | 189 |
190 RenderObject* SVGImageElement::createRenderer(RenderArena* arena, RenderStyle*) | 190 RenderObject* SVGImageElement::createRenderer(RenderStyle*) |
191 { | 191 { |
192 return new (arena) RenderSVGImage(this); | 192 return new RenderSVGImage(this); |
193 } | 193 } |
194 | 194 |
195 bool SVGImageElement::haveLoadedRequiredResources() | 195 bool SVGImageElement::haveLoadedRequiredResources() |
196 { | 196 { |
197 return !externalResourcesRequiredBaseValue() || !m_imageLoader.hasPendingAct
ivity(); | 197 return !externalResourcesRequiredBaseValue() || !m_imageLoader.hasPendingAct
ivity(); |
198 } | 198 } |
199 | 199 |
200 void SVGImageElement::attach(const AttachContext& context) | 200 void SVGImageElement::attach(const AttachContext& context) |
201 { | 201 { |
202 SVGStyledTransformableElement::attach(context); | 202 SVGStyledTransformableElement::attach(context); |
(...skipping 29 matching lines...) Expand all Loading... |
232 addSubresourceURL(urls, document()->completeURL(href())); | 232 addSubresourceURL(urls, document()->completeURL(href())); |
233 } | 233 } |
234 | 234 |
235 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) | 235 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) |
236 { | 236 { |
237 m_imageLoader.elementDidMoveToNewDocument(); | 237 m_imageLoader.elementDidMoveToNewDocument(); |
238 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); | 238 SVGStyledTransformableElement::didMoveToNewDocument(oldDocument); |
239 } | 239 } |
240 | 240 |
241 } | 241 } |
OLD | NEW |