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

Changeset 263853 in webkit


Ignore:
Timestamp:
Jul 2, 2020, 11:56:21 AM (6 years ago)
Author:
Antti Koivisto
Message:

REGRESSION: Comments section at dpreview has overlapping names with comment on phone
https://bugs.webkit.org/show_bug.cgi?id=213890
Source/WebCore:

<rdar://problem/64693599>

Reviewed by Simon Fraser.

Test: fast/text-autosizing/ios/float-miscomputed-line-height.html

  • rendering/TextAutoSizing.cpp:

(WebCore::TextAutoSizingValue::adjustTextNodeSizes):

Negative value is used to indicate unset line-height. We shouldn't make adjustments in this case.
This matches Style::BuilderCustom code.

LayoutTests:

Reviewed by Simon Fraser.

  • fast/text-autosizing/ios/float-miscomputed-line-height-expected.html: Added.
  • fast/text-autosizing/ios/float-miscomputed-line-height.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r263850 r263853  
     12020-07-02  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION: Comments section at dpreview has overlapping names with comment on phone
     4        https://bugs.webkit.org/show_bug.cgi?id=213890
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/text-autosizing/ios/float-miscomputed-line-height-expected.html: Added.
     9        * fast/text-autosizing/ios/float-miscomputed-line-height.html: Added.
     10
    1112020-07-02  Karl Rackler  <rackler@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r263846 r263853  
     12020-07-02  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION: Comments section at dpreview has overlapping names with comment on phone
     4        https://bugs.webkit.org/show_bug.cgi?id=213890
     5        <rdar://problem/64693599>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Test: fast/text-autosizing/ios/float-miscomputed-line-height.html
     10
     11        * rendering/TextAutoSizing.cpp:
     12        (WebCore::TextAutoSizingValue::adjustTextNodeSizes):
     13
     14        Negative value is used to indicate unset line-height. We shouldn't make adjustments in this case.
     15        This matches Style::BuilderCustom code.
     16
    1172020-07-02  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/rendering/TextAutoSizing.cpp

    r248846 r263853  
    155155
    156156        auto newParentStyle = cloneRenderStyleWithState(parentStyle);
    157         newParentStyle.setLineHeight(Length(lineHeight, Fixed));
     157        newParentStyle.setLineHeight(lineHeightLength.isNegative() ? Length(lineHeightLength) : Length(lineHeight, Fixed));
    158158        newParentStyle.setSpecifiedLineHeight(Length { lineHeightLength });
    159159        newParentStyle.setFontDescription(WTFMove(fontDescription));
Note: See TracChangeset for help on using the changeset viewer.