Changeset 252921 in webkit
- Timestamp:
- Nov 28, 2019 6:24:02 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r252920 r252921 1 2019-11-28 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][IFC] Fix LineLayoutContext::shouldProcessUncommittedContent logic 4 https://bugs.webkit.org/show_bug.cgi?id=204656 5 <rdar://problem/57511221> 6 7 Reviewed by Antti Koivisto. 8 9 Move the [text][text] and [ ][text] checks further down because we adjust the "lastUncomittedContent" by skipping [container start][container end] items. 10 (This was recently regressed at r252859) 11 12 * layout/inlineformatting/LineLayoutContext.cpp: 13 (WebCore::Layout::LineLayoutContext::shouldProcessUncommittedContent const): 14 1 15 2019-11-28 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/layout/inlineformatting/LineLayoutContext.cpp
r252865 r252921 255 255 if (downcast<InlineTextItem>(inlineItem).isWhitespace()) 256 256 return true; 257 // texttext -> continuous content.258 // ' 'text -> commit boundary.259 if (lastUncomittedContent->isText())260 return downcast<InlineTextItem>(*lastUncomittedContent).isWhitespace();261 257 // <span>text -> the inline container start and the text content form an unbreakable continuous content. 262 258 if (lastUncomittedContent->isContainerStart()) … … 280 276 return false; 281 277 } 278 // texttext -> continuous content. 279 // ' 'text -> commit boundary. 280 if (lastUncomittedContent->isText()) 281 return downcast<InlineTextItem>(*lastUncomittedContent).isWhitespace(); 282 282 // <img>text -> the inline box is on a commit boundary. 283 283 if (lastUncomittedContent->isBox())
Note: See TracChangeset
for help on using the changeset viewer.