Bug 45147 - [Qt] V8 port for QT platform: Plugin changes
Summary: [Qt] V8 port for QT platform: Plugin changes
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: QtWebKit Unassigned
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks: 45136
  Show dependency treegraph
 
Reported: 2010-09-02 16:09 PDT by Vlad
Modified: 2010-09-06 11:47 PDT (History)
3 users (show)

See Also:


Attachments
Plugin changes (10.16 KB, text/plain)
2010-09-02 17:39 PDT, Vlad
no flags Details
Plugin changes (11.09 KB, patch)
2010-09-02 19:18 PDT, Vlad
kling: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad 2010-09-02 16:09:25 PDT
Get rid of JSC::JSLock. Use coomon types definitions for V8 and JSC from scriptcontroller. Implemented PassScriptInstance PluginView::bindingInstance() for V8.
Comment 1 Vlad 2010-09-02 17:39:40 PDT
Created attachment 66441 [details]
Plugin changes
Comment 2 Vlad 2010-09-02 19:18:59 PDT
Created attachment 66454 [details]
Plugin changes

Get rid of JSC::JSLock. Use coomon types definitions for V8 and JSC from scriptcontroller. Implemented PassScriptInstance pluginView::bindingInstance() for V8.
Comment 3 Vlad 2010-09-03 18:04:23 PDT
Changes moved to https://bugs.webkit.org/show_bug.cgi?id=45145 b/c of dependencies
Comment 4 Andreas Kling 2010-09-05 17:44:18 PDT
Comment on attachment 66454 [details]
Plugin changes

> +#if PLATFORM(QT)
> +    #undef True
> +    #undef False

Why is this needed? There's no reference to it in the ChangeLog.

>  #if USE(JSC)
>          ScriptState* scriptState = parentFrame->script()->globalObject(pluginWorld())->globalExec();
> -#elif USE(V8)
> +#else
>          ScriptState* scriptState = 0; // Not used with V8
>  #endif

This part should be left alone.

> +// definition fits V8 and JSC

Unnecessary comment.
More importantly though, bindingInstance() will now be compiled but never used for Chromium. We should be nice and use an "#if USE(JSC) || (USE(V8) && !PLATFORM(CHROMIUM))" guard.

> +#else
> +#include "V8NPObject.h"
> +#endif

Should be "#elif USE(V8)".

r- because of the bindingInstance() on Chromium thing.
Comment 5 Andreas Kling 2010-09-05 17:47:59 PDT
(In reply to comment #4)
> (From update of attachment 66454 [details])
...

Oops, looks like I just reviewed an obsolete patch! In the future please remove the "review?" flag from patches that are no longer relevant, to prevent them from showing up in the review queue. :-)
Comment 6 Kenneth Rohde Christiansen 2010-09-06 11:47:50 PDT
Also please use 'Qt' and not 'QT' when you do Qt related patches as QT means QuickTime and that is used in the WebKit project as well.