mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #15822 - charlesvdv:unicode-panic, r=emilio
Correct unicode handling for text input <!-- Please describe your changes on the following line: --> Allow proprer handling of unicode sequence in text input. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15819 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15822) <!-- Reviewable:end -->
This commit is contained in:
commit
e45546edf0
3 changed files with 23 additions and 7 deletions
|
@ -1117,7 +1117,7 @@ impl VirtualMethods for HTMLInputElement {
|
|||
translated_y
|
||||
);
|
||||
if let Some(i) = index {
|
||||
self.textinput.borrow_mut().edit_point.index = i as usize;
|
||||
self.textinput.borrow_mut().set_edit_point_index(i as usize);
|
||||
// trigger redraw
|
||||
self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
||||
event.PreventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue