Changeset 294620 in webkit


Ignore:
Timestamp:
May 22, 2022 7:36:15 AM (2 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r293956): Bad color inheritance due to disallowsFastPathInheritance bit missing from RenderStyle::copyNonInheritedFrom
https://bugs.webkit.org/show_bug.cgi?id=240770

Reviewed by Alan Bujtas.

Test: fast/css/color-inheritance-dynamic.html

  • Source/WebCore/rendering/style/RenderStyle.h:

(WebCore::RenderStyle::NonInheritedFlags::copyNonInheritedFrom):

Add it.

  • LayoutTests/fast/css/color-inheritance-dynamic-expected.html: Added.
  • LayoutTests/fast/css/color-inheritance-dynamic.html: Added.

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

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/style/RenderStyle.h

    r294615 r294620  
    21682168    hasViewportUnits = other.hasViewportUnits;
    21692169    hasExplicitlyInheritedProperties = other.hasExplicitlyInheritedProperties;
     2170    disallowsFastPathInheritance = other.disallowsFastPathInheritance;
    21702171
    21712172    // Unlike properties tracked by the other hasExplicitlySet* flags, border-radius is non-inherited
Note: See TracChangeset for help on using the changeset viewer.