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

Changeset 278397 in webkit


Ignore:
Timestamp:
Jun 2, 2021, 11:50:32 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Make EndTransparancyLayer a potential no-op
​https://bugs.webkit.org/show_bug.cgi?id=226523

Patch by Rob Buis <​rbuis@igalia.com> on 2021-06-02
Reviewed by Simon Fraser.

Make EndTransparancyLayer a no-op if there is no
current transparency layer in place.

  • platform/graphics/displaylists/DisplayListItems.cpp:

(WebCore::DisplayList::EndTransparencyLayer::apply const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r278396 r278397  
     12021-06-02  Rob Buis  <rbuis@igalia.com>
     2
     3        Make EndTransparancyLayer a potential no-op
     4        https://bugs.webkit.org/show_bug.cgi?id=226523
     5
     6        Reviewed by Simon Fraser.
     7
     8        Make EndTransparancyLayer a no-op if there is no
     9        current transparency layer in place.
     10
     11        * platform/graphics/displaylists/DisplayListItems.cpp:
     12        (WebCore::DisplayList::EndTransparencyLayer::apply const):
     13
    1142021-06-02  Rob Buis  <rbuis@igalia.com>
    215
  • trunk/Source/WebCore/platform/graphics/displaylists/DisplayListItems.cpp

    r278396 r278397  
    10731073void EndTransparencyLayer::apply(GraphicsContext& context) const
    10741074{
    1075     context.endTransparencyLayer();
     1075    if (context.isInTransparencyLayer())
     1076        context.endTransparencyLayer();
    10761077}
    10771078
Note: See TracChangeset for help on using the changeset viewer.