Changeset 283087 in webkit
- Timestamp:
- Sep 26, 2021, 6:47:42 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/iterator-line-start-end-expected.txt (added)
-
LayoutTests/editing/iterator-line-start-end.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/layout/integration/LayoutIntegrationLineIteratorModernPath.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r283079 r283087 1 2021-09-26 Antti Koivisto <antti@apple.com> 2 3 Line iterator firstRun/lastRun may return runs from wrong lines 4 https://bugs.webkit.org/show_bug.cgi?id=230770 5 <rdar://problem/83509753> 6 7 Reviewed by Alan Bujtas. 8 9 * editing/iterator-line-start-end-expected.txt: Added. 10 * editing/iterator-line-start-end.html: Added. 11 1 12 2021-09-23 Tim Nguyen <ntim@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r283084 r283087 1 2021-09-26 Antti Koivisto <antti@apple.com> 2 3 Line iterator firstRun/lastRun may return runs from wrong lines 4 https://bugs.webkit.org/show_bug.cgi?id=230770 5 <rdar://problem/83509753> 6 7 Reviewed by Alan Bujtas. 8 9 In some situation line iterator firstRun/lastRun could return runs from different lines. 10 This could lead to inconsistencies like firstRun being non-null while lastRun is null. 11 12 Test: editing/iterator-line-start-end.html 13 14 * layout/integration/LayoutIntegrationLineIteratorModernPath.h: 15 (WebCore::LayoutIntegration::LineIteratorModernPath::firstRun const): 16 (WebCore::LayoutIntegration::LineIteratorModernPath::lastRun const): 17 18 Take care to only return runs from this line. 19 1 20 2021-09-25 Alan Bujtas <zalan@apple.com> 2 21 -
trunk/Source/WebCore/layout/integration/LayoutIntegrationLineIteratorModernPath.h
r282961 r283087 103 103 auto runIterator = RunIteratorModernPath { *m_inlineContent, line().firstBoxIndex() }; 104 104 if (runIterator.box().isInlineBox()) 105 runIterator.traverseNext Leaf();105 runIterator.traverseNextOnLine(); 106 106 return runIterator; 107 107 } … … 114 114 auto runIterator = RunIteratorModernPath { *m_inlineContent, line().firstBoxIndex() + boxCount - 1 }; 115 115 if (runIterator.box().isInlineBox()) 116 runIterator.traversePrevious Leaf();116 runIterator.traversePreviousOnLine(); 117 117 return runIterator; 118 118 }
Note:
See TracChangeset
for help on using the changeset viewer.