2010-07-08 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2010 22:35:15 +0000 (22:35 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Jul 2010 22:35:15 +0000 (22:35 +0000)
commitc028eec280fe92147c9ae686f2c780694db4e49a
treebda816e5d195bd740609d37b9a7648a4d6035961
parent9271840583eacebeb4ce6c61c4e8ad50c2e928cc
2010-07-08  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Allow the TestPlugin to use Core Animation rendering for testing
        https://bugs.webkit.org/show_bug.cgi?id=41872

        Add the ability for the TestPlugin to use the CoreAnimation rendering model
        when available, based on the "drawingmodel" attribute of the embed tag:
            drawingmodel="coreanimation"

        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Add PluginObjectMac.mm
        * DumpRenderTree/TestNetscapePlugIn/PluginObject.h: Add some macros so we can detect
        when building on Tiger. Add a void* coreAnimationLayer member.

        * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: Added.
        (createCoreAnimationLayer): Obj-C method to create the CALayer.

        * DumpRenderTree/TestNetscapePlugIn/main.cpp:
        (NPP_New): Look for the drawingmodel attribute to decide which drawing
        model to use.
        (NPP_Destroy): Release the CALayer if we have one.
        (NPP_GetValue): Return the retained CALayer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@62857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/compositing/plugins/composited-plugin.html [new file with mode: 0644]
LayoutTests/platform/mac/compositing/plugins/composited-plugin-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/compositing/plugins/composited-plugin-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/compositing/plugins/composited-plugin-expected.txt [new file with mode: 0644]
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObject.h
WebKitTools/DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm [new file with mode: 0644]
WebKitTools/DumpRenderTree/TestNetscapePlugIn/main.cpp