Move geckolib/values.rs to style/gecko_values.rs

This commit is contained in:
Simon Sapin 2016-07-19 14:40:49 +02:00
parent e945d11fd7
commit 2c1f7c8a85
3 changed files with 8 additions and 5 deletions

View file

@ -2,12 +2,14 @@
* 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/. */
#![allow(unsafe_code)]
use app_units::Au;
use cssparser::RGBA;
use gecko_bindings::structs::{nsStyleCoord, nsStyleUnion, nsStyleUnit};
use std::cmp::max;
use style::values::computed::Angle;
use style::values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto, LengthOrPercentageOrNone};
use values::computed::Angle;
use values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto, LengthOrPercentageOrNone};
pub trait StyleCoordHelpers {
fn copy_from(&mut self, other: &Self);

View file

@ -81,8 +81,8 @@ pub mod dom;
pub mod element_state;
pub mod error_reporting;
pub mod font_face;
#[cfg(feature = "gecko")]
pub mod gecko_conversions;
#[cfg(feature = "gecko")] pub mod gecko_conversions;
#[cfg(feature = "gecko")] pub mod gecko_values;
pub mod keyframes;
pub mod logical_geometry;
pub mod matching;

View file

@ -28,7 +28,6 @@ mod data;
pub mod glue;
mod selector_impl;
mod traversal;
mod values;
mod wrapper;
// Generated from the properties.mako.rs template by build.rs
@ -38,6 +37,8 @@ pub mod properties {
include!(concat!(env!("OUT_DIR"), "/properties.rs"));
}
pub use style::gecko_values as values;
// FIXME(bholley): This should probably go away once we harmonize the allocators.
#[no_mangle]
pub extern "C" fn je_malloc_usable_size(_: *const ::libc::c_void) -> ::libc::size_t { 0 }