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

Changeset 294729 in webkit


Ignore:
Timestamp:
May 23, 2022, 10:13:48 PM (4 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION (250413@main): [ iOS ] system-preview/badge.html is a consistent image failure
https://bugs.webkit.org/show_bug.cgi?id=240352
rdar://93191053

Patch by Antoine Quint <Antoine Quint> on 2022-05-23
Reviewed by Simon Fraser.

In the case of an ARKit image, we should only be returning when we don't
have a native image to record, otherwise the system image itself needs
to be recorded as well.

  • LayoutTests/platform/ios-wk2/TestExpectations:
  • Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp:

(WebCore::DisplayList::Recorder::drawSystemImage):

Canonical link: https://commits.webkit.org/250907@main

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/platform/ios-wk2/TestExpectations

    r294529 r294729  
    22372237fast/text/install-font-style-recalc.html [ Pass ]
    22382238
    2239 webkit.org/b/240352 system-preview/badge.html [ ImageOnlyFailure ]
    2240 
    22412239# webkit.org/b/240579 Disabling the following http/tests/workers/service/shownotification layout-tests on iOS
    22422240http/tests/workers/service/shownotification-allowed-document.html [ Skip ]
  • trunk/Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp

    r294145 r294729  
    206206    if (is<ARKitBadgeSystemImage>(systemImage)) {
    207207        if (auto image = downcast<ARKitBadgeSystemImage>(systemImage).image()) {
    208             if (auto nativeImage = image->nativeImage())
    209                 recordResourceUse(*nativeImage);
     208            auto nativeImage = image->nativeImage();
     209            if (!nativeImage)
     210                return;
     211            recordResourceUse(*nativeImage);
    210212        }
    211         return;
    212213    }
    213214#endif
Note: See TracChangeset for help on using the changeset viewer.