-
mitz@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=106033 Source/WebCore: Reviewed by Sam Weinig. Test: TestWebKitAPI/Tests/mac/DOMNodeFromJSObject.mm. * bindings/objc/DOM.mm: (+[DOMNode _nodeFromJSWrapper:]): Added. If the given JSObjectRef is a wrapper for a Node, returns the Objective-C wrapper for that node. Note that Objective-C wrappers are always for the main world, regardless of which world the given JS wrapper comes from. * bindings/objc/DOMPrivate.h: Added declaration of the above. Tools: Added a test for +[DOMNode _nodeFromJSWrapper:]. Reviewed by Sam Weinig. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/mac/DOMNodeFromJSObject.mm: Added. (TestWebKitAPI): (TestWebKitAPI::TEST): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
79076e69