Hi, whenever you get a chance, could you please review this CL for crbug.com/539754135?
It makes getTargetRanges() on deleteContentBackward report only the code points Backspace actually deletes, instead of the whole grapheme cluster behind the caret. Firefox and Safari already behave this way.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Please add a new flag to runtime_enabled_features.json5, and enable the new code only if the flag is enabled.
https://chromium.googlesource.com/chromium/src/+/main/docs/flag_guarding_guidelines.md
cluster behind the caret, while Backspace deletes only a part of it. nit: Remove the tailing whitespace.
Move the narrowing that TypingCommand already does into
editing_utilities as NarrowSelectionToBackwardDeletionUnit() and nit: Remove the tailing whitespaces.
Editor& editor = GetDocument().GetFrame()->GetEditor();nit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Editor& editor = GetDocument().GetFrame()->GetEditor();nit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Editor& editor = GetDocument().GetFrame()->GetEditor();nit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Editor& editor = GetDocument().GetFrame()->GetEditor();nit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Please add a new flag to runtime_enabled_features.json5, and enable the new code only if the flag is enabled.
https://chromium.googlesource.com/chromium/src/+/main/docs/flag_guarding_guidelines.md
Done. Added TargetRangesForBackwardDeletionUnit to runtime_enabled_features.json5 with status: "stable" and gated the new code on it, so it's enabled by default and acts as a kill switch.
cluster behind the caret, while Backspace deletes only a part of it. nit: Remove the tailing whitespace.
Done.
Move the narrowing that TypingCommand already does into
editing_utilities as NarrowSelectionToBackwardDeletionUnit() and nit: Remove the tailing whitespaces.
Done.
Editor& editor = GetDocument().GetFrame()->GetEditor();Navoda Munasinhanit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Done.
Editor& editor = GetDocument().GetFrame()->GetEditor();Navoda Munasinhanit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Done.
Editor& editor = GetDocument().GetFrame()->GetEditor();Navoda Munasinhanit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Done.
Editor& editor = GetDocument().GetFrame()->GetEditor();Navoda Munasinhanit: `GetDocument().GetFrame()->` ➜ `GetFrame().`
Done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const SelectionInDomTree& adjusted =Should we add a check for `RuntimeEnabledFeatures::TargetRangesForBackwardDeletionUnitEnabled()`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const SelectionInDomTree& adjusted =Should we add a check for `RuntimeEnabledFeatures::TargetRangesForBackwardDeletionUnitEnabled()`?
Not here. this call isn't new behavior. The same narrowing was already inline in this function (PreviousPositionOf(end, kBackwardDeletion)); the CL just moves it into the shared helper, so deletion is unchanged either way.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
const SelectionInDomTree& adjusted =Navoda MunasinhaShould we add a check for `RuntimeEnabledFeatures::TargetRangesForBackwardDeletionUnitEnabled()`?
Not here. this call isn't new behavior. The same narrowing was already inline in this function (PreviousPositionOf(end, kBackwardDeletion)); the CL just moves it into the shared helper, so deletion is unchanged either way.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
sorry for not getting to this this week; transferring the request so hopefully it can happen early next week
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks David, and no worries at all. enjoy your time off.
Joey, whenever you have a chance, could you please take a look at patch set 5? Thank you!
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |