| Index: third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| index 99f083eae214dccc6296751d4afa06fb065655c7..41784f57f801f07cb0544398f7c727e2fec8eaab 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGImageElement.cpp
|
| @@ -195,6 +195,14 @@ Node::InsertionNotificationRequest SVGImageElement::insertedInto(
|
| return InsertionDone;
|
| }
|
|
|
| +FloatSize SVGImageElement::sourceDefaultObjectSize() {
|
| + if (layoutObject())
|
| + return toLayoutSVGImage(layoutObject())->objectBoundingBox().size();
|
| + SVGLengthContext lengthContext(this);
|
| + return FloatSize(m_width->currentValue()->value(lengthContext),
|
| + m_height->currentValue()->value(lengthContext));
|
| +}
|
| +
|
| const AtomicString SVGImageElement::imageSourceURL() const {
|
| return AtomicString(hrefString());
|
| }
|
|
|