Changeset 269938 in webkit


Ignore:
Timestamp:
Nov 17, 2020 5:31:05 PM (3 years ago)
Author:
Alan Bujtas
Message:

REGRESSION (r269744): ASSERTION FAILED: m_hasValidContentHeight in WebCore::Layout::BoxGeometry::contentBoxHeight()
https://bugs.webkit.org/show_bug.cgi?id=219004
<rdar://problem/71459284>

Reviewed by Antti Koivisto.

Unfortunately we have to disable all percentage height/width content until after the integration codepath is fixed.
(in this case, the layout code assumes that percentage height values can always be resolved by climbing up on the
ancestor chain -worst case scenario we find the ICB which always has fixed height value.
However the integration codepath does not set the height on the fake ICB (RenderBlockFlow) even when the flow's height
is fixed and the IFC code can't climb farther up on the tree)

  • layout/integration/LayoutIntegrationCoverage.cpp:

(WebCore::LayoutIntegration::canUseForChild):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r269937 r269938  
     12020-11-17  Zalan Bujtas  <zalan@apple.com>
     2
     3        REGRESSION (r269744): ASSERTION FAILED: m_hasValidContentHeight in WebCore::Layout::BoxGeometry::contentBoxHeight()
     4        https://bugs.webkit.org/show_bug.cgi?id=219004
     5        <rdar://problem/71459284>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        Unfortunately we have to disable all percentage height/width content until after the integration codepath is fixed.
     10        (in this case, the layout code assumes that percentage height values can always be resolved by climbing up on the
     11        ancestor chain -worst case scenario we find the ICB which always has fixed height value.
     12        However the integration codepath does not set the height on the fake ICB (RenderBlockFlow) even when the flow's height
     13        is fixed and the IFC code can't climb farther up on the tree)
     14
     15        * layout/integration/LayoutIntegrationCoverage.cpp:
     16        (WebCore::LayoutIntegration::canUseForChild):
     17
    1182020-11-17  Megan Gardner  <megan_gardner@apple.com>
    219
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp

    r269921 r269938  
    584584        if (style.verticalAlign() == VerticalAlign::Sub || style.verticalAlign() == VerticalAlign::Super)
    585585            return false;
    586         auto& width = style.width();
    587         auto& height = style.height();
    588         if (width.isPercent() || height.isPercent())
     586        if (style.width().isPercent() || style.height().isPercent())
    589587            return false;
    590         if (width.isAuto() && (style.minWidth().isPercent() || style.maxWidth().isPercent()))
     588        if (style.minWidth().isPercent() || style.maxWidth().isPercent())
    591589            return false;
    592         if (height.isAuto() && (style.minHeight().isPercent() || style.maxHeight().isPercent()))
     590        if (style.minHeight().isPercent() || style.maxHeight().isPercent())
    593591            return false;
    594592        return true;
Note: See TracChangeset for help on using the changeset viewer.