Bug 1366427: Make backdrop not inherit from the parent element. r=heycam

MozReview-Commit-ID: EnnmvDsgbdx
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-05-20 11:56:48 +02:00
parent 3d40b516c8
commit 71dbc6c023
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 17 additions and 4 deletions

View file

@ -1205,7 +1205,11 @@ fn get_pseudo_style(guard: &SharedRwLockReadGuard,
PseudoElementCascadeType::Precomputed => unreachable!("No anonymous boxes"),
PseudoElementCascadeType::Lazy => {
let d = doc_data.borrow_mut();
let base = styles.primary.values();
let base = if pseudo.inherits_from_default_values() {
d.default_computed_values()
} else {
styles.primary.values()
};
let guards = StylesheetGuards::same(guard);
let metrics = get_metrics_provider_for_product();
d.stylist.lazily_compute_pseudo_element_style(&guards,