Simon Sapin
3670ee6f1f
Merge pull request #2875 from SimonSapin/rust-url
...
Start dogfooding rust-url
2014-07-21 20:23:02 +01:00
Simon Sapin
b84065f574
Remove the now unused servo_util::url module.
2014-07-21 20:22:31 +01:00
Simon Sapin
6917fbf28e
Used rust-url directly instead of servo_util::url
...
The latter now only calls the former.
2014-07-21 20:22:29 +01:00
Simon Sapin
779cb44a44
Move is_image_data() where it’s used.
2014-07-21 20:21:36 +01:00
Simon Sapin
b902e0f8f5
Remove UrlMap<T>, just use HashMap<rust_url::Url, T>
2014-07-21 20:21:35 +01:00
Simon Sapin
447655144d
Only interpret URL as filenames in command-line arguments.
2014-07-21 20:21:35 +01:00
Simon Sapin
2fea2cd911
Don’t drop whitespace in data: URLs. FromBase64 already skips newlines.
2014-07-21 20:21:35 +01:00
Simon Sapin
6848e78bb3
Percent-decoding also applies to base64 data: URLs.
2014-07-21 20:21:35 +01:00
Simon Sapin
609762ac63
Move about: URL handling from parsing to loading. Fix #1094
2014-07-21 20:21:35 +01:00
Simon Sapin
709504e1f9
Hard-code resource task loaders. They never change.
2014-07-21 20:21:35 +01:00
Simon Sapin
dc49f4fda6
Start dogfooding rust-url. Fix #1673 .
2014-07-21 20:21:35 +01:00
Simon Sapin
71a869284e
Add rust-url as a submodule and a Makefile for it.
2014-07-21 20:21:35 +01:00
Josh Matthews
f07d999463
Merge pull request #2885 from arielb1/remove-compositing-layout
...
Break the compositing -> layout dependency
2014-07-21 15:15:10 -04:00
Cameron Zwarich
d31fde9de8
Merge pull request #2881 from zwarich/compositor-data-cleanup
...
CompositorData cleanup
2014-07-21 10:03:17 -07:00
Ariel Ben-Yehuda
1d5b51450b
Break the layout -> compositing dependency
...
This adds a new layout_traits component for the shared trait.
This should allow for faster builds.
2014-07-21 18:35:35 +03:00
Ariel Ben-Yehuda
7ac6924319
Make compositing generic over layout_task
...
This will allow breaking the layout -> compositing dependency
2014-07-21 18:34:52 +03:00
Josh Matthews
1578189d03
Merge pull request #2850 from ebalint/1992_move_timer_firing_impl
...
Move timer firing implemention into Window #1992
2014-07-21 11:14:50 -04:00
Ms2ger
4b3a78e54b
Merge pull request #2883 from glennw/textrun-1
...
Remove unused field before other upcoming changes; r=Ms2ger
2014-07-21 10:35:06 +02:00
Glenn Watson
94ae3bbd0b
Remove unused field before other upcoming changes.
2014-07-21 14:59:07 +10:00
Manish Goregaokar
2ed7444624
Merge pull request #2876 from saneyuki/match
...
Implement Element.matches()
2014-07-20 17:18:38 +05:30
Tetsuharu OHZEKI
d605a00930
Implement Element.matches().
2014-07-20 20:21:17 +09:00
Cameron Zwarich
2e40baba09
Always create CompositorData with a new layer
...
Since it makes no sense to create one without the other, the public
interface shouldn't let you do anything else.
2014-07-19 20:14:42 -07:00
Cameron Zwarich
31049adc1d
Simplify CompositorData creation
...
We already have a layer_properties struct, so we should always use it
instead of passing the information in it out-of-band.
2014-07-19 20:14:42 -07:00
Cameron Zwarich
61105dcbff
Fix indentation
2014-07-19 20:14:42 -07:00
Cameron Zwarich
8ac35a50f8
Use 'background_color' consistently over 'unrendered_color'
2014-07-19 20:14:41 -07:00
Cameron Zwarich
8cab8d7311
Remove the unused cpu_painting field of CompositorData
2014-07-19 20:14:41 -07:00
Cameron Zwarich
514eaf4610
Merge pull request #2880 from zwarich/iframes-revert
...
Revert "Merge pull request #2819 from bjwbell/iframe-layers"
2014-07-19 17:52:57 -07:00
Cameron Zwarich
a7eafbc48e
Revert "Merge pull request #2819 from bjwbell/iframe-layers"
...
This reverts commit 0200b61f71
, reversing
changes made to ca96821902
.
2014-07-19 17:17:00 -07:00
Cameron Zwarich
39b9397c2b
Merge pull request #2874 from bjwbell/borders-ref-test
...
Modify borders ref test to work on OS X
2014-07-19 13:08:05 -07:00
Manish Goregaokar
7bb13a183a
Merge pull request #2873 from Manishearth/xhr-worker
...
Check for worker scope in responseText setter; r=Ms2ger
2014-07-20 01:09:19 +05:30
Cameron Zwarich
0200b61f71
Merge pull request #2819 from bjwbell/iframe-layers
...
Restructure compositor layers to work with iframes.
2014-07-19 11:25:06 -07:00
Bryan Bell
0c9f469f64
Restructure compositor layers to work with iframes
...
When a frame is selected via set_ids, a tree of root compositor
layers is also created, matching the tree of pipelines in the frame.
This decouples the chronological ordering dependency for parent frames
and child iframes sending CreateOrUpdateRootLayer &
CreateOrUpdateDescendentLayer messages.
Change the Compositor ready and render states to per pipeline.
This ensures the compositor doesn't composite for an epoch until
every *pipeline* in the epoch is finished rendering.
For iframes it fixes a bug where the compositor didnt wait on the
child pipeline ready state before compositing the window.
Gotchas:
* layout task or script task failure on exit ("task '' failed at sending
on a closed channel"), this happens if the child iframe shares the
same script task as the parent and can be avoided by adding the
sandbox attribute to the iframe.
Other changes:
* Inline set_clipping_rect in compositor.rs
* Commented out ref test simple_iframe.html fails on os x
2014-07-19 10:46:11 -07:00
Manish Goregaokar
cf7e9c1a3b
Check for worker scope in responseText setter
2014-07-19 21:32:03 +05:30
Bryan Bell
12a2cde8a5
Modify borders ref test to work on OS X
...
Issue https://github.com/mozilla/servo/issues/2848 has details.
This commit uncomments the borders ref test in basic.list
and modifies the test to work with viewports up to 4096px wide.
Also as a workaround change the html element background to white,
otherwise pixel (0,0) is black (it should be white since the border
at pixel (0, 0) is white. The bug is mostly likely a regression
in rust-layers.
2014-07-19 05:37:43 -07:00
Cameron Zwarich
ca96821902
Merge pull request #2870 from mrobinson/more-cleanup
...
Update to reflect rust-layers changes
2014-07-18 23:48:45 -07:00
Martin Robinson
072a2768e8
Update to reflect rust-layers changes
...
It is no longer necessary to flush pending buffer requests when adding
buffers nor to manually create textures for layers.
2014-07-18 19:32:49 -07:00
Matt Brubeck
d43db3df30
Merge pull request #2863 from mbrubeck/2862-null-fun
...
Don't fail on invalid JS syntax in event handlers. r=Ms2ger
2014-07-18 15:40:10 -07:00
Patrick Walton
45379a6a61
Merge pull request #2869 from SimonSapin/writing-modes-rebase
...
Convert layout code to use logical directions (rebase)
2014-07-18 13:27:23 -07:00
Simon Sapin
1807c29f3e
Convert layout code to use logical directions.
2014-07-18 19:41:35 +01:00
Simon Sapin
94b630e2ed
Mark as expected failure a reftest that uses 'direction'.
...
That property is behind the new --experimental flag.
2014-07-18 19:35:01 +01:00
Simon Sapin
bc2aa8430b
Move CSS Writing Modes properties behind a new command-line flag.
2014-07-18 19:35:01 +01:00
Matt Brubeck
d20b216e31
Don't fail on invalid JS syntax in event handlers.
...
Fixes #2862 .
2014-07-18 11:05:35 -07:00
Ms2ger
7f6bd1707e
Merge pull request #2867 from Ms2ger/postMessage
...
Implement Worker.postMessage; r=larsberg
2014-07-18 16:06:04 +02:00
Lars Bergstrom
0f9df7b616
Merge pull request #2866 from glennw/pg-scroll
...
Add PgUp/PgDn scrolling support.
2014-07-18 06:30:39 -05:00
Ms2ger
5b6aef3d9c
Implement Worker.postMessage.
2014-07-18 13:25:36 +02:00
Ms2ger
07a89a06c9
Implement MessageEvent::dispatch.
...
This avoids duplicating the dispatching code for multiple postMessage
implementations.
2014-07-18 13:24:27 +02:00
Patrick Walton
aa43c1493a
Merge pull request #2865 from glennw/wiki-layout-2
...
Fix issue with auto table layout when cells have multiple fragments. Fix...
2014-07-17 20:32:12 -07:00
Glenn Watson
3ddf2036ab
Add PgUp/PgDn scrolling support.
2014-07-18 12:53:33 +10:00
Glenn Watson
049b99cfac
Fix issue with auto table layout when cells have multiple fragments. Fixes some layout issues related to #2554 .
2014-07-18 12:11:03 +10:00
glennw
c3e6d956ff
Merge pull request #2844 from glennw/atom-element
...
Convert element name to be stored as atom instead of string.
2014-07-18 10:13:24 +10:00