[webkit-reviews] review granted: [Bug 73185] [blackberry] Upstream BlackBerry porting of plugin framework : [Attachment 117122] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 30 07:30:03 PST 2011
Antonio Gomes <tonikitoo at webkit.org> has granted Charles Wei
<charles.wei at torchmobile.com.cn>'s request for review:
Bug 73185: [blackberry] Upstream BlackBerry porting of plugin framework
https://bugs.webkit.org/show_bug.cgi?id=73185
Attachment 117122: Patch
https://bugs.webkit.org/attachment.cgi?id=117122&action=review
------- Additional Comments from Antonio Gomes <tonikitoo at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=117122&action=review
there are some nits, but it looks good r+.
Please fix them before landing :)
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:77
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
maybe we could make it a helper static local function: toPluginView (or a
better name)?
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:84
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and use it here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:91
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:98
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:105
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:112
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:119
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:126
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:133
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:140
> + PluginView* view = static_cast<PluginView*>(instance->ndata);
> + PluginViewPrivate* viewPrivate = view->getPrivate();
... and here
> Source/WebCore/plugins/blackberry/NPCallbacksBlackBerry.cpp:156
> +NPSurface lockReadFrontBuffer(NPP instance)
> +{
> +PluginView* view = static_cast<PluginView*>(instance->ndata);
> +PluginViewPrivate* viewPrivate = view->getPrivate();
> +return viewPrivate->lockReadFrontBuffer();
> +}
... and here
ps: identation issue here!
More information about the webkit-reviews
mailing list