-
weinig@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=119664 Reviewed by Andreas Kling. Source/WebCore: Make MediaQueryListListener a proper WebIDL callback. * CMakeLists.txt: * DerivedSources.cpp: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.vcxproj/WebCore.vcxproj: * WebCore.vcxproj/WebCore.vcxproj.filters: * WebCore.xcodeproj/project.pbxproj: Update project files. * bindings/scripts/CodeGeneratorJS.pm: (GenerateCallbackHeader): (GenerateCallbackImplementation): (JSValueToNative): * bindings/scripts/IDLAttributes.txt: Add support for CallbackNeedsOperatorEqual, which adds an operator==. * css/MediaAllInOne.cpp: Remove MediaQueryListListener.cpp. * css/MediaQueryListListener.cpp: Removed. * css/MediaQueryListListener.h: (WebCore::MediaQueryListListener::~MediaQueryListListener): (WebCore::MediaQueryListListener::MediaQueryListListener): * css/MediaQueryListListener.idl: Convert to a proper WebIDL callback. * css/MediaQueryMatcher.cpp: (WebCore::MediaQueryMatcher::Listener::evaluate): (WebCore::MediaQueryMatcher::styleResolverChanged): * css/MediaQueryMatcher.h: Remove all traces of the ScriptState. LayoutTests: * fast/media/media-query-list-07-expected.txt: * fast/media/media-query-list-07.html: * platform/mac/TestExpectations: Update test to reflect that we are supposed to throw exceptions when when not passing a callback object to addListener/removeListener. Also update the test to use the internals interface that is supported by more ports. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f571f791