servo: Merge #17005 - stylo: Fixup an embarrassing typo that has turned everything orange (from emilio:backdrop-fixup); r=emilio
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 23 May 2017 10:50:13 -0500
changeset 360193 dc4a1f0c707816ff379ef0a64177cb91df1c7b8d
parent 360192 8de0faf80ef0e06273878a830653645593660da2
child 360194 34a21fcbc846f5efdd558dcf3cd108bd8ed52d61
push id31871
push userryanvm@gmail.com
push dateTue, 23 May 2017 22:02:07 +0000
treeherdermozilla-central@545ffce30eac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
servo: Merge #17005 - stylo: Fixup an embarrassing typo that has turned everything orange (from emilio:backdrop-fixup); r=emilio I messed up when turning the conditions the other way around in #16981. Source-Repo: https://github.com/servo/servo Source-Revision: 5e58c522723a8d5aa819012cf700df87c9279778
servo/components/style/gecko/pseudo_element.rs
--- a/servo/components/style/gecko/pseudo_element.rs
+++ b/servo/components/style/gecko/pseudo_element.rs
@@ -50,17 +50,17 @@ impl PseudoElement {
     }
 
     /// Whether the pseudo-element should inherit from the default computed
     /// values instead of from the parent element.
     ///
     /// This is not the common thing, but there are some pseudos (namely:
     /// ::backdrop), that shouldn't inherit from the parent element.
     pub fn inherits_from_default_values(&self) -> bool {
-        !matches!(*self, PseudoElement::Backdrop)
+        matches!(*self, PseudoElement::Backdrop)
     }
 
     /// Gets the canonical index of this eagerly-cascaded pseudo-element.
     #[inline]
     pub fn eager_index(&self) -> usize {
         EAGER_PSEUDOS.iter().position(|p| p == self)
             .expect("Not an eager pseudo")
     }