Index: Source/core/html/HTMLImageElement.cpp |
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp |
index d1b5f9807e5c1b5c07d71db5e1b7ba4cf11dc9cf..6d0564b99672dcb779dea6a1833b12e9fd9fcbf0 100644 |
--- a/Source/core/html/HTMLImageElement.cpp |
+++ b/Source/core/html/HTMLImageElement.cpp |
@@ -48,7 +48,11 @@ HTMLImageElement::HTMLImageElement(const QualifiedName& tagName, Document* docum |
, m_form(form) |
, m_compositeOperator(CompositeSourceOver) |
{ |
- ASSERT(hasTagName(imgTag)); |
+ ASSERT((hasTagName(imgTag)) |
+#if ENABLE(PICTURE) |
+ || (hasTagName(pictureTag)) |
+#endif |
+ ); |
ScriptWrappable::init(this); |
if (form) |
form->registerImgElement(this); |
@@ -198,6 +202,10 @@ Node::InsertionNotificationRequest HTMLImageElement::insertedInto(ContainerNode* |
return HTMLElement::insertedInto(insertionPoint); |
} |
+void HTMLImageElement::updateResources() |
+{ |
+ m_imageLoader.updateFromElement(); |
+} |
void HTMLImageElement::removedFrom(ContainerNode* insertionPoint) |
{ |
if (m_form) |