mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
remove more heapsize ignores
This commit is contained in:
parent
a5975e8f33
commit
5447d2af3d
6 changed files with 10 additions and 15 deletions
|
@ -24,7 +24,7 @@ use text::glyph::CharIndex;
|
|||
use text::TextRun;
|
||||
|
||||
use azure::azure::AzFloat;
|
||||
use azure::azure_hl::{Color};
|
||||
use azure::azure_hl::Color;
|
||||
|
||||
use collections::linked_list::{self, LinkedList};
|
||||
use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D};
|
||||
|
@ -798,7 +798,6 @@ pub struct SolidColorDisplayItem {
|
|||
pub base: BaseDisplayItem,
|
||||
|
||||
/// The color.
|
||||
#[ignore_heap_size]
|
||||
pub color: Color,
|
||||
}
|
||||
|
||||
|
@ -813,11 +812,9 @@ pub struct TextDisplayItem {
|
|||
pub text_run: Arc<Box<TextRun>>,
|
||||
|
||||
/// The range of text within the text run.
|
||||
#[ignore_heap_size]
|
||||
pub range: Range<CharIndex>,
|
||||
|
||||
/// The color of the text.
|
||||
#[ignore_heap_size]
|
||||
pub text_color: Color,
|
||||
|
||||
/// The position of the start of the baseline of this text.
|
||||
|
@ -897,11 +894,9 @@ pub struct BorderDisplayItem {
|
|||
pub border_widths: SideOffsets2D<Au>,
|
||||
|
||||
/// Border colors.
|
||||
#[ignore_heap_size]
|
||||
pub color: SideOffsets2D<Color>,
|
||||
|
||||
/// Border styles.
|
||||
#[ignore_heap_size]
|
||||
pub style: SideOffsets2D<border_style::T>,
|
||||
|
||||
/// Border radii.
|
||||
|
@ -948,11 +943,9 @@ pub struct LineDisplayItem {
|
|||
pub base: BaseDisplayItem,
|
||||
|
||||
/// The line segment color.
|
||||
#[ignore_heap_size]
|
||||
pub color: Color,
|
||||
|
||||
/// The line segment style.
|
||||
#[ignore_heap_size]
|
||||
pub style: border_style::T
|
||||
}
|
||||
|
||||
|
@ -969,7 +962,6 @@ pub struct BoxShadowDisplayItem {
|
|||
pub offset: Point2D<Au>,
|
||||
|
||||
/// The color of this shadow.
|
||||
#[ignore_heap_size]
|
||||
pub color: Color,
|
||||
|
||||
/// The blur radius for this shadow.
|
||||
|
|
|
@ -519,6 +519,7 @@ int_range_index! {
|
|||
#[derive(RustcEncodable)]
|
||||
#[doc = "An index that refers to a character in a text run. This could \
|
||||
point to the middle of a glyph."]
|
||||
#[derive(HeapSizeOf)]
|
||||
struct CharIndex(isize)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue