| Summary: | Text manipulation should handle nested item boundary elements | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> | ||||||
| Component: | HTML Editing | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bdakin, ews-watchlist, megan_gardner, mifenton, sihui_liu, thorton, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Wenson Hsieh
2020-06-16 09:10:49 PDT
Created attachment 402011 [details]
Patch
Comment on attachment 402011 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=402011&action=review > Source/WebCore/editing/TextManipulationController.cpp:419 > + bool crossedItemBoundary = false; This boolean is probably not needed. addItemIfPossible does not add item when units is empty. (In reply to Sihui Liu from comment #2) > Comment on attachment 402011 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=402011&action=review > > > Source/WebCore/editing/TextManipulationController.cpp:419 > > + bool crossedItemBoundary = false; > > This boolean is probably not needed. addItemIfPossible does not add item > when units is empty. Good point! Removed crossedItemBoundary. Created attachment 402022 [details]
Patch for landing
Committed r263101: <https://trac.webkit.org/changeset/263101> All reviewed patches have been landed. Closing bug and clearing flags on attachment 402022 [details]. |