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

Changeset 283879 in webkit


Ignore:
Timestamp:
Oct 10, 2021, 3:24:10 PM (5 years ago)
Author:
Alan Bujtas
Message:

[IFC][Integration] Do not bail out on missing primary font
​https://bugs.webkit.org/show_bug.cgi?id=231488

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

  • web-platform-tests/css/cssom-view/getBoundingClientRect-shy-expected.txt:

Source/WebCore:

IFC has non-primary font support now.

  • layout/integration/LayoutIntegrationCoverage.cpp:

(WebCore::LayoutIntegration::printReason):
(WebCore::LayoutIntegration::canUseForFontAndText):

  • layout/integration/LayoutIntegrationCoverage.h:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r283858 r283879  
     12021-10-10  Alan Bujtas  <zalan@apple.com>
     2
     3        [IFC][Integration] Do not bail out on missing primary font
     4        https://bugs.webkit.org/show_bug.cgi?id=231488
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * web-platform-tests/css/cssom-view/getBoundingClientRect-shy-expected.txt:
     9
    1102021-10-08  Aditya Keerthi  <akeerthi@apple.com>
    211
  • trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/getBoundingClientRect-shy-expected.txt

    r282341 r283879  
    1515FAIL Rendered soft-hyphen should have a width. assert_equals: expected 10 but got 15
    1616PASS Collapsed soft-hyphen in a span should be 0 width.
    17 FAIL Rendered soft-hyphen in a span should have a width. assert_equals: expected 10 but got 0
     17PASS Rendered soft-hyphen in a span should have a width.
    1818
  • trunk/Source/WebCore/ChangeLog

    r283875 r283879  
     12021-10-10  Alan Bujtas  <zalan@apple.com>
     2
     3        [IFC][Integration] Do not bail out on missing primary font
     4        https://bugs.webkit.org/show_bug.cgi?id=231488
     5
     6        Reviewed by Antti Koivisto.
     7
     8        IFC has non-primary font support now.
     9
     10        * layout/integration/LayoutIntegrationCoverage.cpp:
     11        (WebCore::LayoutIntegration::printReason):
     12        (WebCore::LayoutIntegration::canUseForFontAndText):
     13        * layout/integration/LayoutIntegrationCoverage.h:
     14
    1152021-10-10  Alan Bujtas  <zalan@apple.com>
    216
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp

    r283875 r283879  
    153153        stream << "direction character";
    154154        break;
    155     case AvoidanceReason::FlowIsMissingPrimaryFont:
    156         stream << "missing primary font";
    157         break;
    158155    case AvoidanceReason::FlowTextIsCombineText:
    159156        stream << "text is combine";
    … …  
    401398    const auto& style = container.style();
    402399    auto& fontCascade = style.fontCascade();
    403     if (fontCascade.primaryFont().isInterstitial())
    404         SET_REASON_AND_RETURN_IF_NEEDED(FlowIsMissingPrimaryFont, reasons, includeReasons);
    405400    if (style.lineBoxContain().contains(LineBoxContain::Glyphs))
    406401        SET_REASON_AND_RETURN_IF_NEEDED(FlowHasLineBoxContainGlyphs, reasons, includeReasons);
    … …  
    423418            WebCore::TextRun run(String(textRenderer.text()));
    424419            run.setCharacterScanForCodePath(false);
    425             if (style.fontCascade().codePath(run) != FontCascade::CodePath::Simple)
     420            if (fontCascade.codePath(run) != FontCascade::CodePath::Simple)
    426421                SET_REASON_AND_RETURN_IF_NEEDED(FlowHasComplexFontCodePath, reasons, includeReasons);
    427422        }
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationCoverage.h

    r283550 r283879  
    7272    FlowHasSVGFont                               = 1LLU  << 31,
    7373    FlowTextHasDirectionCharacter                = 1LLU  << 32,
    74     FlowIsMissingPrimaryFont                     = 1LLU  << 33,
     74    // Unused                                    = 1LLU  << 33,
    7575    // Unused                                    = 1LLU  << 34,
    7676    FlowTextIsCombineText                        = 1LLU  << 35,
Note: See TracChangeset for help on using the changeset viewer.