From 7ca3dfb43f458d86a244b501409a4d88a768bbb2 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 8 Jul 2015 10:43:00 +0200 Subject: [PATCH] Remove ReplacedImageFragmentInfo::for_node. It became unused in d8aef7208e5ed9705f551f0bf0e0cd6607ff224f. --- components/layout/fragment.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index b9a2713b9a4..d4e3c6148fe 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -18,7 +18,6 @@ use inline::{InlineFragmentContext, InlineFragmentNodeInfo, InlineMetrics}; use layout_debug; use model::{self, IntrinsicISizes, IntrinsicISizesContribution, MaybeAuto, specified}; use text; -use opaque_node::OpaqueNodeMethods; use wrapper::ThreadSafeLayoutNode; use euclid::{Point2D, Rect, Size2D}; @@ -29,7 +28,6 @@ use msg::constellation_msg::{ConstellationChan, Msg, PipelineId, SubpageId}; use net_traits::image::base::Image; use net_traits::image_cache_task::UsePlaceholder; use rustc_serialize::{Encodable, Encoder}; -use script_traits::UntrustedNodeAddress; use std::borrow::ToOwned; use std::cmp::{max, min}; use std::collections::LinkedList; @@ -403,7 +401,6 @@ impl ImageFragmentInfo { #[derive(Clone)] pub struct ReplacedImageFragmentInfo { - pub for_node: UntrustedNodeAddress, pub computed_inline_size: Option, pub computed_block_size: Option, pub dom_inline_size: Option, @@ -416,10 +413,7 @@ impl ReplacedImageFragmentInfo { dom_width: Option, dom_height: Option) -> ReplacedImageFragmentInfo { let is_vertical = node.style().writing_mode.is_vertical(); - let untrusted_node = node.opaque().to_untrusted_node_address(); - ReplacedImageFragmentInfo { - for_node: untrusted_node, computed_inline_size: None, computed_block_size: None, dom_inline_size: if is_vertical {