-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=93127 Patch by Nasko Oskov <nasko@chromium.org> on 2012-08-06 Reviewed by Adam Barth. Add support in the API to monitor and create frame hierarchy to allow replicating it across different instances of WebKit. * public/WebDocument.h: (WebDocument): Added createElement. * public/WebFrame.h: Added assignedName. * public/WebFrameClient.h: (WebFrameClient): (WebKit::WebFrameClient::didCreateFrame): Added to allow embedders to know when frames are created. (WebKit::WebFrameClient::willCheckAndDispatchMessageEvent): Added the target frame as a parameter. * public/WebNode.h: * src/FrameLoaderClientImpl.cpp: (WebKit::FrameLoaderClientImpl::willCheckAndDispatchMessageEvent): * src/WebDocument.cpp: (WebKit::WebDocument::createElement): Added to allow for creating frame elements. (WebKit): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::uniqueName): Added to migrate callers to the matching WebCore API. (WebKit): (WebKit::WebFrameImpl::assignedName): Returns the name given to a frame, as opposed to the unique name, generated by WebKit. (WebKit::WebFrameImpl::createChildFrame): Added call to the frame client's didCreateFrame. * src/WebFrameImpl.h: (WebFrameImpl): * src/WebNode.cpp: (WebKit::WebNode::appendChild): Added to allow for adding elements to the DOM. (WebKit): * tests/WebFrameTest.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
358d5c87