Bug 1470105: Fix a typo in stylesheet cloning. r=jwatt
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 21 Jun 2018 12:31:10 +0200
changeset 477500 f5b8b5dbf6787ffe5317cec0aecd00dc1d95845d
parent 477499 412d616528061512809285bce66dc6457fdd02ee
child 477501 688b3d9f8611dfb00a99e631538d2cfe5135ac7b
push id9385
push userdluca@mozilla.com
push dateFri, 22 Jun 2018 15:47:18 +0000
treeherdermozilla-beta@82a9a1027e2b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1470105
milestone62.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
Bug 1470105: Fix a typo in stylesheet cloning. r=jwatt Summary: Just something I noticed while writing unrelated code. Reviewers: jwatt Bug #: 1470105 Differential Revision: https://phabricator.services.mozilla.com/D1747 MozReview-Commit-ID: 7KMTT9Kmdwc
servo/components/style/stylesheets/stylesheet.rs
--- a/servo/components/style/stylesheets/stylesheet.rs
+++ b/servo/components/style/stylesheets/stylesheet.rs
@@ -132,17 +132,17 @@ impl DeepCloneWithLock for StylesheetCon
 
         Self {
             rules: Arc::new(lock.wrap(rules)),
             quirks_mode: self.quirks_mode,
             origin: self.origin,
             url_data: RwLock::new((*self.url_data.read()).clone()),
             namespaces: RwLock::new((*self.namespaces.read()).clone()),
             source_map_url: RwLock::new((*self.source_map_url.read()).clone()),
-            source_url: RwLock::new((*self.source_map_url.read()).clone()),
+            source_url: RwLock::new((*self.source_url.read()).clone()),
         }
     }
 }
 
 /// The structure servo uses to represent a stylesheet.
 #[derive(Debug)]
 pub struct Stylesheet {
     /// The contents of this stylesheet.