mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Format style component.
This commit is contained in:
parent
31fc6cd565
commit
8dab4d659a
120 changed files with 2207 additions and 1417 deletions
|
@ -42,7 +42,10 @@ use traversal_flags::TraversalFlags;
|
|||
/// data structures. Also, layout code tends to be faster when the DOM is not being accessed, for
|
||||
/// locality reasons. Using `OpaqueNode` enforces this invariant.
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||
#[cfg_attr(feature = "servo", derive(MallocSizeOf, Deserialize, Serialize))]
|
||||
#[cfg_attr(
|
||||
feature = "servo",
|
||||
derive(MallocSizeOf, Deserialize, Serialize)
|
||||
)]
|
||||
pub struct OpaqueNode(pub usize);
|
||||
|
||||
impl OpaqueNode {
|
||||
|
@ -459,7 +462,9 @@ pub trait TElement:
|
|||
fn is_svg_element(&self) -> bool;
|
||||
|
||||
/// Return whether this element is an element in the XUL namespace.
|
||||
fn is_xul_element(&self) -> bool { false }
|
||||
fn is_xul_element(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Return the list of slotted nodes of this node.
|
||||
fn slotted_nodes(&self) -> &[Self::ConcreteNode] {
|
||||
|
@ -892,11 +897,7 @@ pub trait TElement:
|
|||
/// of the `xml:lang=""` or `lang=""` attribute to use in place of
|
||||
/// looking at the element and its ancestors. (This argument is used
|
||||
/// to implement matching of `:lang()` against snapshots.)
|
||||
fn match_element_lang(
|
||||
&self,
|
||||
override_lang: Option<Option<AttrValue>>,
|
||||
value: &Lang,
|
||||
) -> bool;
|
||||
fn match_element_lang(&self, override_lang: Option<Option<AttrValue>>, value: &Lang) -> bool;
|
||||
|
||||
/// Returns whether this element is the main body element of the HTML
|
||||
/// document it is on.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue