| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 visitor->trace(m_width); | 57 visitor->trace(m_width); |
| 58 visitor->trace(m_height); | 58 visitor->trace(m_height); |
| 59 visitor->trace(m_preserveAspectRatio); | 59 visitor->trace(m_preserveAspectRatio); |
| 60 visitor->trace(m_imageLoader); | 60 visitor->trace(m_imageLoader); |
| 61 SVGGraphicsElement::trace(visitor); | 61 SVGGraphicsElement::trace(visitor); |
| 62 SVGURIReference::trace(visitor); | 62 SVGURIReference::trace(visitor); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const | 65 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const |
| 66 { | 66 { |
| 67 if (LayoutSVGImage* renderSVGImage = toLayoutSVGImage(layoutObject())) { | 67 if (LayoutSVGImage* layoutSVGImage = toLayoutSVGImage(layoutObject())) { |
| 68 if (renderSVGImage->imageResource()->hasImage()) { | 68 if (layoutSVGImage->imageResource()->hasImage()) { |
| 69 if (Image* image = renderSVGImage->imageResource()->cachedImage()->i
mage()) | 69 if (Image* image = layoutSVGImage->imageResource()->cachedImage()->i
mage()) |
| 70 return image->currentFrameHasSingleSecurityOrigin(); | 70 return image->currentFrameHasSingleSecurityOrigin(); |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 | 73 |
| 74 return true; | 74 return true; |
| 75 } | 75 } |
| 76 | 76 |
| 77 bool SVGImageElement::isPresentationAttribute(const QualifiedName& attrName) con
st | 77 bool SVGImageElement::isPresentationAttribute(const QualifiedName& attrName) con
st |
| 78 { | 78 { |
| 79 if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr | 79 if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 return AtomicString(hrefString()); | 203 return AtomicString(hrefString()); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) | 206 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) |
| 207 { | 207 { |
| 208 imageLoader().elementDidMoveToNewDocument(); | 208 imageLoader().elementDidMoveToNewDocument(); |
| 209 SVGGraphicsElement::didMoveToNewDocument(oldDocument); | 209 SVGGraphicsElement::didMoveToNewDocument(oldDocument); |
| 210 } | 210 } |
| 211 | 211 |
| 212 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |