Auto merge of #12993 - servo:ua-stylesheets, r=nox

Move the user agent and user stylesheets to layout_thread.

<!-- 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/12993)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-08-23 08:34:04 -05:00 committed by GitHub
commit 8e890be2c6
9 changed files with 78 additions and 95 deletions

1
ports/cef/Cargo.lock generated
View file

@ -1100,6 +1100,7 @@ dependencies = [
"ipc-channel 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
"layout 0.0.1",
"layout_traits 0.0.1",
"lazy_static 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
"msg 0.0.1",
"net_traits 0.0.1",

View file

@ -83,7 +83,7 @@ impl PerDocumentStyleData {
// need to detect the latter case and trigger a flush as well.
if self.stylesheets_changed {
let _ = Arc::get_mut(&mut self.stylist).unwrap()
.update(&self.stylesheets, true);
.update(&self.stylesheets, None, true);
self.stylesheets_changed = false;
}
}