Skip to content

Commit

Permalink
Get rid of servo_util
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanfox committed Mar 5, 2015
1 parent 19686ac commit 559ff68
Show file tree
Hide file tree
Showing 25 changed files with 68 additions and 68 deletions.
6 changes: 3 additions & 3 deletions components/layout/block.rs
Expand Up @@ -53,9 +53,9 @@ use gfx::display_list::{ClippingRegion, DisplayList};
use rustc_serialize::{Encoder, Encodable};
use msg::compositor_msg::LayerId;
use msg::constellation_msg::ConstellationChan;
use servo_util::geometry::{Au, MAX_AU};
use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use servo_util::opts;
use util::geometry::{Au, MAX_AU};
use util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use util::opts;
use std::cmp::{max, min};
use std::fmt;
use style::computed_values::{overflow_x, overflow_y, position, box_sizing, display, float};
Expand Down
2 changes: 1 addition & 1 deletion components/layout/construct.rs
Expand Up @@ -50,7 +50,7 @@ use script::dom::element::ElementTypeId;
use script::dom::htmlelement::HTMLElementTypeId;
use script::dom::htmlobjectelement::is_image_data;
use script::dom::node::NodeTypeId;
use servo_util::opts;
use util::opts;
use std::borrow::ToOwned;
use std::collections::DList;
use std::mem;
Expand Down
2 changes: 1 addition & 1 deletion components/layout/context.rs
Expand Up @@ -16,7 +16,7 @@ use script::layout_interface::LayoutChan;
use script_traits::UntrustedNodeAddress;
use msg::constellation_msg::ConstellationChan;
use net::local_image_cache::LocalImageCache;
use servo_util::geometry::Au;
use util::geometry::Au;
use std::boxed;
use std::cell::Cell;
use std::ptr;
Expand Down
6 changes: 3 additions & 3 deletions components/layout/css/matching.rs
Expand Up @@ -13,9 +13,9 @@ use wrapper::{LayoutElement, LayoutNode, TLayoutNode};

use script::dom::node::NodeTypeId;
use selectors::bloom::BloomFilter;
use servo_util::cache::{LRUCache, SimpleHashCache};
use servo_util::smallvec::{SmallVec, SmallVec16};
use servo_util::arc_ptr_eq;
use util::cache::{LRUCache, SimpleHashCache};
use util::smallvec::{SmallVec, SmallVec16};
use util::arc_ptr_eq;
use std::borrow::ToOwned;
use std::mem;
use std::hash::{Hash, Hasher, Writer};
Expand Down
8 changes: 4 additions & 4 deletions components/layout/display_list_builder.rs
Expand Up @@ -37,10 +37,10 @@ use msg::compositor_msg::ScrollPolicy;
use msg::constellation_msg::Msg as ConstellationMsg;
use msg::constellation_msg::ConstellationChan;
use net::image::holder::ImageHolder;
use servo_util::cursor::Cursor;
use servo_util::geometry::{self, Au, ZERO_POINT, to_px, to_frac_px};
use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use servo_util::opts;
use util::cursor::Cursor;
use util::geometry::{self, Au, ZERO_POINT, to_px, to_frac_px};
use util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use util::opts;
use std::cmp;
use std::default::Default;
use std::iter::repeat;
Expand Down
8 changes: 4 additions & 4 deletions components/layout/floats.rs
Expand Up @@ -2,10 +2,10 @@
* 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/. */

