RESOLVED FIXED 103376
[V8] add contextForWorld helper function to ScriptController
https://bugs.webkit.org/show_bug.cgi?id=103376
Summary [V8] add contextForWorld helper function to ScriptController
Dan Carney
Reported 2012-11-27 01:09:18 PST
[V8] add contextForWorld helper function to ScriptController
Attachments
Patch (3.34 KB, patch)
2012-11-27 01:10 PST, Dan Carney
no flags
Patch (3.18 KB, patch)
2012-11-27 01:50 PST, Dan Carney
no flags
Dan Carney
Comment 1 2012-11-27 01:10:42 PST
Kentaro Hara
Comment 2 2012-11-27 01:16:53 PST
Comment on attachment 176195 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176195&action=review > Source/WebCore/bindings/v8/ScriptController.cpp:437 > +inline v8::Local<v8::Context> ScriptController::contextForWorld(DOMWrapperWorld* world) This could be in a header file. Maybe you couldn't write it in a header file due to some #include dependency problem ?
Dan Carney
Comment 3 2012-11-27 01:31:46 PST
(In reply to comment #2) > (From update of attachment 176195 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=176195&action=review > > > Source/WebCore/bindings/v8/ScriptController.cpp:437 > > +inline v8::Local<v8::Context> ScriptController::contextForWorld(DOMWrapperWorld* world) > > This could be in a header file. Maybe you couldn't write it in a header file due to some #include dependency problem ? I will move it to the header, i just wanted all the uses of the function in the same spot as the function.
Kentaro Hara
Comment 4 2012-11-27 01:32:50 PST
ok, if performance is not critical, it would make sense to put it in a cpp file as a static function.
Dan Carney
Comment 5 2012-11-27 01:50:23 PST
Dan Carney
Comment 6 2012-11-27 01:50:55 PST
Comment on attachment 176201 [details] Patch static inline version
WebKit Review Bot
Comment 7 2012-11-27 02:28:52 PST
Comment on attachment 176201 [details] Patch Rejecting attachment 176201 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1 /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://queues.webkit.org/results/15016026
WebKit Review Bot
Comment 8 2012-11-27 03:53:37 PST
Comment on attachment 176201 [details] Patch Clearing flags on attachment: 176201 Committed r135846: <http://trac.webkit.org/changeset/135846>
WebKit Review Bot
Comment 9 2012-11-27 03:53:41 PST
All reviewed patches have been landed. Closing bug.
Adam Barth
Comment 10 2012-11-27 09:22:33 PST
Comment on attachment 176201 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176201&action=review > Source/WebCore/bindings/v8/ScriptController.cpp:437 > +static inline v8::Local<v8::Context> contextForWorld(ScriptController* scriptController, DOMWrapperWorld* world) Minor style nit: We usually put functions like this at the top of the file, just after the namespace WebCore. Also, my understanding is that static and inline are redundant here.
Note You need to log in before you can comment on or make changes to this bug.