From e5cab3667165765669f2546aa683cfe73e0494af Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 14 Jun 2016 16:05:08 +0100 Subject: Move ByteIndex to gfx_traits. --- components/gfx/text/glyph.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'components/gfx/text') diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs index fe9dc415625..9e5e7cf732e 100644 --- a/components/gfx/text/glyph.rs +++ b/components/gfx/text/glyph.rs @@ -11,6 +11,8 @@ use std::cmp::{Ordering, PartialOrd}; use std::vec::Vec; use std::{fmt, mem, u16}; +pub use gfx_traits::ByteIndex; + /// GlyphEntry is a port of Gecko's CompressedGlyph scheme for storing glyph data compactly. /// /// In the common case (reasonable glyph advances, no offsets from the font em-box, and one glyph @@ -426,14 +428,6 @@ pub struct GlyphStore { is_rtl: bool, } -int_range_index! { - #[derive(Deserialize, Serialize, RustcEncodable)] - #[doc = "An index that refers to a byte offset in a text run. This could \ - point to the middle of a glyph."] - #[derive(HeapSizeOf)] - struct ByteIndex(isize) -} - impl<'a> GlyphStore { /// Initializes the glyph store, but doesn't actually shape anything. /// -- cgit v1.2.3