Handle dynamic font color change

This commit is contained in:
P. Albrecht 2017-09-07 11:24:34 +02:00
parent 54cd23adb8
commit 8161d1931d
7 changed files with 80 additions and 4 deletions

View file

@ -88,6 +88,7 @@ use dom::touchevent::TouchEvent;
use dom::touchlist::TouchList;
use dom::treewalker::TreeWalker;
use dom::uievent::UIEvent;
use dom::virtualmethods::vtable_for;
use dom::webglcontextevent::WebGLContextEvent;
use dom::window::{ReflowReason, Window};
use dom::windowproxy::WindowProxy;
@ -2499,10 +2500,7 @@ impl Document {
entry.hint.insert(RESTYLE_STYLE_ATTRIBUTE);
}
// FIXME(emilio): This should become something like
// element.is_attribute_mapped(attr.local_name()).
if attr.local_name() == &local_name!("width") ||
attr.local_name() == &local_name!("height") {
if vtable_for(el.upcast()).attribute_is_mapped(attr) {
entry.hint.insert(RESTYLE_SELF);
}