WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133871
[GTK] Guard uses of RedirectedXCompositeWindow in WebKitWebViewBase with PLATFORM(X11)
https://bugs.webkit.org/show_bug.cgi?id=133871
Summary
[GTK] Guard uses of RedirectedXCompositeWindow in WebKitWebViewBase with PLAT...
Zan Dobersek
Reported
2014-06-13 11:38:05 PDT
[GTK] Guard uses of RedirectedXCompositeWindow in WebKitWebViewBase with PLATFORM(X11)
Attachments
Patch
(5.21 KB, patch)
2014-06-13 11:54 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Patch
(5.02 KB, patch)
2014-07-08 00:12 PDT
,
Zan Dobersek
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zan Dobersek
Comment 1
2014-06-13 11:54:39 PDT
Created
attachment 233065
[details]
Patch
WebKit Commit Bot
Comment 2
2014-06-13 11:56:56 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Martin Robinson
Comment 3
2014-06-13 13:19:54 PDT
Comment on
attachment 233065
[details]
Patch I think we always need compile-time support for X11.
Gwang Yoon Hwang
Comment 4
2014-06-13 22:40:10 PDT
Comment on
attachment 233065
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233065&action=review
> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:435 > +#if PLATFORM(X11) && defined(GDK_WINDOWING_X11)
As you mentioned in commit log, PLATFORM(X11) should imply GDK_WINDOWING_X11. So I think it is better to remove defined(GDK_WINDOWING_X11) from this patch.
Zan Dobersek
Comment 5
2014-06-17 01:45:03 PDT
(In reply to
comment #3
)
> (From update of
attachment 233065
[details]
) > I think we always need compile-time support for X11.
We do now, but this patch guards RedirectedXCompositeWindow that won't be used in builds for the Wayland target.
Zan Dobersek
Comment 6
2014-06-17 01:46:54 PDT
(In reply to
comment #4
)
> (From update of
attachment 233065
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=233065&action=review
> > > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:435 > > +#if PLATFORM(X11) && defined(GDK_WINDOWING_X11) > > As you mentioned in commit log, PLATFORM(X11) should imply GDK_WINDOWING_X11. > So I think it is better to remove defined(GDK_WINDOWING_X11) from this patch.
OK, I'll enhance the CMake system to properly check for dependencies that would make 'PLATFORM(X11)' equivalent to 'PLATFORM(X11) && defined(GDK_WINDOWING_X11)', and then use PLATFORM(X11) only.
Martin Robinson
Comment 7
2014-06-17 09:31:12 PDT
(In reply to
comment #5
)
> (In reply to
comment #3
) > > (From update of
attachment 233065
[details]
[details]) > > I think we always need compile-time support for X11. > > We do now, but this patch guards RedirectedXCompositeWindow that won't be used in builds for the Wayland target.
Can you talk more about builds that do not support X11, but do support Wayland?
Zan Dobersek
Comment 8
2014-07-08 00:12:22 PDT
Created
attachment 234551
[details]
Patch
Zan Dobersek
Comment 9
2014-07-08 09:26:44 PDT
(In reply to
comment #7
)
> (In reply to
comment #5
) > > (In reply to
comment #3
) > > > (From update of
attachment 233065
[details]
[details] [details]) > > > I think we always need compile-time support for X11. > > > > We do now, but this patch guards RedirectedXCompositeWindow that won't be used in builds for the Wayland target. > > Can you talk more about builds that do not support X11, but do support Wayland?
In Autotools we supported building for either X11 windowing target, Wayland windowing target, or both -- much like GTK+ can support different windowing targets. Of course we'll be checking that the GTK+ installation that's used was actually configured to enable the desired windowing target. The idea is to achieve the same with CMake. I can't really remember though why all these guards that are being added in this patch weren't necessary ~6 months ago.
Zan Dobersek
Comment 10
2014-07-08 09:35:08 PDT
Comment on
attachment 234551
[details]
Patch Clearing flags on attachment: 234551 Committed
r170887
: <
http://trac.webkit.org/changeset/170887
>
Zan Dobersek
Comment 11
2014-07-08 09:35:17 PDT
All reviewed patches have been landed. Closing bug.
Martin Robinson
Comment 12
2014-07-08 09:56:46 PDT
(In reply to
comment #9
)
> In Autotools we supported building for either X11 windowing target, Wayland windowing target, or both -- much like GTK+ can support different windowing targets. Of course we'll be checking that the GTK+ installation that's used was actually configured to enable the desired windowing target.
I'm not sure of the benefit of making this configurable. My proposal is that we just target the same platforms that the GTK+ we are compiling against supports.
Zan Dobersek
Comment 13
2014-07-08 11:57:17 PDT
(In reply to
comment #12
)
> (In reply to
comment #9
) > > > In Autotools we supported building for either X11 windowing target, Wayland windowing target, or both -- much like GTK+ can support different windowing targets. Of course we'll be checking that the GTK+ installation that's used was actually configured to enable the desired windowing target. > > I'm not sure of the benefit of making this configurable. My proposal is that we just target the same platforms that the GTK+ we are compiling against supports.
That makes sense.
Bug 134736
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug