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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGImageElement.cpp

Issue 2802813002: Adds SVGImageElement as a ImageBitmapSource (Closed)
Patch Set: tests Created 3 years, 8 months 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
OLDNEW
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 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 #include "core/svg/SVGImageElement.h" 22 #include "core/svg/SVGImageElement.h"
23 23
24 #include "core/CSSPropertyNames.h" 24 #include "core/CSSPropertyNames.h"
25 #include "core/dom/StyleChangeReason.h" 25 #include "core/dom/StyleChangeReason.h"
26 #include "core/frame/ImageBitmap.h"
fs 2017/04/06 20:27:54 No longer needed these two?
fserb 2017/04/06 21:03:49 done.
27 #include "core/frame/LocalDOMWindow.h"
26 #include "core/layout/LayoutImageResource.h" 28 #include "core/layout/LayoutImageResource.h"
27 #include "core/layout/svg/LayoutSVGImage.h" 29 #include "core/layout/svg/LayoutSVGImage.h"
28 30
29 namespace blink { 31 namespace blink {
30 32
31 inline SVGImageElement::SVGImageElement(Document& document) 33 inline SVGImageElement::SVGImageElement(Document& document)
32 : SVGGraphicsElement(SVGNames::imageTag, document), 34 : SVGGraphicsElement(SVGNames::imageTag, document),
33 SVGURIReference(this), 35 SVGURIReference(this),
34 m_x(SVGAnimatedLength::create(this, 36 m_x(SVGAnimatedLength::create(this,
35 SVGNames::xAttr, 37 SVGNames::xAttr,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const AtomicString SVGImageElement::imageSourceURL() const { 208 const AtomicString SVGImageElement::imageSourceURL() const {
207 return AtomicString(hrefString()); 209 return AtomicString(hrefString());
208 } 210 }
209 211
210 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) { 212 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) {
211 imageLoader().elementDidMoveToNewDocument(); 213 imageLoader().elementDidMoveToNewDocument();
212 SVGGraphicsElement::didMoveToNewDocument(oldDocument); 214 SVGGraphicsElement::didMoveToNewDocument(oldDocument);
213 } 215 }
214 216
215 } // namespace blink 217 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698