Changeset 261861 in webkit


Ignore:
Timestamp:
May 19, 2020 9:00:31 AM (4 years ago)
Author:
Antti Koivisto
Message:

Animation of font-size with rem values is incorrect
https://bugs.webkit.org/show_bug.cgi?id=194765
<rdar://problem/48171742>

Reviewed by Antoine Quint.

Source/WebCore:

Test: animations/keyframe-rem-unit.html

'rem' computation fails on first style resolution because the document element style is not available.

  • style/StyleResolver.cpp:

(WebCore::Style::Resolver::styleForKeyframe):

Provide the override value, needed because the style can't be found from DOM tree yet.

LayoutTests:

  • animations/keyframe-rem-unit-expected.html: Added.
  • animations/keyframe-rem-unit.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r261859 r261861  
     12020-05-19  Antti Koivisto  <antti@apple.com>
     2
     3        Animation of font-size with rem values is incorrect
     4        https://bugs.webkit.org/show_bug.cgi?id=194765
     5        <rdar://problem/48171742>
     6
     7        Reviewed by Antoine Quint.
     8
     9        * animations/keyframe-rem-unit-expected.html: Added.
     10        * animations/keyframe-rem-unit.html: Added.
     11
    1122020-05-19  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r261858 r261861  
     12020-05-19  Antti Koivisto  <antti@apple.com>
     2
     3        Animation of font-size with rem values is incorrect
     4        https://bugs.webkit.org/show_bug.cgi?id=194765
     5        <rdar://problem/48171742>
     6
     7        Reviewed by Antoine Quint.
     8
     9        Test: animations/keyframe-rem-unit.html
     10
     11        'rem' computation fails on first style resolution because the document element style is not available.
     12
     13        * style/StyleResolver.cpp:
     14        (WebCore::Style::Resolver::styleForKeyframe):
     15
     16        Provide the override value, needed because the style can't be found from DOM tree yet.
     17
    1182020-05-19  Andy Estes  <aestes@apple.com>
    219
  • trunk/Source/WebCore/style/StyleResolver.cpp

    r261756 r261861  
    261261    result.authorDeclarations.append({ &keyframe->properties() });
    262262
    263     auto state = State(element, nullptr);
     263    auto state = State(element, nullptr, m_overrideDocumentElementStyle);
    264264
    265265    state.setStyle(RenderStyle::clonePtr(*elementStyle));
Note: See TracChangeset for help on using the changeset viewer.