aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-10 08:28:39 -0600
committerGitHub <noreply@github.com>2016-11-10 08:28:39 -0600
commit164e956944db0d1d873d2f6eeb9eb59e3f46dc5f (patch)
treee9af1c38bc3b3182ffa68d7ecd8c2909f15bc829 /components/script/dom
parent89c46369a209462ff38eeb4316ab5fd970c1c5c3 (diff)
parent5f2e7af864e3d190957f58b317bf56cce8a84795 (diff)
downloadservo-164e956944db0d1d873d2f6eeb9eb59e3f46dc5f.tar.gz
servo-164e956944db0d1d873d2f6eeb9eb59e3f46dc5f.zip
Auto merge of #13791 - emilio:lazy-url, r=SimonSapin
Centralize construction of specified url() values in style. This reduces a decent amount of overhead in #13778. r? @SimonSapin --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] There are tests for these changes OR <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/13791) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/element.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index 15a4ef816c8..ac65c01e24c 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -368,7 +368,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
PropertyDeclaration::BackgroundImage(DeclaredValue::Value(
background_image::SpecifiedValue(vec![
background_image::single_value::SpecifiedValue(Some(
- specified::Image::Url(url, specified::UrlExtraData { })
+ specified::Image::for_cascade(Some(Arc::new(url)), specified::url::UrlExtraData { })
))
])))));
}