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

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

Issue 396283004: Make the MediaQueryList listener an EventListener (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: argh, forgot a --reset-results Created 6 years, 5 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
Index: Source/core/html/HTMLSourceElement.cpp
diff --git a/Source/core/html/HTMLSourceElement.cpp b/Source/core/html/HTMLSourceElement.cpp
index 1f86dfeb6fe80079fabcfbe40d64b597252b5424..ad3d7a766748d5a4be2f13bdb9a37a66db8760b3 100644
--- a/Source/core/html/HTMLSourceElement.cpp
+++ b/Source/core/html/HTMLSourceElement.cpp
@@ -159,10 +159,10 @@ void HTMLSourceElement::parseAttribute(const QualifiedName& name, const AtomicSt
HTMLElement::parseAttribute(name, value);
if (name == mediaAttr) {
if (m_mediaQueryList)
- m_mediaQueryList->removeListener(m_listener);
+ m_mediaQueryList->removeMediaQueryListListener(m_listener);
RefPtrWillBeRawPtr<MediaQuerySet> set = MediaQuerySet::create(value);
- m_mediaQueryList = MediaQueryList::create(&document().mediaQueryMatcher(), set.release());
- m_mediaQueryList->addListener(m_listener);
+ m_mediaQueryList = MediaQueryList::create(&document().mediaQueryMatcher(), set.release(), &document());
+ m_mediaQueryList->addMediaQueryListListener(m_listener);
}
if (name == srcsetAttr || name == sizesAttr || name == mediaAttr || name == typeAttr) {
Element* parent = parentElement();
« Source/core/css/MediaQueryList.idl ('K') | « Source/core/events/EventTargetFactory.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698