Commit graph

8519 commits

Author SHA1 Message Date
bors-servo
1834359f16 auto merge of #4606 : Ms2ger/servo/devtools-comment, r=larsbergstrom 2015-01-10 07:39:44 -07:00
Ms2ger
1fb863ab3f Move the documentation comment for the devtools_traits crate to have it picked up. 2015-01-10 15:02:28 +01:00
bors-servo
d9a26ad595 auto merge of #4599 : michaelwu/servo/use-file-apis-in-gonk, r=larsbergstrom
With the latest rustup, we can use std::io::File since as_raw_fd() is available.
2015-01-10 06:15:43 -07:00
Michael Wu
8510200755 Make the gonk input code use standard file APIs 2015-01-09 20:15:21 -05:00
bors-servo
16c2025a4e auto merge of #4314 : mrobinson/servo/iframes-2, r=jdm
iframes added or loaded via script are not reflected visibly in the content of a page. The next step in making this happen is to have compositor layers accurately reflect newly recreated or loaded iframes. This change allows iframes to appear, but there are still some further changes necessary to make the output correct and reliable.
2015-01-09 17:51:44 -07:00
Martin Robinson
efdc758dd7 Only send SetLayerRect messages for compositor-backed frames
Only send SetLayerRect when we know that a frame has a compositor
layer. If it doesn't, we wait until we send the new layer to the
compositor.
2015-01-09 16:20:09 -08:00
Martin Robinson
19f57008da Notify compositor when a FrameTree changes pipelines
When the constellation change a FrameTree pipeline, it should send a
notification to the compositor, so that it can negotiate buffers from
the correct render task. This commit also migrates away from the
generalized FrameTreeUpdateMsg to ones specific to the situation at
hand. That turned out to be an unnecessary abstraction.
2015-01-09 16:20:04 -08:00
bors-servo
5e758b680b auto merge of #4597 : michaelwu/servo/fix-gonk-20150109, r=larsbergstrom 2015-01-09 17:18:45 -07:00
Martin Robinson
f1d82cf82c Add FrameTree::add_child
This helper method simplifies a few lines.
2015-01-09 15:14:01 -08:00
Martin Robinson
6a46eef5cd Update FrameTree pipelines when appropriate
Instead of simply creating a new FrameTree when an iframe starts a
load, update the existing FrameTree's pipeline. This prevents the
FrameTree from accumulating many extra children.
2015-01-09 15:14:01 -08:00
bors-servo
c1d218cf02 auto merge of #4578 : mrobinson/servo/fix-compositor-timing-issues, r=larsbergstrom
Clean up compositor data structures and fix timing issues that cause Compositor panics.
2015-01-09 15:39:44 -07:00
Martin Robinson
b60f354405 Store pipelines in the Compositor
Instead of cloning pipelines and storing them once per layer, store
them globally in the compositor and access them via id. This trades
lots of unnecessary duplication for a HashMap lookup.
2015-01-09 14:33:59 -08:00
Martin Robinson
c5994c65ef Be less stringent with invalid compositor messages
It is possible for messages for defunct pipelines to arrive in the
compositor. If the compositor believes that the pipelines are in the
process of shutting down, simply ignore the messages. We still panic in
the case that the pipeline is totally unknown.

Fixes #3733.
2015-01-09 14:33:58 -08:00
bors-servo
ebb702ab94 auto merge of #4596 : jimrhoskins/servo/sandbox-tokenlist, r=jdm
Fixes #3758

Store the sandbox attribute of HTMLIFrameElement as a TokenList
internally. Use .tokens() to iterate over the tokens instead of
splitting on the string value.

The external interface for sandbox remains a DOMString, which will need
to be fixed when DOMSettableTokenList is implemented (#1717).
2015-01-09 14:27:45 -07:00
bors-servo
21fd1120c3 auto merge of #4532 : saneyuki/servo/event, r=jdm
Fix #4505
2015-01-09 13:54:47 -07:00
Michael Wu
f4013d7210 Fix gonk build after the last rustup 2015-01-09 15:41:06 -05:00
Jim Hoskins
e8036accd6 Store HTMLIFrameElement sandbox attr as TokenList
Fixes #3758

Store the sandbox attribute of HTMLIFrameElement as a TokenList
internally. Use .tokens() to iterate over the tokens instead of
splitting on the string value.

The external interface for sandbox remains a DOMString, which will need
to be fixed when DOMSettableTokenList is implemented (#1717).
2015-01-09 11:24:41 -08:00
bors-servo
da400a7a45 auto merge of #4137 : ebalint/servo/canvas, r=jdm
Content of the canvas is drawn, tests/html/test_canvas.html now works.
2015-01-09 12:06:47 -07:00
Tetsuharu OHZEKI
d8fed6dbd4 Change the reason of disable /html/semantics/document-metadata/the-base-element/base_multiple.html
We haven't support the propagation of load event from iframe.
2015-01-10 04:05:46 +09:00
Tetsuharu OHZEKI
0237561511 Make DOMContentLoaded and load asynchronous with using Runnable. 2015-01-10 04:05:46 +09:00
Edit Balint
81f47344d6 CanvasRenderTask connected to Layout
Update rust-azure to f4a02f3f621b0a994a20d42e438371a87c62f898.
2015-01-09 18:53:10 +01:00
bors-servo
43e34d6d10 auto merge of #4588 : Ms2ger/servo/layout-cleanup, r=larsbergstrom 2015-01-09 09:42:48 -07:00
bors-servo
ffdbf29db2 auto merge of #4557 : pcwalton/servo/filter, r=mbrubeck
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.

r? @mbrubeck
2015-01-09 09:03:48 -07:00
Patrick Walton
15d60d7ea4 layout: Implement filter per CSS-FILTERS § 5.
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.
2015-01-09 07:26:13 -08:00
bors-servo
0b06aeebe3 auto merge of #4553 : mrobinson/servo/paint-task-cleanup, r=larsbergstrom
This simplifies calling it substantially. Also avoid unnecessarily
changing the PaintTask epoch when we don't have paint permission.
2015-01-09 08:24:48 -07:00
bors-servo
6b3c05cdd2 auto merge of #4585 : Ms2ger/servo/NavigatorInfo, r=jdm
It serves no purpose.
2015-01-09 07:48:49 -07:00
bors-servo
f74d5360ba auto merge of #4584 : Ms2ger/servo/unsafe, r=jdm
As a first start, this allows them indiscriminately where used.
2015-01-09 07:15:52 -07:00
bors-servo
c338dbe947 auto merge of #4586 : Swatinem/servo/noderemove, r=Ms2ger
fixes #4562
2015-01-09 05:57:51 -07:00
Ms2ger
b14a94a30f Pass a Vec to ApplicableDeclarationsCacheEntry::new.
As it copies the slice anyway, it is better to give the caller the opportunity
to pass in an existing Vec.
2015-01-09 13:30:43 +01:00
Ms2ger
f8785beb24 Remove transmutes in LayoutContext. 2015-01-09 13:30:42 +01:00
bors-servo
3e8cab758e auto merge of #4579 : mattnenterprise/servo/textinput-select-refactor, r=jdm
Fixes #4573 Replaces the boolean argument of TextInput::adjust[horizontal | vertical] with enum to self document the code
2015-01-09 05:24:50 -07:00
Arpad Borsos
322daccb42 Fix assertion trying to remove a Node that has no parent
fixes #4562
2015-01-09 12:47:28 +01:00
Ms2ger
8afc104d4b Remove the NavigatorInfo struct.
It serves no purpose.
2015-01-09 12:10:08 +01:00
Ms2ger
edc1d89251 Deny unsafe blocks in script.
As a first start, this allows them indiscriminately where used.
2015-01-09 10:13:25 +01:00
bors-servo
d9751c0fbb auto merge of #4570 : Manishearth/servo/android-warn, r=jdm
My local android build is a bit wonky so I'm not sure if all warnings have been fixed, though. I'll try to poke around and fix it.
2015-01-08 21:54:48 -07:00
Manish Goregaokar
a8326a9138 Fix dead code warning for Android 2015-01-09 10:23:26 +05:30
Glenn Watson
f7b83d9a76 Add support for multiple cef browsers (multiple tabs). 2015-01-09 10:21:49 +10:00
bors-servo
78798026ac auto merge of #4581 : glennw/servo/openssl-update, r=larsbergstrom 2015-01-08 17:15:50 -07:00
bors-servo
94a4a55332 auto merge of #4580 : glennw/servo/glutin-hidpi, r=larsbergstrom 2015-01-08 16:39:51 -07:00
Matt McCoy
64dda93242 Fixes #4573 Replaces the boolean argument of TextInput::adjust[horizontal|vertical] with enum to self document the code 2015-01-08 18:13:52 -05:00
bors-servo
0793137631 auto merge of #4575 : mttr/servo/warnings, r=jdm
Notes:

* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary. 
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72         this_as_query.equiv(other)
                                         ^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```
2015-01-08 16:03:55 -07:00
bors-servo
1699864f53 auto merge of #4546 : glennw/servo/cef-resources, r=larsbergstrom 2015-01-08 15:27:54 -07:00
bors-servo
4cd9eb1253 auto merge of #4574 : Ms2ger/servo/if_let, r=Manishearth
This feature is now supported unconditionally.
2015-01-08 14:42:53 -07:00
Glenn Watson
7818576213 Update android openssl version due to security advisory https://www.openssl.org/news/secadv_20150108.txt 2015-01-09 07:40:17 +10:00
Glenn Watson
09d97bbf40 Fix android unused import error. 2015-01-09 07:39:29 +10:00
Glenn Watson
3e3e3be702 Update glutin for hidpi tests on mac. 2015-01-09 07:13:08 +10:00
Glenn Watson
cf047d6cef Add ability to explicitly set static resources path, used by cef-linux. 2015-01-09 07:04:44 +10:00
bors-servo
1a021f6635 auto merge of #4523 : pcwalton/servo/text-rendering, r=mbrubeck
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.

r? @mbrubeck
2015-01-08 13:48:53 -07:00
Patrick Walton
53b74ae853 layout: Implement text-rendering per SVG 1.1 § 11.7.4.
Like Gecko, we treat `geometricprecision` the same as
`optimizelegibility` for now.
2015-01-08 12:32:58 -08:00
bors-servo
7800d98728 auto merge of #4566 : mattnenterprise/servo/globalref-by-value, r=Ms2ger 2015-01-08 13:12:55 -07:00