Commit graph

6066 commits

Author SHA1 Message Date
Simon Sapin
eb9689e09b 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:19:49 +01: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
Simon Sapin
b1c4a9156c Fix or selectively silence warnings in src/components. 2014-07-08 15:46:34 +01:00
Glenn Watson
9dba9b9447 Make pseudo :before and :after elements inherit style from attached
element, as per http://dev.w3.org/csswg/css2/generate.html, rather
than from the parent element.
2014-07-08 11:20:19 +10:00
Nicholas Nethercote
24d3979ce8 Add a task_info crate and a task_basic_info module within it.
The crate provides an interface to the Mac-specific `task_info()`
function in general, and the module provides an interface to the
TASK_BASIC_INFO flavor.  Currently only the `virtual_size` and
`resident_size` values of the `task_basic_info` struct are exposed, but
there's obvious room for expansion.

This is used to implement the -m measurements on Mac.
2014-07-08 10:58:07 +10:00
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
Glenn Watson
0c3cb39da3 Address review comments. 2014-07-08 07:44:05 +10: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