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

Changeset 282452 in webkit


Ignore:
Timestamp:
Sep 15, 2021, 7:21:49 AM (5 years ago)
Author:
Antti Koivisto
Message:

[LFC][Integration] TextBoxSelectableRange::additionalLengthAtEnd miscomputed
​https://bugs.webkit.org/show_bug.cgi?id=230306

Reviewed by Alan Bujtas.

It should be non-zero only if the run contains a hyphen. This doesn't yet affect
anything, but it will.

  • layout/integration/LayoutIntegrationRunIteratorModernPath.h:

(WebCore::LayoutIntegration::RunIteratorModernPath::selectableRange const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r282451 r282452  
     12021-09-15  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] TextBoxSelectableRange::additionalLengthAtEnd miscomputed
     4        https://bugs.webkit.org/show_bug.cgi?id=230306
     5
     6        Reviewed by Alan Bujtas.
     7
     8        It should be non-zero only if the run contains a hyphen. This doesn't yet affect
     9        anything, but it will.
     10
     11        * layout/integration/LayoutIntegrationRunIteratorModernPath.h:
     12        (WebCore::LayoutIntegration::RunIteratorModernPath::selectableRange const):
     13
    1142021-09-15  Aditya Keerthi  <akeerthi@apple.com>
    215
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationRunIteratorModernPath.h

    r282449 r282452  
    106106            start(),
    107107            length(),
    108             run().style().hyphenString().length(),
     108            run().text()->hasHyphen() ? run().style().hyphenString().length() : 0,
    109109            run().isLineBreak()
    110110        };
Note: See TracChangeset for help on using the changeset viewer.