aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/util.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-12-11 19:58:27 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-12-12 14:44:24 -0800
commit4c8383c38b60aad5c8bfb0c094518364e692428e (patch)
tree1df45dbfaa99eda3480c55978b1c82df4aec0edb /src/components/main/layout/util.rs
parent511d2b11d4ba0cd11409ef96ae4354cc28ea462c (diff)
downloadservo-4c8383c38b60aad5c8bfb0c094518364e692428e.tar.gz
servo-4c8383c38b60aad5c8bfb0c094518364e692428e.zip
layout: Reference count `ComputedValues` structures like Gecko does.
This has no difference in CSS selector matching performance and results in a 31% speedup in constraint solving on the rainbow page.
Diffstat (limited to 'src/components/main/layout/util.rs')
-rw-r--r--src/components/main/layout/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/layout/util.rs b/src/components/main/layout/util.rs
index 63594026e04..9fb3257de24 100644
--- a/src/components/main/layout/util.rs
+++ b/src/components/main/layout/util.rs
@@ -127,7 +127,7 @@ pub struct LayoutData {
applicable_declarations: ~[Arc<~[PropertyDeclaration]>],
/// The results of CSS styling for this node.
- style: Option<ComputedValues>,
+ style: Option<Arc<ComputedValues>>,
/// Description of how to account for recent style changes.
restyle_damage: Option<int>,