mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Audit and reduce unstable usage in layout
Reasons behind existing unstable features: alloc: - `make_unique()` - direct calls into `heap::allocate()`, etc - `boxed::into_raw()` (naming) collections: - `slice_chars()` (needs to prove its worth) core: - lots and lots of pointer manip - `raw` stuff std_misc: - Handle stuff - hasher stuff str_char: - CharRange
This commit is contained in:
parent
89d4ee88f4
commit
af364a412e
3 changed files with 2 additions and 4 deletions
|
@ -17,7 +17,6 @@ use layout_debug;
|
||||||
use model::IntrinsicISizesContribution;
|
use model::IntrinsicISizesContribution;
|
||||||
use text;
|
use text;
|
||||||
|
|
||||||
use collections::VecDeque;
|
|
||||||
use geom::{Point2D, Rect, Size2D};
|
use geom::{Point2D, Rect, Size2D};
|
||||||
use gfx::display_list::OpaqueNode;
|
use gfx::display_list::OpaqueNode;
|
||||||
use gfx::font::FontMetrics;
|
use gfx::font::FontMetrics;
|
||||||
|
@ -25,6 +24,7 @@ use gfx::font_context::FontContext;
|
||||||
use gfx::text::glyph::CharIndex;
|
use gfx::text::glyph::CharIndex;
|
||||||
use gfx::text::text_run::TextRun;
|
use gfx::text::text_run::TextRun;
|
||||||
use std::cmp::max;
|
use std::cmp::max;
|
||||||
|
use std::collections::VecDeque;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
|
@ -861,7 +861,7 @@ impl LayoutTask {
|
||||||
|
|
||||||
if opts::get().dump_display_list {
|
if opts::get().dump_display_list {
|
||||||
println!("#### start printing display list.");
|
println!("#### start printing display list.");
|
||||||
stacking_context.print(String::from_str("#"));
|
stacking_context.print("#".to_owned());
|
||||||
}
|
}
|
||||||
|
|
||||||
rw_data.stacking_context = Some(stacking_context.clone());
|
rw_data.stacking_context = Some(stacking_context.clone());
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![feature(std_misc)]
|
#![feature(std_misc)]
|
||||||
#![feature(str_char)]
|
#![feature(str_char)]
|
||||||
#![feature(thread_local)]
|
|
||||||
#![feature(unsafe_no_drop_flag)]
|
#![feature(unsafe_no_drop_flag)]
|
||||||
|
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
|
@ -40,7 +39,6 @@ extern crate alloc;
|
||||||
extern crate azure;
|
extern crate azure;
|
||||||
extern crate canvas_traits;
|
extern crate canvas_traits;
|
||||||
extern crate clock_ticks;
|
extern crate clock_ticks;
|
||||||
extern crate collections;
|
|
||||||
extern crate cssparser;
|
extern crate cssparser;
|
||||||
extern crate encoding;
|
extern crate encoding;
|
||||||
extern crate geom;
|
extern crate geom;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue