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