Re: [webkit-dev] C++17 is here. Should we use it?

2017-08-04 Thread Michael Catanzaro
On Fri, Aug 4, 2017 at 3:48 PM, Yusuke SUZUKI wrote: Possibly, mcatanzaro and clopez know much about WebKitGTK+ compiler dependencies. As a result of the C++14 discussion on this list a few months ago, we relaxed our dependencies policy [1] to allow upgrading to GCC 5 one year earlier than p

Re: [webkit-dev] C++17 is here. Should we use it?

2017-08-04 Thread Yusuke SUZUKI
I really like C++17, `if with initializer` is super great. Awesome constexpr lambda and if. And std::optional and std::variant... However, IIRC, WebKitGTK+ needs to support some old compilers. The current GCC support is 5.0.0, which is recently upgraded. https://bugs.webkit.org/show_bug.cgi?id=174

[webkit-dev] C++17 is here. Should we use it?

2017-08-04 Thread JF Bastien
Hello WebKilters, Our Chrome-y friends are considering the use of C++14 . I have to say that C++14 in WebKit has been quite amazing, and we should consider using C++17: it has m

Re: [webkit-dev] What's the rationale for not including config.h in any header files?

2017-08-04 Thread Carlos Alberto Lopez Perez
On 02/08/17 12:14, Konstantin Tokarev wrote: > FWIW, I use ENABLE_ALLINONE_BUILD=ON as a default build option in Qt > port and don't have any "terrible" development experience. Even when I > need to make a change in file that is not port-specific, usually just > one of AllInOne files needs to be re

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Michael Catanzaro
Hi, You can use FcNameParse and FcNameUnparse. Once you have an FcPattern, that should be relatively straightforward. Of course an FcPattern is different from a font, but that's probably the closest you can get and it should be good enough. Michael _

Re: [webkit-dev] Looking to remove cygwin dependency for javascript tests for Windows ports

2017-08-04 Thread Myles C. Maxfield
Alex’s claim should be broadened: The right direction is to eventually not use Cygwin for anything at all. > On Aug 2, 2017, at 8:35 PM, Alex Christensen wrote: > > I think eventually running all tests on Windows without Cygwin would be a > step in the right direction. > >> On Aug 2, 2017, at

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Myles C. Maxfield
I don’t think there is a platform independent method. —Myles > On Aug 4, 2017, at 3:48 PM, Joshua Watt wrote: > > On Fri, 2017-08-04 at 13:15 +0200, Myles C. Maxfield wrote: >> You can >> use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAt >> tributes() and serialize the inter

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Joshua Watt
On Fri, 2017-08-04 at 13:15 +0200, Myles C. Maxfield wrote: > You can > use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAt > tributes() and serialize the intermediate dictionary. Ah, I should have clarified: This is on a Linux port :). I was hoping for some platform independent

Re: [webkit-dev] Passing a font from WebProcess to UIProcess

2017-08-04 Thread Myles C. Maxfield
You can use CTFontDescriptorCopyAttributes() and CTFontDescriptorCreateWithAttributes() and serialize the int