aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbodyelement.rs
diff options
context:
space:
mode:
authorStuart Nelson <stuartnelson3@gmail.com>2017-10-05 10:41:49 +0200
committerStuart Nelson <stuartnelson3@gmail.com>2017-10-05 20:51:02 +0200
commit3b4deb4388d6da5ade541a39bfea431bba0d82b3 (patch)
tree1a4544e08e2cefcb9936c269b2ec674bd85d69fe /components/script/dom/htmlbodyelement.rs
parentf2879a568d34ecc8d42de55569813d8a851e904f (diff)
downloadservo-3b4deb4388d6da5ade541a39bfea431bba0d82b3.tar.gz
servo-3b4deb4388d6da5ade541a39bfea431bba0d82b3.zip
Add support for dynamic bgcolor change
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r--components/script/dom/htmlbodyelement.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs
index 4ade5560700..53fb0637b0d 100644
--- a/components/script/dom/htmlbodyelement.rs
+++ b/components/script/dom/htmlbodyelement.rs
@@ -125,6 +125,14 @@ impl VirtualMethods for HTMLBodyElement {
Some(self.upcast::<HTMLElement>() as &VirtualMethods)
}
+ fn attribute_affects_presentational_hints(&self, attr: &Attr) -> bool {
+ if attr.local_name() == &local_name!("bgcolor") {
+ return true;
+ }
+
+ self.super_type().unwrap().attribute_affects_presentational_hints(attr)
+ }
+
fn bind_to_tree(&self, tree_in_doc: bool) {
if let Some(ref s) = self.super_type() {
s.bind_to_tree(tree_in_doc);