mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Introduce <LayoutDom<Element>>::focus_state
This commit is contained in:
parent
295f120425
commit
28e5abe606
3 changed files with 14 additions and 2 deletions
|
@ -780,7 +780,7 @@ impl<'dom> LayoutHTMLInputElementHelpers<'dom> for LayoutDom<'dom, HTMLInputElem
|
|||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn selection_for_layout(self) -> Option<Range<usize>> {
|
||||
if !(*self.unsafe_get()).upcast::<Element>().focus_state() {
|
||||
if !self.upcast::<Element>().focus_state() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue