mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Remove the rustc-serialize dependency from gfx_traits.
This commit is contained in:
parent
137b277f1e
commit
d12b385b41
3 changed files with 2 additions and 5 deletions
|
@ -14,7 +14,6 @@ extern crate heapsize;
|
|||
#[macro_use] extern crate heapsize_derive;
|
||||
#[macro_use]
|
||||
extern crate range;
|
||||
extern crate rustc_serialize;
|
||||
extern crate serde;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
@ -41,7 +40,7 @@ const SPECIAL_STACKING_CONTEXT_ID_MASK: usize = 0xffff;
|
|||
/// One hardware pixel.
|
||||
///
|
||||
/// This unit corresponds to the smallest addressable element of the display hardware.
|
||||
#[derive(Copy, Clone, RustcEncodable, Debug)]
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
pub enum DevicePixel {}
|
||||
|
||||
/// A newtype struct for denoting the age of messages; prevents race conditions.
|
||||
|
@ -172,7 +171,7 @@ impl FragmentType {
|
|||
}
|
||||
|
||||
int_range_index! {
|
||||
#[derive(Deserialize, Serialize, RustcEncodable)]
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[doc = "An index that refers to a byte offset in a text run. This could \
|
||||
point to the middle of a glyph."]
|
||||
#[derive(HeapSizeOf)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue