Changeset 289016 in webkit


Ignore:
Timestamp:
Feb 2, 2022, 4:48:32 PM (4 years ago)
Author:
Lauro Moura
Message:

[GLIB] Unreviewed debug buildfix after r288872
https://bugs.webkit.org/show_bug.cgi?id=236036

The actual issue was the roleNames array provided to SortedArrayMap
constructor wasn't fully ordered, making isSortedConstExpr to fail,
generating the call to WTFReport..., which is non-constexpr and thus
the compile failure.

This commit revert the previous fix from r288990 and fix the ordering of
roleNames.

  • accessibility/atspi/AccessibilityAtspi.cpp:

(WebCore::AccessibilityAtspi::localizedRoleName):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r289014 r289016  
     12022-02-02  Lauro Moura  <lmoura@igalia.com>
     2
     3        [GLIB] Unreviewed debug buildfix after r288872
     4        https://bugs.webkit.org/show_bug.cgi?id=236036
     5
     6        The actual issue was the roleNames array provided to SortedArrayMap
     7        constructor wasn't fully ordered, making isSortedConstExpr to fail,
     8        generating the call to WTFReport..., which is non-constexpr and thus
     9        the compile failure.
     10
     11        This commit revert the previous fix from r288990 and fix the ordering of
     12        roleNames.
     13
     14        * accessibility/atspi/AccessibilityAtspi.cpp:
     15        (WebCore::AccessibilityAtspi::localizedRoleName):
     16
    1172022-02-02  Antoine Quint  <graouts@webkit.org>
    218
  • trunk/Source/WebCore/accessibility/atspi/AccessibilityAtspi.cpp

    r288990 r289016  
    603603    { AccessibilityRole::Deletion, { "content deletion", N_("content deletion") } },
    604604    { AccessibilityRole::DescriptionList, { "description list", N_("description list") } },
     605    { AccessibilityRole::DescriptionListDetail, { "description value", N_("description value") } },
    605606    { AccessibilityRole::DescriptionListTerm, { "description term", N_("description term") } },
    606     { AccessibilityRole::DescriptionListDetail, { "description value", N_("description value") } },
    607607    { AccessibilityRole::Directory, { "directory pane", N_("directory pane") } },
    608608    { AccessibilityRole::Div, { "section", N_("section") } },
     
    705705const char* AccessibilityAtspi::localizedRoleName(AccessibilityRole role)
    706706{
    707     static const SortedArrayMap roleNamesMap { roleNames };
     707    static constexpr SortedArrayMap roleNamesMap { roleNames };
    708708    if (auto entry = roleNamesMap.tryGet(role))
    709709        return entry->localizedName;
Note: See TracChangeset for help on using the changeset viewer.