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

Changeset 267465 in webkit


Ignore:
Timestamp:
Sep 23, 2020, 12:57:26 AM (6 years ago)
Author:
Alan Bujtas
Message:

[LFC][IFC] Remove redundant RuntimeEnabledFeatures::layoutFormattingContextIntegrationEnabled from Line::Run::hasTrailingLetterSpacing
https://bugs.webkit.org/show_bug.cgi?id=216867

Reviewed by Simon Fraser.

This codepath is only triggered when Line::TrimmableTrailingContent has a partially trimmable run.
However we don't add such runs unless m_shouldIgnoreTrailingLetterSpacing is false (which is already based on the RuntimeEnabledFeatures flag).

  • layout/inlineformatting/InlineLine.cpp:

(WebCore::Layout::Line::Run::hasTrailingLetterSpacing const):
(WebCore::Layout::Line::Run::trailingLetterSpacing const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267464 r267465  
     12020-09-23  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LFC][IFC] Remove redundant RuntimeEnabledFeatures::layoutFormattingContextIntegrationEnabled from Line::Run::hasTrailingLetterSpacing
     4        https://bugs.webkit.org/show_bug.cgi?id=216867
     5
     6        Reviewed by Simon Fraser.
     7
     8        This codepath is only triggered when Line::TrimmableTrailingContent has a partially trimmable run.
     9        However we don't add such runs unless m_shouldIgnoreTrailingLetterSpacing is false (which is already based on the RuntimeEnabledFeatures flag).
     10
     11        * layout/inlineformatting/InlineLine.cpp:
     12        (WebCore::Layout::Line::Run::hasTrailingLetterSpacing const):
     13        (WebCore::Layout::Line::Run::trailingLetterSpacing const):
     14
    1152020-09-22  Patrick Angle  <pangle@apple.com>
    216
  • trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp

    r267234 r267465  
    498498bool Line::Run::hasTrailingLetterSpacing() const
    499499{
    500     // Complex line layout does not keep track of trailing letter spacing.
    501     if (RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextIntegrationEnabled())
    502         return false;
    503500    return !hasTrailingWhitespace() && style().letterSpacing() > 0;
    504501}
     
    507504{
    508505    if (!hasTrailingLetterSpacing())
    509         return 0_lu;
     506        return { };
    510507    return InlineLayoutUnit { style().letterSpacing() };
    511508}
Note: See TracChangeset for help on using the changeset viewer.