mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
For years Servo has had the concept of a focus transaction which was used only to allow falling back to focusing the viewport when focusing a clicked element failed. As this concept isn't part of the specification, this change removes it. Instead, a `FocusableArea` (a specification concept) is passed to the `Document` focusing code. A `FocusableArea` might also be the `Document`'s viewport. As part of this change, some focus-related methods are moved to `Node` from `Element` as the `Document` is not an `Element`. This brings the code closer to implementing the "focusing steps" from the specification. Testing: This should not change behavior and is thus covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
11 lines
408 B
Rust
11 lines
408 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
pub(crate) use self::node::*;
|
|
pub(crate) mod focus;
|
|
#[allow(clippy::module_inception, reason = "The interface name is node")]
|
|
pub(crate) mod node;
|
|
pub(crate) mod nodeiterator;
|
|
pub(crate) mod nodelist;
|