diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-03-31 15:51:32 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-04-03 14:51:18 -0700 |
commit | c49f23ffb29136a960f53c42e592e9922860323f (patch) | |
tree | 6c079f8792d536130387671cc45870dc05276835 /src/components/main/layout/layout_task.rs | |
parent | 30b7f5d0ad5b9882271168aca7beb11fc0d6304e (diff) | |
download | servo-c49f23ffb29136a960f53c42e592e9922860323f.tar.gz servo-c49f23ffb29136a960f53c42e592e9922860323f.zip |
layout: Address review feedback.
Diffstat (limited to 'src/components/main/layout/layout_task.rs')
-rw-r--r-- | src/components/main/layout/layout_task.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/main/layout/layout_task.rs b/src/components/main/layout/layout_task.rs index 686cf9f9c19..1e338bd7e1c 100644 --- a/src/components/main/layout/layout_task.rs +++ b/src/components/main/layout/layout_task.rs @@ -649,8 +649,8 @@ impl LayoutTask { // it with extreme prejudice. let mut color = color::rgba(255.0, 255.0, 255.0, 255.0); for child in node.traverse_preorder() { - if child.type_id() == ElementNodeTypeId(HTMLHtmlElementTypeId) || - child.type_id() == ElementNodeTypeId(HTMLBodyElementTypeId) { + if child.type_id() == Some(ElementNodeTypeId(HTMLHtmlElementTypeId)) || + child.type_id() == Some(ElementNodeTypeId(HTMLBodyElementTypeId)) { let element_bg_color = { let thread_safe_child = ThreadSafeLayoutNode::new(&child); thread_safe_child.style() @@ -681,8 +681,8 @@ impl LayoutTask { let render_layer = RenderLayer { id: layout_root.layer_id(0), display_list: display_list.clone(), - rect: Rect(Point2D(0u, 0u), root_size), - color: color, + position: Rect(Point2D(0u, 0u), root_size), + background_color: color, scroll_policy: Scrollable, }; |