[Webkit-unassigned] [Bug 153745] [GTK] Reduce IPC traffic due to view state changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 3 02:20:25 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153745

--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #3)
> Comment on attachment 270390 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=270390&action=review
> 
> Nice patch, although I think it doesn't really work as is (see my comment
> about the mask)

Thanks for the review!

> > Source/WebKit2/ChangeLog:27
> > +        WebPageProxy::viewStateDidChange() and resret the flags that need
> 
> resret -> reset

Oops.

> > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:316
> > +        g_signal_connect(priv->toplevelOnScreenWindow, "window-state-event", G_CALLBACK(toplevelWindowStateEvent), webViewBase);
> 
> According to the docs you should enable GDK_STRUCTURE_MASK something that
> you are not doing. You should also remove the GDK_VISIBILITY_NOTIFY_MASK.

But then it says "GDK will enable this mask automatically for all new windows." Also note that this is not a signal of the web view, but the toplevel window, and GtkWindos adds the GDK_STRUCTURE_MASK unconditionally in realize method.

> > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:1385
> > +    unsigned flagsToUpdate = ViewState::IsFocused;
> 
> We could use ViewState::Flags here for consistency with the rest of the code
> (even though it's an unsigned anyway).

OK.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160203/77cd688b/attachment.html>


More information about the webkit-unassigned mailing list