⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242345 in webkit


Ignore:
Timestamp:
Mar 4, 2019, 1:21:45 AM (7 years ago)
Author:
Adrian Perez de Castro
Message:

Merged r242344 - [WPE] Inline wl_array_for_each to workaround C++ compatibility issue
https://bugs.webkit.org/show_bug.cgi?id=194898

Reviewed by Žan Doberšek.

  • wpe/backends/WindowViewBackend.cpp: wl_array_for_each relies on

a GCC extension that permits arithmetic on void* pointer. Inline
the macro until this issue is fixed upstream.

Location:
releases/WebKitGTK/webkit-2.24/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.24/Tools/ChangeLog

    r242163 r242345  
     12019-03-04  Charlie Turner  <cturner@igalia.com>
     2
     3        [WPE] Inline wl_array_for_each to workaround C++ compatibility issue
     4        https://bugs.webkit.org/show_bug.cgi?id=194898
     5
     6        Reviewed by Žan Doberšek.
     7
     8        * wpe/backends/WindowViewBackend.cpp: wl_array_for_each relies on
     9        a GCC extension that permits arithmetic on void* pointer. Inline
     10        the macro until this issue is fixed upstream.
     11
    1122019-02-25  Adrian Perez de Castro  <aperez@igalia.com>
    213
  • releases/WebKitGTK/webkit-2.24/Tools/wpe/backends/WindowViewBackend.cpp

    r242163 r242345  
    441441
    442442        bool isFocused = false;
    443         void* p;
    444         wl_array_for_each(p, states)
    445         {
    446             uint32_t state = *static_cast<uint32_t*>(p);
     443        // FIXME: It would be nice if the following loop could use
     444        // wl_array_for_each, but at the time of writing it relies on
     445        // GCC specific extension to work properly:
     446        // https://gitlab.freedesktop.org/wayland/wayland/issues/34
     447        uint32_t* pos = static_cast<uint32_t*>(states->data);
     448        uint32_t* end = static_cast<uint32_t*>(states->data) + states->size;
     449
     450        for (; pos < end; pos++) {
     451            uint32_t state = *pos;
    447452
    448453            switch (state) {
Note: See TracChangeset for help on using the changeset viewer.