mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Move util::logical_geometry to style
This commit is contained in:
parent
63dc161b77
commit
db8d502f41
27 changed files with 32 additions and 34 deletions
|
@ -55,6 +55,7 @@ pub mod dom;
|
|||
pub mod element_state;
|
||||
pub mod error_reporting;
|
||||
pub mod font_face;
|
||||
pub mod logical_geometry;
|
||||
pub mod matching;
|
||||
pub mod media_queries;
|
||||
pub mod parallel;
|
||||
|
|
1040
components/style/logical_geometry.rs
Normal file
1040
components/style/logical_geometry.rs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -22,12 +22,12 @@ use cssparser::{Parser, Color, RGBA, AtRuleParser, DeclarationParser, Delimiter,
|
|||
DeclarationListParser, parse_important, ToCss, TokenSerializationType};
|
||||
use error_reporting::ParseErrorReporter;
|
||||
use url::Url;
|
||||
use util::logical_geometry::{LogicalMargin, PhysicalSide, WritingMode};
|
||||
use euclid::SideOffsets2D;
|
||||
use euclid::size::Size2D;
|
||||
use fnv::FnvHasher;
|
||||
use string_cache::Atom;
|
||||
use computed_values;
|
||||
use logical_geometry::{LogicalMargin, PhysicalSide, WritingMode};
|
||||
use parser::{ParserContext, log_css_error};
|
||||
use selectors::matching::DeclarationBlock;
|
||||
use stylesheets::Origin;
|
||||
|
@ -6365,7 +6365,7 @@ impl ComputedValues {
|
|||
|
||||
/// Return a WritingMode bitflags from the relevant CSS properties.
|
||||
pub fn get_writing_mode(inheritedbox_style: &style_structs::InheritedBox) -> WritingMode {
|
||||
use util::logical_geometry;
|
||||
use logical_geometry;
|
||||
let mut flags = WritingMode::empty();
|
||||
match inheritedbox_style.direction {
|
||||
computed_values::direction::T::ltr => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue