[Webkit-unassigned] [Bug 142673] [GTK] Add settings to set font size in points, and deprecate the pixel size settings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 31 07:57:18 PDT 2017


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

--- Comment #19 from Michael Catanzaro <mcatanzaro at igalia.com> ---
(In reply to Michael Catanzaro from comment #17)
> Answer: It's constructed (in the instance init) using a placement new. Three
> consequences of that. (1) In WebKit, new is overridden to use WebKit's
> custom memory allocator bmalloc, which is faster than glibc's malloc.

Actually (1) is totally wrong... the point of placement new is that it constructs the object using previously-allocated memory. Here the memory is actually allocated (and zeroed) by GObject. I'm not sure whether or not it's undefined behavior to not explicitly initialize all the struct members.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171031/916caebd/attachment.html>


More information about the webkit-unassigned mailing list