forked from mirrors/gecko-dev
<!-- Please describe your changes on the following line: --> Migrated the trace-layout code from old `rustc-serialize` to `serde_json`. This will help us iterate faster on the layout viewer (#13432), #13436, #12675 and fix #12936. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #12936 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's a relatively low risk debug tool <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 1c26f44cbb23e7da3b9d63f0223c8d5d43eec958
104 lines
2.1 KiB
Rust
104 lines
2.1 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#![feature(box_patterns)]
|
|
#![feature(box_syntax)]
|
|
#![feature(conservative_impl_trait)]
|
|
#![feature(nonzero)]
|
|
#![feature(plugin)]
|
|
#![feature(proc_macro)]
|
|
#![feature(raw)]
|
|
#![feature(step_by)]
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
#![plugin(plugins)]
|
|
|
|
extern crate app_units;
|
|
#[allow(unused_extern_crates)]
|
|
#[macro_use]
|
|
extern crate bitflags;
|
|
extern crate canvas_traits;
|
|
extern crate core;
|
|
extern crate cssparser;
|
|
extern crate euclid;
|
|
extern crate fnv;
|
|
extern crate gfx;
|
|
extern crate gfx_traits;
|
|
extern crate heapsize;
|
|
#[macro_use] extern crate heapsize_derive;
|
|
#[macro_use] extern crate html5ever_atoms;
|
|
extern crate ipc_channel;
|
|
extern crate libc;
|
|
#[macro_use]
|
|
extern crate log;
|
|
extern crate msg;
|
|
extern crate net_traits;
|
|
extern crate ordered_float;
|
|
extern crate parking_lot;
|
|
#[macro_use]
|
|
#[no_link]
|
|
extern crate plugins as servo_plugins;
|
|
#[macro_use]
|
|
extern crate profile_traits;
|
|
#[macro_use]
|
|
extern crate range;
|
|
extern crate script_layout_interface;
|
|
extern crate script_traits;
|
|
extern crate serde;
|
|
#[macro_use]
|
|
extern crate serde_derive;
|
|
extern crate serde_json;
|
|
#[macro_use] extern crate servo_atoms;
|
|
extern crate smallvec;
|
|
extern crate style;
|
|
extern crate style_traits;
|
|
extern crate unicode_bidi;
|
|
extern crate unicode_script;
|
|
extern crate url;
|
|
extern crate util;
|
|
extern crate webrender_traits;
|
|
|
|
#[macro_use]
|
|
pub mod layout_debug;
|
|
|
|
pub mod animation;
|
|
mod block;
|
|
pub mod construct;
|
|
pub mod context;
|
|
mod data;
|
|
pub mod display_list_builder;
|
|
mod flex;
|
|
mod floats;
|
|
pub mod flow;
|
|
mod flow_list;
|
|
pub mod flow_ref;
|
|
mod fragment;
|
|
mod generated_content;
|
|
pub mod incremental;
|
|
mod inline;
|
|
mod linked_list;
|
|
mod list_item;
|
|
mod model;
|
|
mod multicol;
|
|
mod opaque_node;
|
|
pub mod parallel;
|
|
mod persistent_list;
|
|
pub mod query;
|
|
pub mod sequential;
|
|
mod table;
|
|
mod table_caption;
|
|
mod table_cell;
|
|
mod table_colgroup;
|
|
mod table_row;
|
|
mod table_rowgroup;
|
|
mod table_wrapper;
|
|
mod text;
|
|
pub mod traversal;
|
|
pub mod webrender_helpers;
|
|
pub mod wrapper;
|
|
|
|
// For unit tests:
|
|
pub use fragment::Fragment;
|
|
pub use fragment::SpecificFragmentInfo;
|