Bug 88776 - Fix RequestAnimationFrameCallback.handleEvent return type in IDL.
Summary: Fix RequestAnimationFrameCallback.handleEvent return type in IDL.
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pavel Podivilov
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-06-11 06:15 PDT by Pavel Podivilov
Modified: 2019-08-11 01:29 PDT (History)
16 users (show)

See Also:


Attachments
Patch (1.41 KB, patch)
2012-06-11 06:16 PDT, Pavel Podivilov
no flags Details | Formatted Diff | Diff
Patch (5.63 KB, patch)
2012-06-14 08:48 PDT, Pavel Podivilov
no flags Details | Formatted Diff | Diff
Patch (5.61 KB, patch)
2012-06-14 08:53 PDT, Pavel Podivilov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Podivilov 2012-06-11 06:15:10 PDT
Fix RequestAnimationFrameCallback.handleEvent return type in IDL.
Comment 1 Pavel Podivilov 2012-06-11 06:16:25 PDT
Created attachment 146844 [details]
Patch
Comment 2 Build Bot 2012-06-11 06:44:56 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/12925951
Comment 3 Build Bot 2012-06-11 06:46:02 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12941326
Comment 4 Early Warning System Bot 2012-06-11 06:46:11 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/12939386
Comment 5 WebKit Review Bot 2012-06-11 06:47:07 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12947170
Comment 6 Early Warning System Bot 2012-06-11 06:51:35 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/12946166
Comment 7 Gyuyoung Kim 2012-06-11 07:19:51 PDT
Comment on attachment 146844 [details]
Patch

Attachment 146844 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/12940334
Comment 8 James Robinson 2012-06-11 10:07:49 PDT
Comment on attachment 146844 [details]
Patch

Looks like you have some compilation errors to fix!

I'm not sure what the COMPILE_ASSERT problem is, but you do need to change the c++ bindings code type from bool to void to fix at least some of the errors.
Comment 9 Pavel Podivilov 2012-06-14 08:48:06 PDT
Created attachment 147591 [details]
Patch
Comment 10 Pavel Podivilov 2012-06-14 08:53:55 PDT
Created attachment 147593 [details]
Patch
Comment 11 James Robinson 2012-06-14 09:56:33 PDT
Comment on attachment 147593 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=147593&action=review

> Source/WebCore/ChangeLog:8
> +        C++ callback's handleEvent implementation should always return bool,
> +        since its return type has nothing to do with IDL return type.

why should C++'s handleEvent return bool?
Comment 12 Pavel Podivilov 2012-06-15 11:32:51 PDT
C++ GeneratedCallbackName::handleEvent returns negated result of WebCore::invokeCallback invocation for all callback types: http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm#L3133.

WebCore::invokeCallback returns true iff there was uncaught exception in JS callback:
http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp#L71

RequestAnimationFrameCallback::handleEvent result is ignored as well, see ScriptedAnimationController::serviceScriptedAnimations.  But in any case, it seems unrelated to IDL return type.
Comment 13 Anders Carlsson 2014-02-05 10:57:19 PST
Comment on attachment 147593 [details]
Patch

Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Comment 14 Alexey Proskuryakov 2019-08-10 13:26:11 PDT
It's now:

callback RequestAnimationFrameCallback = void (unrestricted double highResTime);

Updated in https://trac.webkit.org/r208408
Comment 15 Radar WebKit Bug Importer 2019-08-10 13:27:17 PDT
<rdar://problem/54167896>