Fix up chromium API for creating events, initializing message events
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Nov 2011 21:14:18 +0000 (21:14 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Nov 2011 21:14:18 +0000 (21:14 +0000)
commit7cfaeefd32f8fdedca0a2e5b881fe8185e1f347f
tree97375c0cbf091ca0834e86445bc1be573238ba8b
parent83a3677d852a7385ae8a52e9fb5af37ae428785a
Fix up chromium API for creating events, initializing message events
https://bugs.webkit.org/show_bug.cgi?id=71478

- Fix a mistake when checking the exception code during event creation.
- Change WebFrame parameter to pointer so that NULL may be passed.

This is required for the following chromium CL: http://codereview.chromium.org/8437093/

Tested in Chromium by:
 ui_test --gtest_filter=*PPAPITest.PostMessage*

Patch by Dave Michael <dmichael@chromium.org> on 2011-11-16
Reviewed by Darin Fisher.

* public/WebDOMMessageEvent.h:
* src/WebDOMMessageEvent.cpp:
(WebKit::WebDOMMessageEvent::initMessageEvent):
* src/WebDocument.cpp:
(WebKit::WebDocument::createEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebDOMMessageEvent.h
Source/WebKit/chromium/src/WebDOMMessageEvent.cpp
Source/WebKit/chromium/src/WebDocument.cpp