[webkit-reviews] review granted: [Bug 47993] Out of process plug-ins are never asked to initially paint : [Attachment 71311] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 20 11:34:56 PDT 2010


Darin Adler <darin at apple.com> has granted Anders Carlsson
<andersca at apple.com>'s request for review:
Bug 47993: Out of process plug-ins are never asked to initially paint
https://bugs.webkit.org/show_bug.cgi?id=47993

Attachment 71311: Patch
https://bugs.webkit.org/attachment.cgi?id=71311&action=review

------- Additional Comments from Darin Adler <darin at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=71311&action=review

> WebKit2/PluginProcess/PluginControllerProxy.cpp:299
> +    m_paintTimer.stop();
> +
> +    paint();

I could imagine putting the call to m_paintTimer.stop() inside paint(). At the
moment, it’s OK to leave it outside like this. I think the blank line before
paint doesn’t make much sense. I suggest grouping it all in one paragraph.

> WebKit2/WebProcess/Plugins/PluginProxy.cpp:120
> +	  
m_connection->connection()->sendSync(Messages::PluginControllerProxy::PaintEnti
rePlugin(), 
> +					       
Messages::PluginControllerProxy::PaintEntirePlugin::Reply(),
> +						m_pluginInstanceID,
CoreIPC::Connection::NoTimeout);

I suggest not lining up subsequent lines with the opening parenthesis. It’s not
easy to maintain when renaming things in the future, and also makes things take
more lines than they otherwise would.


More information about the webkit-reviews mailing list