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

Changeset 268862 in webkit


Ignore:
Timestamp:
Oct 22, 2020, 6:22:32 AM (6 years ago)
Author:
Antti Koivisto
Message:

[LFC][Integration] Lines with outline should be marked having visual overflow
https://bugs.webkit.org/show_bug.cgi?id=218071

Reviewed by Zalan Bujtas.

Source/WebCore:

Seen in fast/repaint/focus-ring-repaint.html

We may fail to paint newly added outlines correctly. This is a legacy line layout bug exposed by IFC integration.

  • rendering/InlineFlowBox.cpp:

(WebCore::InlineFlowBox::addToLine):

Mark when adding content to line.

LayoutTests:

  • fast/repaint/focus-ring-repaint-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r268861 r268862  
     12020-10-22  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] Lines with outline should be marked having visual overflow
     4        https://bugs.webkit.org/show_bug.cgi?id=218071
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * fast/repaint/focus-ring-repaint-expected.txt:
     9
    1102020-10-22  Diego Pino Garcia  <dpino@igalia.com>
    211
  • trunk/LayoutTests/fast/repaint/focus-ring-repaint-expected.txt

    r266803 r268862  
    77
    88(repaint rects
    9   (rect 5 457 103 67)
     9  (rect 5 457 106 70)
    1010  (rect 5 457 106 70)
    1111  (rect 5 542 106 70)
    1212  (rect 15 62 36 40)
    1313  (rect 18 65 30 34)
    14   (rect 5 89 56 10)
    15   (rect 5 35 56 64)
     14  (rect 5 92 56 10)
     15  (rect 5 35 56 67)
    1616  (rect 5 117 36 60)
    1717  (rect 8 120 30 54)
    1818  (rect 5 117 36 86)
    1919  (rect 8 120 30 80)
    20   (rect 5 174 56 30)
    21   (rect 5 120 56 84)
     20  (rect 5 177 56 30)
     21  (rect 5 120 56 87)
    2222  (rect 5 205 56 37)
    2323  (rect 5 375 56 37)
    24   (rect 5 457 103 67)
     24  (rect 5 457 106 70)
    2525  (rect 8 460 100 64)
    2626  (rect 8 545 100 64)
    27   (rect 5 542 103 67)
     27  (rect 5 542 106 70)
     28  (rect 5 609 772 3)
     29  (rect 0 609 785 3)
    2830  (rect 45 212 36 40)
    2931  (rect 48 215 30 34)
  • trunk/Source/WebCore/ChangeLog

    r268860 r268862  
     12020-10-22  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] Lines with outline should be marked having visual overflow
     4        https://bugs.webkit.org/show_bug.cgi?id=218071
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Seen in fast/repaint/focus-ring-repaint.html
     9
     10        We may fail to paint newly added outlines correctly. This is a legacy line layout bug exposed by IFC integration.
     11
     12        * rendering/InlineFlowBox.cpp:
     13        (WebCore::InlineFlowBox::addToLine):
     14
     15        Mark when adding content to line.
     16
    1172020-10-22  Cathie Chen  <cathiechen@igalia.com>
    218
  • trunk/Source/WebCore/rendering/InlineFlowBox.cpp

    r258990 r268862  
    176176        else if (childStyle.hasOutlineInVisualOverflow())
    177177            child->clearKnownToHaveNoOverflow();
     178
     179        if (lineStyle().hasOutlineInVisualOverflow())
     180            clearKnownToHaveNoOverflow();
    178181       
    179182        if (knownToHaveNoOverflow() && is<InlineFlowBox>(*child) && !downcast<InlineFlowBox>(*child).knownToHaveNoOverflow())
Note: See TracChangeset for help on using the changeset viewer.