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

Changeset 294392 in webkit


Ignore:
Timestamp:
May 18, 2022, 5:59:08 AM (4 years ago)
Author:
graouts@webkit.org
Message:

[web-animations] ensure that animations using offset properties correctly run on a composited layer
​https://bugs.webkit.org/show_bug.cgi?id=236709
<rdar://problem/89029756>

Reviewed by Dean Jackson.

Add all the CSS properties related to the CSS Motion Path feature to
RenderLayerCompositor::requiresCompositingForAnimation() in order to
ensure that an element's renderer is composited when one of those
properties is animated.

Tests: webanimations/offset-anchor-animation-yields-compositing.html

webanimations/offset-distance-animation-yields-compositing.html
webanimations/offset-path-animation-yields-compositing.html
webanimations/offset-position-animation-yields-compositing.html
webanimations/offset-rotate-animation-yields-compositing.html
webanimations/offset-shorthand-animation-yields-compositing.html

  • Source/WebCore/rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::requiresCompositingForAnimation const):

  • LayoutTests/webanimations/offset-anchor-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-anchor-animation-yields-compositing.html: Added.
  • LayoutTests/webanimations/offset-distance-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-distance-animation-yields-compositing.html: Added.
  • LayoutTests/webanimations/offset-path-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-path-animation-yields-compositing.html: Added.
  • LayoutTests/webanimations/offset-position-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-position-animation-yields-compositing.html: Added.
  • LayoutTests/webanimations/offset-rotate-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-rotate-animation-yields-compositing.html: Added.
  • LayoutTests/webanimations/offset-shorthand-animation-yields-compositing-expected.txt: Added.
  • LayoutTests/webanimations/offset-shorthand-animation-yields-compositing.html: Added.

Canonical link: ​https://commits.webkit.org/250687@main

Location:
trunk
Files:
12 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r293126 r294392  
    30083008                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyScale)
    30093009                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyRotate)
    3010                 || effectsStack->isCurrentlyAffectingProperty(CSSPropertyTransform);
     3010                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyTransform)
     3011                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyOffsetAnchor)
     3012                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyOffsetDistance)
     3013                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyOffsetPath)
     3014                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyOffsetPosition)
     3015                || effectsStack->isCurrentlyAffectingProperty(CSSPropertyOffsetRotate);
    30113016        }
    30123017    }
Note: See TracChangeset for help on using the changeset viewer.