use servo_util::geometry::Au;
use servo_util::logical_geometry::WritingMode;
use servo_util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use servo_util::persistent_list::PersistentList;
use util::geometry::Au;
use util::logical_geometry::WritingMode;
use util::logical_geometry::{LogicalPoint, LogicalRect, LogicalSize};
use util::persistent_list::PersistentList;
use std::cmp::{max, min};
use std::i32;
use std::fmt;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/flow.rs
Expand Up @@ -51,8 +51,8 @@ use gfx::display_list::ClippingRegion;
use rustc_serialize::{Encoder, Encodable};
use msg::constellation_msg::ConstellationChan;
use msg::compositor_msg::LayerId;
use servo_util::geometry::{Au, ZERO_RECT};
use servo_util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use util::geometry::{Au, ZERO_RECT};
use util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use std::mem;
use std::fmt;
use std::iter::Zip;
Expand Down
10 changes: 5 additions & 5 deletions components/layout/fragment.rs
Expand Up @@ -33,11 +33,11 @@ use rustc_serialize::{Encodable, Encoder};
use msg::constellation_msg::{ConstellationChan, Msg, PipelineId, SubpageId};
use net::image::holder::ImageHolder;
use net::local_image_cache::LocalImageCache;
use servo_util::geometry::{self, Au, ZERO_POINT};
use servo_util::logical_geometry::{LogicalRect, LogicalSize, LogicalMargin};
use servo_util::range::*;
use servo_util::smallvec::SmallVec;
use servo_util::str::is_whitespace;
use util::geometry::{self, Au, ZERO_POINT};
use util::logical_geometry::{LogicalRect, LogicalSize, LogicalMargin};
use util::range::*;
use util::smallvec::SmallVec;
use util::str::is_whitespace;
use std::borrow::ToOwned;
use std::cmp::{max, min};
use std::collections::DList;
Expand Down
8 changes: 4 additions & 4 deletions components/layout/inline.rs
Expand Up @@ -24,10 +24,10 @@ use geom::{Point2D, Rect};
use gfx::font::FontMetrics;
use gfx::font_context::FontContext;
use gfx::text::glyph::CharIndex;
use servo_util::arc_ptr_eq;
use servo_util::geometry::{Au, ZERO_RECT};
use servo_util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use servo_util::range::{Range, RangeIndex};
use util::arc_ptr_eq;
use util::geometry::{Au, ZERO_RECT};
use util::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
use util::range::{Range, RangeIndex};
use std::cmp::max;
use std::fmt;
use std::mem;
Expand Down
20 changes: 10 additions & 10 deletions components/layout/layout_task.rs
Expand Up @@ -53,16 +53,16 @@ use msg::constellation_msg::{ConstellationChan, Failure, PipelineExitType, Pipel
use net::image_cache_task::{ImageCacheTask, ImageResponseMsg};
use net::local_image_cache::{ImageResponder, LocalImageCache};
use net::resource_task::{ResourceTask, load_bytes_iter};
use servo_util::cursor::Cursor;
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalPoint;
use servo_util::opts;
use servo_util::smallvec::{SmallVec, SmallVec1, VecLike};
use servo_util::task::spawn_named_with_send_on_failure;
use servo_util::task_state;
use servo_util::time::{TimeProfilerCategory, ProfilerMetadata, TimeProfilerChan};
use servo_util::time::{TimerMetadataFrameType, TimerMetadataReflowType, profile};
use servo_util::workqueue::WorkQueue;
use util::cursor::Cursor;
use util::geometry::Au;
use util::logical_geometry::LogicalPoint;
use util::opts;
use util::smallvec::{SmallVec, SmallVec1, VecLike};
use util::task::spawn_named_with_send_on_failure;
use util::task_state;
use util::time::{TimeProfilerCategory, ProfilerMetadata, TimeProfilerChan};
use util::time::{TimerMetadataFrameType, TimerMetadataReflowType, profile};
use util::workqueue::WorkQueue;
use std::borrow::ToOwned;
use std::cell::Cell;
use std::ops::{Deref, DerefMut};
Expand Down
2 changes: 1 addition & 1 deletion components/layout/lib.rs
Expand Up @@ -43,7 +43,7 @@ extern crate net;
extern crate msg;
extern crate selectors;
#[macro_use]
extern crate "util" as servo_util;
extern crate util;

#[no_link] #[macro_use] #[plugin]
extern crate string_cache_macros;
Expand Down
6 changes: 3 additions & 3 deletions components/layout/list_item.rs
Expand Up @@ -18,9 +18,9 @@ use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use gfx::display_list::DisplayList;
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use servo_util::opts;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use util::opts;
use style::properties::ComputedValues;
use style::computed_values::list_style_type;
use std::sync::Arc;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/model.rs
Expand Up @@ -11,8 +11,8 @@ use fragment::Fragment;
use geom::SideOffsets2D;
use style::values::computed::{LengthOrPercentageOrAuto, LengthOrPercentageOrNone, LengthOrPercentage};
use style::properties::ComputedValues;
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalMargin;
use util::geometry::Au;
use util::logical_geometry::LogicalMargin;
use std::cmp::{max, min};
use std::fmt;

Expand Down
6 changes: 3 additions & 3 deletions components/layout/parallel.rs
Expand Up @@ -20,9 +20,9 @@ use wrapper::{layout_node_to_unsafe_layout_node, layout_node_from_unsafe_layout_
use wrapper::{PostorderNodeMutTraversal, UnsafeLayoutNode};
use wrapper::{PreorderDomTraversal, PostorderDomTraversal};

use servo_util::opts;
use servo_util::time::{TimeProfilerCategory, ProfilerMetadata, TimeProfilerChan, profile};
use servo_util::workqueue::{WorkQueue, WorkUnit, WorkerProxy};
use util::opts;
use util::time::{TimeProfilerCategory, ProfilerMetadata, TimeProfilerChan, profile};
use util::workqueue::{WorkQueue, WorkUnit, WorkerProxy};
use std::mem;
use std::ptr;
use std::sync::atomic::{AtomicInt, Ordering};
Expand Down
4 changes: 2 additions & 2 deletions components/layout/sequential.rs
Expand Up @@ -17,8 +17,8 @@ use wrapper::{PostorderNodeMutTraversal};
use wrapper::{PreorderDomTraversal, PostorderDomTraversal};

use geom::point::Point2D;
use servo_util::geometry::{Au, ZERO_POINT};
use servo_util::opts;
use util::geometry::{Au, ZERO_POINT};
use util::opts;

pub fn traverse_dom_preorder(root: LayoutNode,
shared_layout_context: &SharedLayoutContext) {
Expand Down
4 changes: 2 additions & 2 deletions components/layout/table.rs
Expand Up @@ -21,8 +21,8 @@ use table_wrapper::TableLayout;
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use std::cmp::max;
use std::fmt;
use style::properties::ComputedValues;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/table_caption.rs
Expand Up @@ -14,8 +14,8 @@ use fragment::FragmentBorderBoxIterator;
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use std::fmt;
use style::properties::ComputedValues;
use std::sync::Arc;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/table_cell.rs
Expand Up @@ -16,8 +16,8 @@ use table::InternalTable;
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use std::fmt;
use style::properties::ComputedValues;
use style::legacy::UnsignedIntegerAttribute;
Expand Down
2 changes: 1 addition & 1 deletion components/layout/table_colgroup.rs
Expand Up @@ -14,7 +14,7 @@ use layout_debug;
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::{Au, ZERO_RECT};
use util::geometry::{Au, ZERO_RECT};
use std::cmp::max;
use std::fmt;
use style::values::computed::LengthOrPercentageOrAuto;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/table_row.rs
Expand Up @@ -19,8 +19,8 @@ use model::MaybeAuto;
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use std::cmp::max;
use std::fmt;
use style::properties::ComputedValues;
Expand Down
4 changes: 2 additions & 2 deletions components/layout/table_rowgroup.rs
Expand Up @@ -16,8 +16,8 @@ use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize, InternalTable};
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use servo_util::logical_geometry::LogicalRect;
use util::geometry::Au;
use util::logical_geometry::LogicalRect;
use std::fmt;
use style::properties::ComputedValues;
use std::sync::Arc;
Expand Down
2 changes: 1 addition & 1 deletion components/layout/table_wrapper.rs
Expand Up @@ -24,7 +24,7 @@ use table::{ColumnComputedInlineSize, ColumnIntrinsicInlineSize};
use wrapper::ThreadSafeLayoutNode;

use geom::{Point2D, Rect};
use servo_util::geometry::Au;
use util::geometry::Au;
use std::cmp::{max, min};
use std::fmt;
use std::ops::Add;
Expand Down
10 changes: 5 additions & 5 deletions components/layout/text.rs
Expand Up @@ -15,11 +15,11 @@ use gfx::font_context::FontContext;
use gfx::text::glyph::CharIndex;
use gfx::text::text_run::TextRun;
use gfx::text::util::{self, CompressionMode};
use servo_util::dlist;
use servo_util::geometry::Au;
use servo_util::logical_geometry::{LogicalSize, WritingMode};
use servo_util::range::Range;
use servo_util::smallvec::{SmallVec, SmallVec1};
use util::dlist;
use util::geometry::Au;
use util::logical_geometry::{LogicalSize, WritingMode};
use util::range::Range;
use util::smallvec::{SmallVec, SmallVec1};
use std::collections::DList;
use std::mem;
use style::computed_values::{line_height, text_orientation, text_rendering, text_transform};
Expand Down
4 changes: 2 additions & 2 deletions components/layout/traversal.rs
Expand Up @@ -19,8 +19,8 @@ use wrapper::{PostorderNodeMutTraversal, ThreadSafeLayoutNode, UnsafeLayoutNode}
use wrapper::{PreorderDomTraversal, PostorderDomTraversal};

use selectors::bloom::BloomFilter;
use servo_util::opts;
use servo_util::tid::tid;
use util::opts;
use util::tid::tid;
use style::node::TNode;

use std::cell::RefCell;
Expand Down
2 changes: 1 addition & 1 deletion components/layout/wrapper.rs
Expand Up @@ -60,7 +60,7 @@ use script::dom::node::{HAS_CHANGED, IS_DIRTY, HAS_DIRTY_SIBLINGS, HAS_DIRTY_DES
use script::dom::text::Text;
use script::layout_interface::LayoutChan;
use msg::constellation_msg::{PipelineId, SubpageId};
use servo_util::str::{LengthOrPercentageOrAuto, is_whitespace};
use util::str::{LengthOrPercentageOrAuto, is_whitespace};
use std::borrow::ToOwned;
use std::cell::{Ref, RefMut};
use std::marker::ContravariantLifetime;
Expand Down

5 comments on commit 559ff68

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jdm
at iamdanfox@559ff68

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging iamdanfox/servo/fix-5120-rename-layout-util = 559ff68 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iamdanfox/servo/fix-5120-rename-layout-util = 559ff68 merged ok, testing candidate = 7fc37df

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 7fc37df

Please sign in to comment.