aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorClark Gaebel <cgaebel@mozilla.com>2014-10-06 11:40:05 -0400
committerClark Gaebel <cgaebel@mozilla.com>2014-10-09 12:55:21 -0400
commitd12c6e7383e0be0a64a4f00f1416323038516395 (patch)
tree1b959fd51cd51a91a8a562c91423a9af724897bb /components/layout/context.rs
parent510f8a817f8144dd5046886d4ca7c612f19a3d08 (diff)
downloadservo-d12c6e7383e0be0a64a4f00f1416323038516395.tar.gz
servo-d12c6e7383e0be0a64a4f00f1416323038516395.zip
Incremental Style Recalc
This patch puts in the initial framework for incremental reflow. Nodes' styles are no longer recalculated unless the node has changed. I've been hacking on the general problem of incremental reflow for the past couple weeks, and I've yet to get a full implementation that actually passes all the reftests + wikipedia + cnn. Therefore, I'm going to try to land the different parts of it one by one. This patch only does incremental style recalc, without incremental flow construction, inline-size bubbling, reflow, or display lists. Those will be coming in that order as I finish them. At least with this strategy, I can land a working version of incremental reflow, even if not yet complete. r? @pcwalton
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 8792e99d2a6..6b0a61247d8 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -11,6 +11,7 @@ use gfx::display_list::OpaqueNode;
use gfx::font_context::FontContext;
use gfx::font_cache_task::FontCacheTask;
use script::layout_interface::LayoutChan;
+use script_traits::UntrustedNodeAddress;
use servo_msg::constellation_msg::ConstellationChan;
use servo_net::local_image_cache::LocalImageCache;
use servo_util::geometry::Au;
@@ -49,7 +50,7 @@ fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext) -> *
pub struct SharedLayoutContext {
/// The local image cache.
- pub image_cache: Arc<Mutex<LocalImageCache>>,
+ pub image_cache: Arc<Mutex<LocalImageCache<UntrustedNodeAddress>>>,
/// The current screen size.
pub screen_size: Size2D<Au>,