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

Unified Diff: Source/core/html/HTMLImageElement.cpp

Issue 14449003: Picture element initial implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@picture_after_rebase
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLImageElement.h ('k') | Source/core/html/HTMLPictureElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/html/HTMLImageElement.h ('k') | Source/core/html/HTMLPictureElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698