aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-06-23 11:37:23 -0700
committerGitHub <noreply@github.com>2017-06-23 11:37:23 -0700
commit7e493529f0eca00b92274a047f843b990e6bd1a9 (patch)
treebf94917cae60226060c036ac3306e9706ad05ca6 /components
parent3e4021ef1aaba9b58ffe57b74dc0012ddfcffe12 (diff)
parent80dee7a65f8b4b7d1d93c92e4641c70633734803 (diff)
downloadservo-7e493529f0eca00b92274a047f843b990e6bd1a9.tar.gz
servo-7e493529f0eca00b92274a047f843b990e6bd1a9.zip
Auto merge of #17259 - jyc:new-CSSStyleSheet, r=emilio
Force HTMLStyleElement to create a new CSSStyleSheet when re-parsing. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because I'm pushing to find out what test results this changes; this is part of a series of PRs to fix bug #17182 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17259) <!-- Reviewable:end -->
Diffstat (limited to 'components')
-rw-r--r--components/script/dom/htmlstyleelement.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs
index bf4266e1875..bbce33f3d52 100644
--- a/components/script/dom/htmlstyleelement.rs
+++ b/components/script/dom/htmlstyleelement.rs
@@ -111,6 +111,7 @@ impl HTMLStyleElement {
win.layout_chan().send(Msg::AddStylesheet(sheet.clone())).unwrap();
*self.stylesheet.borrow_mut() = Some(sheet);
+ self.cssom_stylesheet.set(None);
doc.invalidate_stylesheets();
}