Changeset 267465 in webkit
- Timestamp:
- Sep 23, 2020, 12:57:26 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
layout/inlineformatting/InlineLine.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267464 r267465 1 2020-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 1 15 2020-09-22 Patrick Angle <pangle@apple.com> 2 16 -
trunk/Source/WebCore/layout/inlineformatting/InlineLine.cpp
r267234 r267465 498 498 bool Line::Run::hasTrailingLetterSpacing() const 499 499 { 500 // Complex line layout does not keep track of trailing letter spacing.501 if (RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextIntegrationEnabled())502 return false;503 500 return !hasTrailingWhitespace() && style().letterSpacing() > 0; 504 501 } … … 507 504 { 508 505 if (!hasTrailingLetterSpacing()) 509 return 0_lu;506 return { }; 510 507 return InlineLayoutUnit { style().letterSpacing() }; 511 508 }
Note:
See TracChangeset
for help on using the changeset viewer.