mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Further changes required by Servo
This commit is contained in:
parent
017036dba8
commit
9822db5d3c
4 changed files with 18 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
use crate::dom::attr::AttrHelpersForLayout;
|
||||
use crate::dom::bindings::inheritance::{
|
||||
CharacterDataTypeId, DocumentFragmentTypeId, ElementTypeId,
|
||||
};
|
||||
|
@ -264,6 +265,16 @@ impl<'dom, LayoutDataType: LayoutDataTrait> style::dom::TElement
|
|||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
fn each_attr_name<F>(&self, mut callback: F)
|
||||
where
|
||||
F: FnMut(&style::LocalName),
|
||||
{
|
||||
for attr in self.element.attrs() {
|
||||
callback(style::values::GenericAtomIdent::cast(attr.local_name()))
|
||||
}
|
||||
}
|
||||
|
||||
fn has_dirty_descendants(&self) -> bool {
|
||||
unsafe {
|
||||
self.as_node()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue