Commit graph

5275 commits

Author SHA1 Message Date
Patrick Walton
53d5d35e7c Merge pull request #2784 from zwarich/cleanup-compositor-recursion
Cleanup compositor recursion
2014-07-07 17:47:35 -07:00
Cameron Zwarich
4b41b68c15 Eliminate ad-hoc recursion in add_buffers 2014-07-07 16:16:43 -07:00
Cameron Zwarich
568d4d568a Remove pointless layer lookup
We just created the root layer, so there's no point in trying to find it
again.
2014-07-07 16:16:42 -07:00
Cameron Zwarich
c0b599f894 Remove ad-hoc recursion from add_child_if_necessary 2014-07-07 16:16:42 -07:00
Cameron Zwarich
4c0f8c8ac0 Rename get_buffer_requests to send_buffer_requests_recursively 2014-07-07 16:16:42 -07:00
Cameron Zwarich
512c986915 Eliminate iteration over Option types
This idiom has been dying out in new Rust code; it's especially
confusing for layers because there is a higher chance of making the
mistaken assumption that the iteration is occurring over multiple
layers.
2014-07-07 16:16:42 -07:00
Cameron Zwarich
f91d51cb2c Eliminate ad-hoc recursion in set_unrendered_color 2014-07-07 16:16:42 -07:00
Cameron Zwarich
0396cdb1c5 Rename find_child_with_layer_and_pipeline_id
Rename find_child_with_layer_and_pipeline_id to
find_child_with_pipeline_and_layer_id so that it matches both the
logical and actual parameter ordering.
2014-07-07 16:16:42 -07:00
Cameron Zwarich
c1b0a9eb93 Add a new find_layer_with_pipeline_and_layer_id method
This method will be used to eliminate a lot of the ad-hoc recursive
searches that are present in the compositor layer code.
2014-07-07 16:16:42 -07:00
Patrick Walton
f8fbf557f1 Merge pull request #2781 from zwarich/compositor-contains
Adopt Rect::contains in compositor hit-testing
2014-07-07 13:50:17 -07:00
Patrick Walton
1624bc2e59 Merge pull request #2767 from zwarich/shutdown-state
Add a ShutdownState type in the compositor
2014-07-07 13:49:55 -07:00
Patrick Walton
7bf4007880 Merge pull request #2778 from Ms2ger/parallel
Remove some mem::transmute calls and reduce some unsafe blocks in parallel.rs.
2014-07-07 13:49:35 -07:00
Josh Matthews
3083065cf6 Merge pull request #2783 from molnarg/master
Use "Fedora" instead of "Fedora Core" in README
2014-07-07 15:09:01 -04:00
Gábor Molnár
dcc21bb4ca Use "Fedora" instead of "Fedora Core" in README 2014-07-07 20:47:57 +02:00
Josh Matthews
d1d97167d9 Merge pull request #2780 from eshyong/reduce-untraceables
Made Page.window_size and Page.next_subpage_id Traceable, added trait En...
2014-07-07 13:50:26 -04:00
Cameron Zwarich
91c7acd4c4 Adopt Rect::contains in compositor hit-testing
This does make hit-testing inclusive in the right/bottom edges, whereas it
was only inclusive in the top/left edges before.
2014-07-07 10:45:48 -07:00
Cameron Zwarich
797663c43e Update to latest rust-geom 2014-07-07 10:45:48 -07:00
Josh Matthews
548946b800 Merge pull request #2777 from Manishearth/try_parse_url
Don't fail on parsing URLs in the html parser
2014-07-07 12:17:54 -04:00
Simon Sapin
b502d0f19e Merge pull request #2779 from Ms2ger/print
Print a more helpful debug message when creating an element in the HTML parser.
2014-07-07 16:07:34 +01:00
Manish Goregaokar
a0e413cf1a Don't fail on parsing URLs in the html parser 2014-07-07 20:28:55 +05:30
Ms2ger
7852bcd626 Print a more helpful debug message when creating an element in the HTML parser.
Using {:?} prints a debugging representation such as

  collections::string::String{
    vec: collections::vec::Vec<u8>{
      len: 4u,
      cap: 4u,
      ptr: (0x7f75670285d8 as *mut ())
    }
  }

which is not very helpful.
2014-07-07 16:52:48 +02:00
Ms2ger
587a90315e Remove some mem::transmute calls and reduce some unsafe blocks in parallel.rs. 2014-07-07 16:41:53 +02:00
Jack Moffitt
7babb6d104 Merge pull request #2776 from glennw/warnings
Warning police.
2014-07-07 00:30:04 -06:00
Glenn Watson
422bda7379 Warning police. 2014-07-07 15:43:47 +10:00
eshyong
f085655cc6 Made Page.window_size and Page.next_subpage_id Traceable, added trait Encodable for WindowSizeData, ViewportPx, PagePx, and DevicePixel 2014-07-06 23:49:01 -04:00
Ms2ger
e62637fee2 Merge pull request #2763 from Ms2ger/azure-ctors
Replace bare constructor functions with 'new' static member functions in rust-azure; r=SimonSapin
2014-07-05 11:16:08 +02:00
Simon Sapin
0974d21bcd Merge pull request #2765 from Manishearth/xhr-wpt-encoding
Fix encoding issues for getResponseHeader()
2014-07-04 23:36:22 +01:00
Cameron Zwarich
09d2b4dde5 Add a ShutdownState type in the compositor
Currently the compositor tracks its state in the processing of shutting
down with two boolean instance variables `shutting_down` and `done`, but
these two variables really implement a three-state abstraction.
2014-07-04 15:21:13 -07:00
Simon Sapin
c01ab46388 Merge pull request #2761 from zwarich/remove-set-transform
Stop calling Scene::set_transform
2014-07-04 23:12:21 +01:00
Simon Sapin
475f6e7495 Merge pull request #2760 from zwarich/compositor-100-columns
Fix 100-column violations in compositor.rs
2014-07-04 22:45:19 +01:00
Manish Goregaokar
9c2f5ac218 Update expectations for #2765 2014-07-05 02:22:26 +05:30
Manish Goregaokar
3f15dc6c47 Fix encoding issues for getResponseHeader() 2014-07-05 02:20:04 +05:30
Ms2ger
17d4b1ac01 Replace bare constructor functions with 'new' static member functions in rust-azure. 2014-07-04 22:22:15 +02:00
Cameron Zwarich
38cfea1246 Fix 100-column violations in compositor.rs 2014-07-04 09:22:57 -07:00
Cameron Zwarich
8d3442d5ba Merge pull request #2755 from mrobinson/remove-common
Update to latest rust-layers
2014-07-04 09:00:28 -07:00
Martin Robinson
07db2d3273 Update to latest rust-layers 2014-07-04 07:42:38 -07:00
Simon Sapin
52e55a2770 Merge pull request #2762 from Ms2ger/warnings
Fix some build warnings. r=me
2014-07-04 14:15:38 +01:00
Ms2ger
2aad6539e4 Remove some deprecated into_owned calls. 2014-07-04 11:57:36 +02:00
Ms2ger
11aa36619d Mark some unused fields. 2014-07-04 11:57:35 +02:00
Ms2ger
cfa9aaac08 Remove some unused fields. 2014-07-04 11:57:29 +02:00
Ms2ger
1fe1d03b02 Fix a deprecated phase warning. 2014-07-04 11:54:46 +02:00
Ms2ger
e1098232eb Fix some exported private type warnings. 2014-07-04 11:54:19 +02:00
Cameron Zwarich
4777a39479 Stop calling Scene::set_transform
The Scene::set_transform method was only introduced because of an old
rustc bug around mutating properties across crates. Now that the rustc
bug is fixed, we can stop calling this method.
2014-07-04 00:42:40 -07:00
Patrick Walton
19560c0390 Merge pull request #2759 from zwarich/cleanup-get-buffer-request
Cleanup `get_buffer_request`
2014-07-03 23:24:28 -07:00
Cameron Zwarich
567ee422b1 Rename a local closure in get_buffer_request 2014-07-03 21:46:52 -07:00
Cameron Zwarich
952bb4e238 Change a fold to an any 2014-07-03 21:46:52 -07:00
Lars Bergstrom
6ce4e62e11 Merge pull request #2756 from zwarich/compositor-100-lines
Make compositor_data.rs conform to 100 column line lengths
2014-07-03 19:50:09 -05:00
Lars Bergstrom
3bde03c9a7 Merge pull request #2757 from glennw/disable-phf
Disable rust-phf until cross compile / make check issue is sorted.
2014-07-03 18:47:45 -05:00
Glenn Watson
3f18a89084 Disable rust-phf until cross compile / make check issue is sorted. 2014-07-04 07:33:00 +10:00
Cameron Zwarich
e1a97ea14b Make compositor_data.rs conform to 100 column line lengths 2014-07-03 13:48:17 -07:00