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

Side by Side Diff: Source/core/svg/SVGFEImageElement.cpp

Issue 68643007: Remove QualifiedName argument from SVGElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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
« no previous file with comments | « Source/core/svg/SVGFEImageElement.h ('k') | Source/core/svg/SVGFEMergeElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2010 Dirk Schulze <krit@webkit.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 30 matching lines...) Expand all
41 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href) 41 DEFINE_ANIMATED_STRING(SVGFEImageElement, XLinkNames::hrefAttr, Href, href)
42 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt tr, ExternalResourcesRequired, externalResourcesRequired) 42 DEFINE_ANIMATED_BOOLEAN(SVGFEImageElement, SVGNames::externalResourcesRequiredAt tr, ExternalResourcesRequired, externalResourcesRequired)
43 43
44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement) 44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEImageElement)
45 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio) 45 REGISTER_LOCAL_ANIMATED_PROPERTY(preserveAspectRatio)
46 REGISTER_LOCAL_ANIMATED_PROPERTY(href) 46 REGISTER_LOCAL_ANIMATED_PROPERTY(href)
47 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 47 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) 48 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes)
49 END_REGISTER_ANIMATED_PROPERTIES 49 END_REGISTER_ANIMATED_PROPERTIES
50 50
51 inline SVGFEImageElement::SVGFEImageElement(const QualifiedName& tagName, Docume nt& document) 51 inline SVGFEImageElement::SVGFEImageElement(Document& document)
52 : SVGFilterPrimitiveStandardAttributes(tagName, document) 52 : SVGFilterPrimitiveStandardAttributes(SVGNames::feImageTag, document)
53 { 53 {
54 ASSERT(hasTagName(SVGNames::feImageTag));
55 ScriptWrappable::init(this); 54 ScriptWrappable::init(this);
56 registerAnimatedPropertiesForSVGFEImageElement(); 55 registerAnimatedPropertiesForSVGFEImageElement();
57 } 56 }
58 57
59 PassRefPtr<SVGFEImageElement> SVGFEImageElement::create(const QualifiedName& tag Name, Document& document) 58 PassRefPtr<SVGFEImageElement> SVGFEImageElement::create(Document& document)
60 { 59 {
61 return adoptRef(new SVGFEImageElement(tagName, document)); 60 return adoptRef(new SVGFEImageElement(document));
62 } 61 }
63 62
64 SVGFEImageElement::~SVGFEImageElement() 63 SVGFEImageElement::~SVGFEImageElement()
65 { 64 {
66 clearResourceReferences(); 65 clearResourceReferences();
67 } 66 }
68 67
69 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const 68 bool SVGFEImageElement::currentFrameHasSingleSecurityOrigin() const
70 { 69 {
71 if (m_cachedImage && m_cachedImage->image()) 70 if (m_cachedImage && m_cachedImage->image())
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 211 }
213 212
214 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st 213 void SVGFEImageElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st
215 { 214 {
216 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls); 215 SVGFilterPrimitiveStandardAttributes::addSubresourceAttributeURLs(urls);
217 216
218 addSubresourceURL(urls, document().completeURL(hrefCurrentValue())); 217 addSubresourceURL(urls, document().completeURL(hrefCurrentValue()));
219 } 218 }
220 219
221 } 220 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEImageElement.h ('k') | Source/core/svg/SVGFEMergeElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698