Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
| diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
| index 25baa498a4e77f62148abf6594c18cb95eb9871e..5adb52b9e27d3ad715450455ddeb87d6fb91cf44 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
| +++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp |
| @@ -399,8 +399,11 @@ void HTMLImageElement::removedFrom(ContainerNode* insertionPoint) |
| { |
| if (!m_form || NodeTraversal::highestAncestorOrSelf(*m_form.get()) != NodeTraversal::highestAncestorOrSelf(*this)) |
| resetFormOwner(); |
| - if (m_listener) |
| + if (m_listener) { |
| document().mediaQueryMatcher().removeViewportListener(m_listener); |
| + if (m_source) |
| + m_source->notifyImgSiblingRemoved(); |
|
cbiesinger
2016/08/17 19:32:05
What about the <source> elements that were not cho
Yoav Weiss
2016/08/30 07:37:07
Good call. I'll add that.
|
| + } |
| HTMLElement::removedFrom(insertionPoint); |
| } |