Changeset 269728 in webkit


Ignore:
Timestamp:
Nov 12, 2020 3:25:22 AM (3 years ago)
Author:
svillar@igalia.com
Message:

Crash in RenderBox::overrideContainingBlockContentHeight()
https://bugs.webkit.org/show_bug.cgi?id=218504
<rdar://problem/70989103>

Reviewed by Zalan Bujtas.

Source/WebCore:

It should check the overriding widths map for vertical writing modes because it deals with logical sizes. Instead it was always checking the
overriding heights map and thus giving incorrect results.

Test: fast/flexbox/flex-column-vertical-rl-dynamic-child-crash.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::hasOverridingContainingBlockContentHeight const): Check gOverridingContainingBlockContentLogicalWidthMap
for vertical writing modes.

LayoutTests:

  • fast/flexbox/flex-column-vertical-rl-dynamic-child-crash-expected.txt: Added.
  • fast/flexbox/flex-column-vertical-rl-dynamic-child-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r269726 r269728  
     12020-11-12  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Crash in RenderBox::overrideContainingBlockContentHeight()
     4        https://bugs.webkit.org/show_bug.cgi?id=218504
     5        <rdar://problem/70989103>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * fast/flexbox/flex-column-vertical-rl-dynamic-child-crash-expected.txt: Added.
     10        * fast/flexbox/flex-column-vertical-rl-dynamic-child-crash.html: Added.
     11
    1122020-11-12  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r269726 r269728  
     12020-11-12  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Crash in RenderBox::overrideContainingBlockContentHeight()
     4        https://bugs.webkit.org/show_bug.cgi?id=218504
     5        <rdar://problem/70989103>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        It should check the overriding widths map for vertical writing modes because it deals with logical sizes. Instead it was always checking the
     10        overriding heights map and thus giving incorrect results.
     11
     12        Test: fast/flexbox/flex-column-vertical-rl-dynamic-child-crash.html
     13
     14        * rendering/RenderBox.cpp:
     15        (WebCore::RenderBox::hasOverridingContainingBlockContentHeight const): Check gOverridingContainingBlockContentLogicalWidthMap
     16        for vertical writing modes.
     17
    1182020-11-12  Zalan Bujtas  <zalan@apple.com>
    219
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r269717 r269728  
    11791179    return cb->style().isHorizontalWritingMode()
    11801180        ? gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this)
    1181         : gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this);
     1181        : gOverridingContainingBlockContentLogicalWidthMap && gOverridingContainingBlockContentLogicalWidthMap->contains(this);
    11821182}
    11831183
Note: See TracChangeset for help on using the changeset viewer.