Set the dirty flag of DeclarationBlock when the DeclarationBlock is modified and clear the flag when it's resyled.

This commit is contained in:
Hiroyuki Ikezoe 2017-05-31 05:48:25 +09:00
parent 011a7adf56
commit 636c47da29
3 changed files with 16 additions and 0 deletions

View file

@ -329,6 +329,11 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
/// Get this element's style attribute.
fn style_attribute(&self) -> Option<&Arc<Locked<PropertyDeclarationBlock>>>;
/// Unset the style attribute's dirty bit.
/// Servo doesn't need to manage ditry bit for style attribute.
fn unset_dirty_style_attribute(&self) {
}
/// Get this element's SMIL override declarations.
fn get_smil_override(&self) -> Option<&Arc<Locked<PropertyDeclarationBlock>>> {
None