Commit graph

5331 commits

Author SHA1 Message Date
Josh Matthews
3a22ee3237 Merge pull request #2801 from Ms2ger/wrap-temp
Return a Temporary from *Binding::Wrap.
2014-07-11 20:48:22 -04:00
Simon Sapin
8cf004e28a Merge pull request #2806 from Ms2ger/tidy
Improve and extend tidy.py, and run it on Travis.
2014-07-11 12:57:48 +01:00
Ms2ger
44a76e542f Run tidy.py on Travis. 2014-07-11 13:21:22 +02:00
Ms2ger
f65da65426 Test for carriage returns in tidy.py. 2014-07-11 13:21:22 +02:00
Ms2ger
a283f7801b Test for tabs in tidy.py. 2014-07-11 13:21:22 +02:00
Ms2ger
4ff4b5833d Test for missing newlines at end of file in tidy.py. 2014-07-11 13:21:17 +02:00
Ms2ger
b1493519c9 Test for trailing spaces in tidy.py. 2014-07-11 13:14:12 +02:00
Ms2ger
695fe12863 Fix PEP8 violations in tidy.py. 2014-07-11 13:06:21 +02:00
Ms2ger
65c61cde8b Stop using fileinput in tidy.py.
The code is expressed much more clearly with a loop over the files instead.
2014-07-11 13:03:48 +02:00
Ms2ger
016457722f Remove unused code from tidy.py. 2014-07-11 13:02:58 +02:00
Ms2ger
eb7654719a Remove a glob import from tidy.py. 2014-07-11 13:02:35 +02:00
Ms2ger
fed50cca1e Correct the allowed MPL licenses in licenseck. 2014-07-11 12:55:53 +02:00
Jack Moffitt
11d9ae6103 Merge pull request #2804 from glennw/enable-phf
Enable rust-phf build and bump rust-phf submodule ptr.
2014-07-10 22:37:46 -06:00
Glenn Watson
28031801de Enable rust-phf build and bump rust-phf submodule ptr. 2014-07-11 13:44:37 +10:00
Cameron Zwarich
b267eb7b8e Merge pull request #2799 from zwarich/compositor-transactions
Batch buffer rendering requests and their replies in transactions
2014-07-10 10:49:49 -07:00
Ms2ger
439bc78cab Return a Temporary from *Binding::Wrap.
Returning a JS<T> is GC-unsafe.

