Skip to content
  • oliver@apple.com's avatar
    2010-02-10 Oliver Hunt <oliver@apple.com> · 22ba59d6
    oliver@apple.com authored
            Reviewed by Gavin Barraclough.
    
            postMessage does not send ImageData
            https://bugs.webkit.org/show_bug.cgi?id=34825
    
            Add test for postMessage passing ImageData
    
            Update a few other tests to cover the fact that ImageData's constructor
            is now available on the window object.
    
            * fast/dom/Window/window-postmessage-clone-expected.txt:
            * fast/dom/Window/window-postmessage-clone.html:
            * fast/dom/Window/window-properties-expected.txt:
            * fast/dom/Window/window-property-descriptors-expected.txt:
            * fast/dom/prototype-inheritance-2-expected.txt:
            * fast/dom/prototype-inheritance-expected.txt:
            * fast/js/global-constructors-expected.txt:
    2010-02-10  Oliver Hunt  <oliver@apple.com>
    
            Reviewed by Gavin Barraclough.
    
            postMessage does not send ImageData
            https://bugs.webkit.org/show_bug.cgi?id=34825
    
            Implement serialisation of ImageData, and for testing reasons
            expose the ImageData constructor (which should already have
            been exposed).
    
            * bindings/js/SerializedScriptValue.cpp:
            (WebCore::SerializedImageData::create):
            (WebCore::SerializedImageData::width):
            (WebCore::SerializedImageData::height):
            (WebCore::SerializedImageData::data):
            (WebCore::SerializedImageData::SerializedImageData):
            (WebCore::SerializedScriptValueData::SerializedScriptValueData):
            (WebCore::SharedSerializedData::asImageData):
            (WebCore::SerializingTreeWalker::convertIfTerminal):
            (WebCore::DeserializingTreeWalker::convertIfTerminal):
            (WebCore::TeardownTreeWalker::convertIfTerminal):
            * bindings/js/SerializedScriptValue.h:
            (WebCore::SerializedScriptValueData::):
            (WebCore::SerializedScriptValueData::asImageData):
            * html/canvas/CanvasPixelArray.h:
            (WebCore::CanvasPixelArray::data):
            * page/DOMWindow.idl:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    22ba59d6