Changeset 270110 in webkit


Ignore:
Timestamp:
Nov 20, 2020 6:47:29 AM (3 years ago)
Author:
Antti Koivisto
Message:

[LFC][Integration] Take alignment offset into account when computing line iterator logicalLeft
https://bugs.webkit.org/show_bug.cgi?id=219197

Reviewed by Zalan Bujtas.

This fixes editing/style/text-indent.html with LFC editing enabled.

  • layout/integration/LayoutIntegrationLineIteratorModernPath.h:

(WebCore::LayoutIntegration::LineIteratorModernPath::logicalLeft const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r270109 r270110  
     12020-11-20  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] Take alignment offset into account when computing line iterator logicalLeft
     4        https://bugs.webkit.org/show_bug.cgi?id=219197
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        This fixes editing/style/text-indent.html with LFC editing enabled.
     9
     10        * layout/integration/LayoutIntegrationLineIteratorModernPath.h:
     11        (WebCore::LayoutIntegration::LineIteratorModernPath::logicalLeft const):
     12
    1132020-11-20  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/layout/integration/LayoutIntegrationLineIteratorModernPath.h

    r269989 r270110  
    6060    LayoutUnit selectionBottom() const { return bottom(); }
    6161
    62     float logicalLeft() const { return line().rect().x(); }
     62    float logicalLeft() const { return line().rect().x() + line().horizontalAlignmentOffset(); }
    6363    float logicalRight() const { return logicalLeft() + line().lineBoxWidth(); }
    6464    float y() const { return lineBoxTop(); }
Note: See TracChangeset for help on using the changeset viewer.