Chromium Code Reviews| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 // A previous loader update may have failed to actually fetch the image if | 188 // A previous loader update may have failed to actually fetch the image if |
| 189 // the document was inactive. In that case, force a re-update (but don't | 189 // the document was inactive. In that case, force a re-update (but don't |
| 190 // clear previous errors). | 190 // clear previous errors). |
| 191 if (!imageLoader().image()) | 191 if (!imageLoader().image()) |
| 192 imageLoader().updateFromElement(); | 192 imageLoader().updateFromElement(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 return InsertionDone; | 195 return InsertionDone; |
| 196 } | 196 } |
| 197 | 197 |
| 198 FloatSize SVGImageElement::sourceDefaultSize() { | |
| 199 return FloatSize(0, 0); | |
|
fs
2017/03/07 22:01:25
To be somewhat equivalent with the HTMLImageElemen
fserb
2017/03/08 18:31:59
Thanks for the code snippet, I'll implement it lik
fs
2017/03/08 18:57:16
Ok (ImageBitmapSource though, right?). Codesearch
fserb
2017/03/21 19:15:22
yep. Only for shapedetection, (which I assumed is
fs
2017/03/21 21:05:41
Acknowledged.
| |
| 200 } | |
| 201 | |
| 198 const AtomicString SVGImageElement::imageSourceURL() const { | 202 const AtomicString SVGImageElement::imageSourceURL() const { |
| 199 return AtomicString(hrefString()); | 203 return AtomicString(hrefString()); |
| 200 } | 204 } |
| 201 | 205 |
| 202 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) { | 206 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) { |
| 203 imageLoader().elementDidMoveToNewDocument(); | 207 imageLoader().elementDidMoveToNewDocument(); |
| 204 SVGGraphicsElement::didMoveToNewDocument(oldDocument); | 208 SVGGraphicsElement::didMoveToNewDocument(oldDocument); |
| 205 } | 209 } |
| 206 | 210 |
| 207 } // namespace blink | 211 } // namespace blink |
| OLD | NEW |