This commit also includes some cleanup around Node and Document reflection.
2014-07-10 16:45:41 +02:00
Simon Sapin
360d5d01d8 Revert "Enable email notifications from Travis CI"
This reverts commit ffb502abcd.
2014-07-10 10:18:55 +01:00
Simon Sapin
ffb502abcd Enable email notifications from Travis CI
http://docs.travis-ci.com/user/notifications/
> By default, email notifications will be sent to the committer and the commit author, if they are members of the repository (that is, they have push or admin permissions for public repositories, or if they have pull, push or admin permissions for private repositories).
>
> And it will by default send emails when, on the given branch:
>
> * a build was just broken or still is broken
> * a previously broken build was just fixed
2014-07-10 10:17:51 +01:00
Cameron Zwarich
fbd2b588ed Remove FIXMEs related to batching buffer requests 2014-07-10 01:31:48 -07:00
Cameron Zwarich
acc0daa519 Make the CompositorTask Paint message take multiple replies 2014-07-10 01:31:48 -07:00
Cameron Zwarich
340d9caba5 Make RenderListener::paint take multiple replies 2014-07-10 01:31:48 -07:00
Cameron Zwarich
a832acc4c8 Batch replies in RenderTask::render 2014-07-10 01:31:48 -07:00
Cameron Zwarich
ec8f71d4b5 Check whether the render task has permission to paint before painting
This matches the behavior of RenderMsg. It doesn't make sense to go to
the trouble of rendering if the render task doesn't have permission to
paint in the first place.
2014-07-10 01:31:48 -07:00
Cameron Zwarich
8d56fa37be Make ReRenderMsg take multiple ReRenderRequests 2014-07-10 01:31:48 -07:00
Cameron Zwarich
0f21d6be12 Only clone the RenderChan once per Pipeline 2014-07-10 01:31:48 -07:00
Cameron Zwarich
a378f3e680 Group ReRenderRequests by PipelineId 2014-07-10 01:31:48 -07:00
Cameron Zwarich
25e8077681 Batch ReRenderRequests rather than render_task::Msg
Make get_buffer_requests_recursively create a ReRenderRequest rather
than a ReRenderMsg, and have its caller create the ReRenderMsg from
the ReRenderRequest.
2014-07-10 01:31:47 -07:00
Cameron Zwarich
5611e34379 Separate the contents of ReRenderMsg into its own type
Make a ReRenderRequest type to represent the contents of a ReRenderMsg.
Currently, ReRenderMsg just takes a single one, but it in the future it
will take multiple requests.
2014-07-10 01:31:47 -07:00
Cameron Zwarich
adfd6492ad Make send_buffer_requests_recursively batch messages
Also, rename it to get_buffer_requests_recursively to reflect that the
caller has to send all of the batched messages itself.
2014-07-10 01:31:47 -07:00
Cameron Zwarich
d4e15697c2 Merge pull request #2798 from mrobinson/more-rust-layers-cleanup
More rust layers cleanup
2014-07-10 01:20:39 -07:00
Martin Robinson
ecb5cc8091 Update to latest rust-layers 2014-07-09 15:51:44 -07:00
Martin Robinson
b743448b52 Remove page_size member from CompositorData
The page size is always the same as the layer boundaries since,
SetLayerClipRect was always called after layer creation.
2014-07-09 15:51:44 -07:00
Martin Robinson
601b8ec970 Remove support for hiding compositor layers
This is currently unused, because we always know the size of the layer.
2014-07-09 15:51:44 -07:00
Martin Robinson
1f21d3bd2f Remove occlusion code from compositor
This code tried to prevent buffer requests from parts of layers that
were occluded by other layers. This doesn't really make sense when
layers can potentially be semi-opaque, and also seems to have not been
totally functional.
2014-07-09 15:51:44 -07:00
Martin Robinson
71225e87ca Update to latest rust-layers
Layers now store their complete boundaries, so we can eliminate the
various ways these were stored in Servo.
2014-07-09 15:51:42 -07:00
Patrick Walton
78eeb8e2e7 Revert "Implement Element.matches()."
This reverts commit b6edd5318f.
2014-07-09 14:58:38 -07:00
Patrick Walton
10a0f984c3 Merge pull request #2772 from saneyuki/match
Implement Element.matches().
2014-07-09 14:30:30 -07:00
Patrick Walton
cb7828c76e Merge pull request #2789 from zwarich/compositor-events
Move compositor event handling code to a new `events` module
2014-07-09 14:29:27 -07:00
Simon Sapin
5c15c4d11f Merge pull request #2790 from SimonSapin/abstract-geometry
Add geometry primitives in flow-relative space
2014-07-09 22:04:59 +01:00
Cameron Zwarich
4916b97ad1 Merge pull request #2796 from mrobinson/fix-make-check
Update rust-layers
2014-07-09 13:36:03 -07:00
Martin Robinson
e4246c37a1 Update rust-layers
This fixes the Quadtree tests in check-rust-layers.

Fixes #2768.
2014-07-09 13:02:59 -07:00
Simon Sapin
c4bbf54fe3 Add logical geometry primitives, for CSS Writing Modes. 2014-07-09 20:57:21 +01:00
Patrick Walton
94909f2d08 Merge pull request #2786 from nnethercote/task_info
Add a `task_info` crate and a `task_basic_info` module within it.
2014-07-09 09:42:17 -07:00
glennw
0dec28dd4a Merge pull request #2775 from glennw/font-cache
Font refactoring work - add font cache task, cleanup various code paths.
2014-07-09 09:31:07 +10:00
Cameron Zwarich
bc0223a7de Move compositor event handling code to a new events module
Also, make them free functions rather than static methods on
CompositorData.
2014-07-08 14:44:08 -07:00
Cameron Zwarich
396cbb4bee Merge pull request #2788 from mrobinson/compositor-cleanup
Make compositor layer creation atomic
2014-07-08 14:37:02 -07:00
Martin Robinson
ca77ca998e Pass creation/update data for compositor layers in a struct
Use a new LayerProperties struct to hold all the data necessary to
create or update compositor layers. This reduces a lot of duplication
when passing it along.
2014-07-08 11:11:58 -07:00
Martin Robinson
5e52023177 Make compositor layer creation atomic
Instead of creating, sizing, and setting up layers using several
messages use only one. If the layer already exists, it will be updated
to reflect the new properties. The clip rect is still set in a separate
message, but that will be eliminated in a later commit.
2014-07-08 11:11:56 -07:00
Simon Sapin
a9e5457588 Merge pull request #2785 from glennw/content-font-size
Make pseudo :before and :after elements inherit style from attached
2014-07-08 18:23:16 +01:00
Patrick Walton
d90427e5e3 Merge pull request #2787 from SimonSapin/warnings
Fix or selectively silence warnings in src/components.
2014-07-08 10:20:50 -07:00