mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
parent
72ead882c0
commit
fc25397c91
10 changed files with 101 additions and 120 deletions
|
@ -13,11 +13,11 @@ use selectors::matching::DeclarationBlock;
|
|||
pub use selectors::tree::{TNode, TElement};
|
||||
use string_cache::{Atom, Namespace};
|
||||
|
||||
pub trait TElementAttributes<'a> : Copy {
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(self, &mut V)
|
||||
pub trait TElementAttributes {
|
||||
fn synthesize_presentational_hints_for_legacy_attributes<V>(&self, &mut V)
|
||||
where V: VecLike<DeclarationBlock<Vec<PropertyDeclaration>>>;
|
||||
fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute) -> Option<u32>;
|
||||
fn get_unsigned_integer_attribute(&self, attribute: UnsignedIntegerAttribute) -> Option<u32>;
|
||||
|
||||
fn get_attr(self, namespace: &Namespace, attr: &Atom) -> Option<&'a str>;
|
||||
fn get_attrs(self, attr: &Atom) -> Vec<&'a str>;
|
||||
fn get_attr<'a>(&'a self, namespace: &Namespace, attr: &Atom) -> Option<&'a str>;
|
||||
fn get_attrs<'a>(&'a self, attr: &Atom) -> Vec<&'a str>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue