Skip to content

Commit

Permalink
Remove image_data field from display item
Browse files Browse the repository at this point in the history
It was unused.
  • Loading branch information
pyfisch committed Feb 24, 2018
1 parent 279cda6 commit a511513
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions components/gfx/display_list/mod.rs
Expand Up @@ -18,7 +18,6 @@ use euclid::{Vector2D, TypedRect, SideOffsets2D};
use euclid::num::{One, Zero};
use gfx_traits::{self, StackingContextId};
use gfx_traits::print_tree::PrintTree;
use ipc_channel::ipc::IpcSharedMemory;
use msg::constellation_msg::PipelineId;
use net_traits::image::base::{Image, PixelFormat};
use range::Range;
Expand Down Expand Up @@ -683,9 +682,6 @@ pub struct ImageDisplayItem {

pub webrender_image: WebRenderImageInfo,

#[ignore_malloc_size_of = "Because it is non-owning"]
pub image_data: Option<Arc<IpcSharedMemory>>,

/// The dimensions to which the image display item should be stretched. If this is smaller than
/// the bounds of this display item, then the image will be repeated in the appropriate
/// direction to tile the entire bounds.
Expand Down
3 changes: 0 additions & 3 deletions components/layout/display_list/builder.rs
Expand Up @@ -1203,7 +1203,6 @@ impl FragmentDisplayListBuilding for Fragment {
state.add_display_item(DisplayItem::Image(Box::new(ImageDisplayItem {
base: base,
webrender_image: webrender_image,
image_data: None,
stretch_size: placement.tile_size.to_layout(),
tile_spacing: placement.tile_spacing.to_layout(),
image_rendering: style.get_inheritedbox().image_rendering.to_layout(),
Expand Down Expand Up @@ -2000,7 +1999,6 @@ impl FragmentDisplayListBuilding for Fragment {
state.add_display_item(DisplayItem::Image(Box::new(ImageDisplayItem {
base: base,
webrender_image: WebRenderImageInfo::from_image(image),
image_data: Some(Arc::new(image.bytes.clone())),
stretch_size: stacking_relative_content_box.size.to_layout(),
tile_spacing: LayoutSize::zero(),
image_rendering: self.style.get_inheritedbox().image_rendering.to_layout(),
Expand Down Expand Up @@ -2041,7 +2039,6 @@ impl FragmentDisplayListBuilding for Fragment {
format: format,
key: Some(image_key),
},
image_data: None,
stretch_size: stacking_relative_content_box.size.to_layout(),
tile_spacing: LayoutSize::zero(),
image_rendering: ImageRendering::Auto,
Expand Down

0 comments on commit a511513

Please sign in to comment.