mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Move util::range into its own crate
This commit is contained in:
parent
455ed0ae6d
commit
205336bf2e
21 changed files with 96 additions and 26 deletions
|
@ -4,12 +4,12 @@
|
|||
|
||||
use app_units::Au;
|
||||
use euclid::point::Point2D;
|
||||
use range::{self, EachIndex, Range, RangeIndex};
|
||||
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
|
||||
use simd::u32x4;
|
||||
use std::cmp::{Ordering, PartialOrd};
|
||||
use std::vec::Vec;
|
||||
use std::{fmt, mem, u16};
|
||||
use util::range::{self, EachIndex, Range, RangeIndex};
|
||||
use util::vec::*;
|
||||
|
||||
/// GlyphEntry is a port of Gecko's CompressedGlyph scheme for storing glyph data compactly.
|
||||
|
|
|
@ -34,11 +34,11 @@ use harfbuzz::{hb_glyph_position_t};
|
|||
use harfbuzz::{hb_position_t, hb_tag_t};
|
||||
use libc::{c_char, c_int, c_uint, c_void};
|
||||
use platform::font::FontTable;
|
||||
use range::Range;
|
||||
use std::{char, cmp, ptr};
|
||||
use text::glyph::{CharIndex, GlyphData, GlyphId, GlyphStore};
|
||||
use text::shaping::ShaperMethods;
|
||||
use text::util::{fixed_to_float, float_to_fixed, is_bidi_control};
|
||||
use util::range::Range;
|
||||
|
||||
macro_rules! hb_tag {
|
||||
($t1:expr, $t2:expr, $t3:expr, $t4:expr) => (
|
||||
|
|
|
@ -6,12 +6,12 @@ use app_units::Au;
|
|||
use font::{Font, FontHandleMethods, FontMetrics, IS_WHITESPACE_SHAPING_FLAG, RunMetrics};
|
||||
use font::{ShapingOptions};
|
||||
use platform::font_template::FontTemplateData;
|
||||
use range::Range;
|
||||
use std::cell::Cell;
|
||||
use std::cmp::{Ordering, max};
|
||||
use std::slice::Iter;
|
||||
use std::sync::Arc;
|
||||
use text::glyph::{CharIndex, GlyphStore};
|
||||
use util::range::Range;
|
||||
use util::vec::{Comparator, FullBinarySearchMethods};
|
||||
use webrender_traits;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue