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

Changeset 269779 in webkit


Ignore:
Timestamp:
Nov 13, 2020, 8:08:14 AM (6 years ago)
Author:
Antti Koivisto
Message:

[LFC][Integration] Tighten inline-block coverage conditions
https://bugs.webkit.org/show_bug.cgi?id=218901

Reviewed by Zalan Bujtas.

The current ones allow some non-inline-blocks.

  • layout/integration/LayoutIntegrationCoverage.cpp:

(WebCore::LayoutIntegration::canUseForChild):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r269778 r269779  
     12020-11-13  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] Tighten inline-block coverage conditions
     4        https://bugs.webkit.org/show_bug.cgi?id=218901
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        The current ones allow some non-inline-blocks.
     9
     10        * layout/integration/LayoutIntegrationCoverage.cpp:
     11        (WebCore::LayoutIntegration::canUseForChild):
     12
    1132020-11-13  Julian Gonzalez  <julian_a_gonzalez@apple.com>
    214
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp

    r269745 r269779  
    605605
    606606#if ALLOW_INLINE_BLOCK
    607     if (is<RenderBlock>(child)) {
    608         auto& block = downcast<RenderBlock>(child);
     607    if (is<RenderBlockFlow>(child)) {
     608        auto& block = downcast<RenderBlockFlow>(child);
    609609        if (!block.isReplaced() || !block.isInline())
    610610            SET_REASON_AND_RETURN_IF_NEEDED(FlowHasNonSupportedChild, reasons, includeReasons)
     
    615615
    616616        auto& style = block.style();
     617        if (block.style().display() != DisplayType::InlineBlock)
     618            SET_REASON_AND_RETURN_IF_NEEDED(FlowHasNonSupportedChild, reasons, includeReasons)
    617619        if (style.verticalAlign() == VerticalAlign::Sub || style.verticalAlign() == VerticalAlign::Super)
    618620            SET_REASON_AND_RETURN_IF_NEEDED(FlowHasNonSupportedChild, reasons, includeReasons);
Note: See TracChangeset for help on using the changeset viewer.