Changeset 270027 in webkit


Ignore:
Timestamp:
Nov 19, 2020 6:19:36 AM (3 years ago)
Author:
Alan Bujtas
Message:

[LFC][Integration] Disable non-text content with floats
https://bugs.webkit.org/show_bug.cgi?id=219122

Reviewed by Antti Koivisto.

Non-text content may stretch the line and we don't yet have support for dynamic float avoiding (as the line grows).

  • layout/integration/LayoutIntegrationCoverage.cpp:

(WebCore::LayoutIntegration::canUseForLineLayoutWithReason):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r270026 r270027  
     12020-11-19  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][Integration] Disable non-text content with floats
     4        https://bugs.webkit.org/show_bug.cgi?id=219122
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Non-text content may stretch the line and we don't yet have support for dynamic float avoiding (as the line grows).
     9
     10        * layout/integration/LayoutIntegrationCoverage.cpp:
     11        (WebCore::LayoutIntegration::canUseForLineLayoutWithReason):
     12
    1132020-11-19  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp

    r269938 r270027  
    713713    // The <blockflow><inline>#text</inline></blockflow> case is also popular and should be relatively easy to cover.
    714714    for (const auto* child = flow.firstChild(); child; child = child->nextSibling()) {
     715        if (!is<RenderText>(*child) && flow.containsFloats()) {
     716            // Non-text content may stretch the line and we don't yet have support for dynamic float avoiding (as the line grows).
     717            SET_REASON_AND_RETURN_IF_NEEDED(FlowHasUnsupportedFloat, reasons, includeReasons);
     718        }
    715719        auto childReasons = canUseForChild(*child, includeReasons);
    716720        if (childReasons)
Note: See TracChangeset for help on using the changeset viewer.