Changeset 290735 in webkit


Ignore:
Timestamp:
Mar 2, 2022 10:47:09 AM (5 months ago)
Author:
graouts@webkit.org
Message:

Outline-width with transition don't animate correctly
https://bugs.webkit.org/show_bug.cgi?id=173708

Reviewed by Antti Koivisto.

Source/WebCore:

Account for a change in outline size when checking whether a style change affects
visual overflow.

No new test for this, I'm not sure how to write one since the issue is failing to
repaint during an animation but WKTR seems to force a repaint for reftests.

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::changeAffectsVisualOverflow const):

LayoutTests:

Add a repaint test that checks that the outline is accounted for during the transition.

  • fast/repaint/outline-transition-expected.txt: Added.
  • fast/repaint/outline-transition.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r290734 r290735  
     12022-03-02  Antoine Quint  <graouts@webkit.org>
     2
     3        Outline-width with transition don't animate correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=173708
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Add a repaint test that checks that the outline is accounted for during the transition.
     9
     10        * fast/repaint/outline-transition-expected.txt: Added.
     11        * fast/repaint/outline-transition.html: Added.
     12
    1132022-03-02  Alan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r290734 r290735  
     12022-03-02  Antoine Quint  <graouts@webkit.org>
     2
     3        Outline-width with transition don't animate correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=173708
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Account for a change in outline size when checking whether a style change affects
     9        visual overflow.
     10
     11        No new test for this, I'm not sure how to write one since the issue is failing to
     12        repaint during an animation but WKTR seems to force a repaint for reftests.
     13
     14        * rendering/style/RenderStyle.cpp:
     15        (WebCore::RenderStyle::changeAffectsVisualOverflow const):
     16
    1172022-03-02  Alan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r289466 r290735  
    641641    }
    642642
    643     if (hasOutlineInVisualOverflow() != other.hasOutlineInVisualOverflow())
    644         return true;
     643    auto hasOutlineInVisualOverflow = this->hasOutlineInVisualOverflow();
     644    auto otherHasOutlineInVisualOverflow = other.hasOutlineInVisualOverflow();
     645    if (hasOutlineInVisualOverflow != otherHasOutlineInVisualOverflow
     646        || (hasOutlineInVisualOverflow && otherHasOutlineInVisualOverflow && outlineSize() != other.outlineSize()))
     647        return true;
     648
    645649    return false;
    646650}
Note: See TracChangeset for help on using the changeset viewer.