Commit graph

5665 commits

Author SHA1 Message Date
Patrick Walton
6bdafc8a59 Merge pull request #2902 from glennw/xvfb-fixes
Bump submodules for azure/skia with fixes for xvfb.
2014-07-22 19:17:13 -07:00
Josh Matthews
3c35a83939 Merge pull request #2899 from glennw/fix-deps
Fix submodule dependencies for string cache.
2014-07-22 21:37:02 -04:00
Glenn Watson
2bcb272675 Bump submodules for azure/skia with fixes for xvfb. 2014-07-23 10:45:33 +10:00
Manish Goregaokar
ae5093ed4f Merge pull request #2901 from Adenilson/innerHTML-step01b
Move Parser creation to its own function (issue #849).
2014-07-23 04:53:10 +05:30
Adenilson Cavalcanti
67f43e2b67 Move Parser creation to its own function (issue #849).
This is the first step to implement innerHTML, as we need a way
create and initialize a parser object while setting the received
DOMString (which may be either text/html/whatever).
2014-07-22 15:36:45 -07:00
Glenn Watson
0659fe7e66 Fix submodule dependencies for string cache. 2014-07-23 07:41:52 +10:00
Josh Matthews
9f06b3ce17 Merge pull request #2887 from arielb1/remove-compositing-layout
Clean up duplication in Pipeline
2014-07-22 13:43:54 -04:00
Ariel Ben-Yehuda
78366c643b Remove some duplication in compositing 2014-07-22 20:41:17 +03:00
Simon Sapin
88da562a46 Merge pull request #2886 from SimonSapin/org-rename
Use new submodule URLs after GitHub orginazation rename.
2014-07-22 11:19:15 +01:00
Simon Sapin
de3be05f22 Use new submodule URLs after GitHub orginazation rename. 2014-07-22 10:48:33 +01:00
Simon Sapin
4ccf489d79 Merge pull request #2892 from glennw/element-atom
Port element traits to use atoms instead of strings.
2014-07-22 09:33:08 +01:00
Manish Goregaokar
708a3443db Merge pull request #2889 from Adenilson/cleanupURL01
Recycle use of URL local variable
2014-07-22 13:47:41 +05:30
Simon Sapin
2221600301 Merge pull request #2891 from glennw/rust-url-check
Bump submodule ptr for rust-url to fix make-check error.
2014-07-22 08:18:13 +01:00
Patrick Walton
3d796b1ccf Merge pull request #2890 from glennw/font-size
Change calculate_line_height to use font-size from style.
2014-07-21 19:11:28 -07:00
Glenn Watson
33dcb08f02 Port element traits to use atoms instead of strings. 2014-07-22 11:36:35 +10:00
Glenn Watson
dc6d540913 Bump submodule ptr for rust-url to fix make-check error. 2014-07-22 10:48:48 +10:00
Adenilson Cavalcanti
ffbb87b8a1 Recycle use of a local variable and remove what seems to be 2 extraneous URL objects. 2014-07-21 15:40:55 -07:00
Glenn Watson
383ce249dc Change calculate_line_height to use font-size from style. 2014-07-22 08:33:05 +10:00
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