diff options
author | Brian Anderson <banderson@mozilla.com> | 2012-05-03 22:09:47 -0700 |
---|---|---|
committer | Brian Anderson <banderson@mozilla.com> | 2012-05-03 22:09:47 -0700 |
commit | 09694fe58fd666bbea908337c07c6f9991acb4bb (patch) | |
tree | fdb868b25859942c2a1900bc944528a9129de92e /src/servo/layout/layout.rs | |
parent | 04575529ade33e2a16e9ac4b3161484ed81f9448 (diff) | |
download | servo-09694fe58fd666bbea908337c07c6f9991acb4bb.tar.gz servo-09694fe58fd666bbea908337c07c6f9991acb4bb.zip |
Use a better protocol between renderer and osmain
Diffstat (limited to 'src/servo/layout/layout.rs')
-rw-r--r-- | src/servo/layout/layout.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/servo/layout/layout.rs b/src/servo/layout/layout.rs index 0c81ec6b379..788c1357c26 100644 --- a/src/servo/layout/layout.rs +++ b/src/servo/layout/layout.rs @@ -33,7 +33,7 @@ fn layout(renderer: chan<renderer::msg>) -> chan<msg> { let box = layout_dom(dom); let dlist = build_display_list(box); - send(renderer, gfx::renderer::draw(dlist)); + send(renderer, gfx::renderer::render(dlist)); } exit { break; @@ -54,18 +54,18 @@ fn build_display_list(_box: @base::box) -> display_list::display_list { display_item({ item_type: solid_color, bounds: geom::box( - int_to_au(r.next() as int % 800), - int_to_au(r.next() as int % 600), - int_to_au(100), - int_to_au(100)) + int_to_au(r.next() as int % 800 - 100), + int_to_au(r.next() as int % 600 - 100), + int_to_au(200), + int_to_au(200)) }), display_item({ item_type: solid_color, bounds: geom::box( - int_to_au(100), - int_to_au(100), - int_to_au(100), - int_to_au(100)) + int_to_au(r.next() as int % 800 - 100), + int_to_au(r.next() as int % 600 - 100), + int_to_au(200), + int_to_au(200)) }) ] }
\ No newline at end of file |