mirror of
https://github.com/servo/servo.git
synced 2025-06-15 03:44:30 +00:00
`cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
68 lines
1.6 KiB
Rust
68 lines
1.6 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(plugin)]
|
|
#![feature(int_uint)]
|
|
#![feature(box_syntax)]
|
|
#![feature(core)]
|
|
#![feature(std_misc)]
|
|
#![feature(collections)]
|
|
#![feature(rustc_private)]
|
|
|
|
#![allow(missing_copy_implementations)]
|
|
|
|
#[macro_use] extern crate log;
|
|
#[macro_use] extern crate bitflags;
|
|
#[no_link] #[macro_use] #[plugin] extern crate string_cache_macros;
|
|
|
|
extern crate collections;
|
|
extern crate geom;
|
|
extern crate text_writer;
|
|
extern crate url;
|
|
|
|
#[macro_use]
|
|
extern crate cssparser;
|
|
|
|
#[macro_use]
|
|
extern crate matches;
|
|
|
|
extern crate encoding;
|
|
extern crate "rustc-serialize" as rustc_serialize;
|
|
extern crate string_cache;
|
|
extern crate selectors;
|
|
|
|
#[macro_use]
|
|
extern crate lazy_static;
|
|
|
|
extern crate util;
|
|
|
|
#[plugin] #[no_link] extern crate mod_path;
|
|
|
|
|
|
pub mod stylesheets;
|
|
pub mod parser;
|
|
pub mod selector_matching;
|
|
#[macro_use] pub mod values;
|
|
|
|
// Generated from the properties.mako.rs template by build.rs
|
|
mod_path! properties (concat!(env!("OUT_DIR"), "/properties.rs"));
|
|
|
|
pub mod node;
|
|
pub mod media_queries;
|
|
pub mod font_face;
|
|
pub mod legacy;
|
|
|
|
macro_rules! reexport_computed_values {
|
|
( $( $name: ident )+ ) => {
|
|
pub mod computed_values {
|
|
$(
|
|
pub use properties::longhands::$name::computed_value as $name;
|
|
)+
|
|
// Don't use a side-specific name needlessly:
|
|
pub use properties::longhands::border_top_style::computed_value as border_style;
|
|
}
|
|
}
|
|
}
|
|
longhand_properties_idents!(reexport_computed_values);
|
|
|