Changeset 263853 in webkit
- Timestamp:
- Jul 2, 2020, 11:56:21 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text-autosizing/ios/float-miscomputed-line-height-expected.html (added)
-
LayoutTests/fast/text-autosizing/ios/float-miscomputed-line-height.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/TextAutoSizing.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r263850 r263853 1 2020-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 1 11 2020-07-02 Karl Rackler <rackler@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r263846 r263853 1 2020-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 1 17 2020-07-02 Zalan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/rendering/TextAutoSizing.cpp
r248846 r263853 155 155 156 156 auto newParentStyle = cloneRenderStyleWithState(parentStyle); 157 newParentStyle.setLineHeight( Length(lineHeight, Fixed));157 newParentStyle.setLineHeight(lineHeightLength.isNegative() ? Length(lineHeightLength) : Length(lineHeight, Fixed)); 158 158 newParentStyle.setSpecifiedLineHeight(Length { lineHeightLength }); 159 159 newParentStyle.setFontDescription(WTFMove(fontDescription));
Note:
See TracChangeset
for help on using the changeset viewer.