Doing WebKitCSSMatrix.prototype returns undefined. This works for all the other native JS classes.
WebKitCSSMatrix and WebKitPoint need to be added to the list of global constructors in DOMWindow.idl.
Created attachment 28209 [details] Patch with test
Comment on attachment 28209 [details] Patch with test > +++ WebCore/bindings/js/JSImageConstructor.cpp (working copy) > @@ -21,6 +21,7 @@ > #include "JSImageConstructor.h" > > #include "HTMLImageElement.h" > +#include "JSHTMLImageElement.h" > #include "HTMLNames.h" > #include "JSNode.h" > #include "ScriptExecutionContext.h" These should be sorted. r=me
Sending LayoutTests/ChangeLog Adding LayoutTests/fast/dom/Window/custom-constructors-expected.txt Adding LayoutTests/fast/dom/Window/custom-constructors.html Sending LayoutTests/fast/dom/Window/window-properties-expected.txt Sending WebCore/ChangeLog Sending WebCore/bindings/js/JSAudioConstructor.cpp Sending WebCore/bindings/js/JSDOMWindowBase.cpp Sending WebCore/bindings/js/JSImageConstructor.cpp Sending WebCore/bindings/js/JSOptionConstructor.cpp Sending WebCore/bindings/js/JSWebKitCSSMatrixConstructor.cpp Sending WebCore/bindings/js/JSWebKitCSSMatrixConstructor.h Sending WebCore/bindings/js/JSWebKitPointConstructor.cpp Sending WebCore/bindings/js/JSWorkerConstructor.cpp Transmitting file data ............. Committed revision 41396.