Commit graph

10338 commits

Author SHA1 Message Date
Anthony Ramine
0e8bd5dd98 Partially implement getter of Document 2015-05-14 18:28:43 +02:00
Anthony Ramine
69220dfc10 Make HTMLFormElement name attribute use an atom 2015-05-14 18:28:42 +02:00
Anthony Ramine
70e67d5e11 Make HTMLImageElement name attribute use an atom 2015-05-14 18:28:40 +02:00
Anthony Ramine
b86672af0c Implement HTMLAppletElement.name 2015-05-14 18:28:39 +02:00
Anthony Ramine
2176aab642 Import string_cache::Atom into the attributes' macros 2015-05-14 18:28:38 +02:00
bors-servo
8979d77e77 Auto merge of #6037 - jgraham:wpt_update, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6037)
<!-- Reviewable:end -->
2015-05-14 09:00:09 -05:00
James Graham
a884237f9f Update web-platform-tests expected data to revision 41a7d8732d8e5c65728c153d29a34fe9d5192b29 2015-05-14 13:45:29 +01:00
bors-servo
7bda431e61 Auto merge of #6044 - Ms2ger:cleanup, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6044)
<!-- Reviewable:end -->
2015-05-14 07:16:42 -05:00
James Graham
5e8b92f3de Update web-platform-tests to revision 41a7d8732d8e5c65728c153d29a34fe9d5192b29 2015-05-14 13:03:25 +01:00
Ms2ger
d84c3e7a30 Fix some overlong lines. 2015-05-14 13:26:13 +02:00
Ms2ger
40a91d6227 Use HTMLDataListElementCast in HTMLFormElement. 2015-05-14 13:11:49 +02:00
Ms2ger
db61c54858 Remove an unused import. 2015-05-14 13:10:56 +02:00
Ms2ger
422b6bd223 Fix comments in devtools.
In particular, use the right kind of documentation comments.
2015-05-14 13:10:40 +02:00
Ms2ger
5c4d2d7928 Move handling of CanvasWebGLMsgs into WebGLPaintTask::handle_webgl_message.
This clarifies the code flow in WebGLPaintTask::start a bit, and as a bonus,
reduces the line lengths.
2015-05-14 13:09:13 +02:00
bors-servo
b05c3fc0c0 Auto merge of #6022 - jgraham:webdriver_execute_async_script, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6022)
<!-- Reviewable:end -->
2015-05-14 05:02:27 -05:00
James Graham
50f59c8255 Add support for timing out scripts 2015-05-14 10:59:20 +01:00
James Graham
8d10fa1f2d Add basic support for executeAsyncScript.
This relies on a global webdriverCallback function, which is visible to content.
Obviously that's not a long term solution for a number of reasons, but it allows
us to experiment for now
2015-05-14 10:59:17 +01:00
James Graham
98cb65ca0a Wait for the root pipeline to become ready before running webdriver commands. 2015-05-14 10:59:16 +01:00
James Graham
28ac0abf6a Make WebDriver Get() command wait on pages loading before returning.
This makes using WebDriver significantly less racy. Also
refactors the message structure a little
2015-05-14 10:59:10 +01:00
bors-servo
7e022b25a8 Auto merge of #5890 - glennw:iframe-cleanup, r=jdm
This allows most of the jquery test suite to run without exhausting thread resources.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5890)
<!-- Reviewable:end -->
2015-05-13 22:34:59 -05:00
Glenn Watson
2b3737d34e Various fixes for cleaning up iframes, compositor layers, pipelines and threads.
This allows most of the jquery test suite to run without exhausting thread resources.
2015-05-14 11:42:54 +10:00
bors-servo
e25444c263 Auto merge of #6035 - Jinwoo-Song:fix_background_image_position, r=pcwalton
According to CSS2.1 spec, background image should be positioned on padding box.
Spec: http://www.w3.org/TR/CSS21/colors.html#propdef-background-position

Fixes #6034.

r? @jdm 
cc @yichoi

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6035)
<!-- Reviewable:end -->
2015-05-13 20:40:33 -05:00
Jinwoo Song
7283f75679 Position the background image on the padding box.
According to CSS2.1 spec, background image should be positioned on padding box.
Spec: http://www.w3.org/TR/CSS21/colors.html#propdef-background-position

Fixes #6034.
2015-05-14 08:44:33 +09:00
bors-servo
5e61ebaa05 Auto merge of #6031 - glennw:reftest-race-conditions, r=larsberg,jdm
The basic idea is it's safe to output an image for reftest by testing:
 - That the compositor doesn't have any animations active.
 - That the compositor is not waiting on any outstanding paint messages to arrive.
 - That the script tasks are "idle" and therefore won't cause reflow.
    - This currently means page loaded, onload fired, reftest-wait not active, first reflow triggered.
    - It could easily be expanded to handle pending timers etc.
 - That the "epoch" that the layout tasks have last laid out after script went idle, is reflected by the compositor in all visible layers for that pipeline.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6031)
<!-- Reviewable:end -->
2015-05-13 18:37:54 -05:00
Glenn Watson
eec3fad93d Fixes a number of race conditions and reliability issues with reftests and compositor.
The basic idea is it's safe to output an image for reftest by testing:
 - That the compositor doesn't have any animations active.
 - That the compositor is not waiting on any outstanding paint messages to arrive.
 - That the script tasks are "idle" and therefore won't cause reflow.
    - This currently means page loaded, onload fired, reftest-wait not active, first reflow triggered.
    - It could easily be expanded to handle pending timers etc.
 - That the "epoch" that the layout tasks have last laid out after script went idle, is reflected by the compositor in all visible layers for that pipeline.
2015-05-14 09:35:53 +10:00
bors-servo
100e2b4691 Auto merge of #6039 - andreastt:native_mac_notifications, r=jdm
Also refactors the notification function to introduce some single
responsibility.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6039)
<!-- Reviewable:end -->
2015-05-13 16:11:53 -05:00
bors-servo
a388a76d82 Auto merge of #5995 - zmike:glutin-parenting, r=jdm
needed for embedding api usage

Depends on https://github.com/servo/glutin/pull/20

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5995)
<!-- Reviewable:end -->
2015-05-13 15:27:47 -05:00
bors-servo
c0ee952a2a Auto merge of #5911 - pcwalton:absolute-inline-containing-blocks, r=mbrubeck
r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5911)
<!-- Reviewable:end -->
2015-05-13 14:27:21 -05:00
Patrick Walton
a299a2c71c layout: Minor whitespace and formatting cleanups. 2015-05-13 12:00:55 -07:00
Patrick Walton
711993eb46 gfx: Print out stacking context info when dumping display lists. 2015-05-13 12:00:54 -07:00
Patrick Walton
1f0b5889da layout: Allow inline elements to be containing blocks for
absolutely-positioned elements.

This also implements a little bit of the infrastructure needed to
support for fragmentation via support for multiple positioned fragments
in one flow.

Improves Google.
2015-05-13 12:00:53 -07:00
Mike Blumenkrantz
d2133b2467 bump glutin version for cargo 2015-05-13 13:25:00 -04:00
Mike Blumenkrantz
16a9712ab7 add parent window setting when creating windows with glutin
needed for embedding api usage
2015-05-13 13:24:56 -04:00
Andreas Tolfsen
b1d03dc460 build: native notifications on Mac OS
Also refactors the notification function to introduce some single
responsibility.
2015-05-13 18:11:31 +01:00
bors-servo
b3b9deafa7 Auto merge of #6029 - andars:master, r=jdm
Closes #5582

Uses `terminal-notifier` to generate notifications on mac.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6029)
<!-- Reviewable:end -->
2015-05-12 22:08:25 -05:00
bors-servo
e7db42f931 Auto merge of #6027 - Adenilson:unusedOpts01, r=jdm
Seems to be a left over from quite some time ago.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6027)
<!-- Reviewable:end -->
2015-05-12 21:25:58 -05:00
bors-servo
606ab1df44 Auto merge of #6013 - glennw:compositor-race, r=pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6013)
<!-- Reviewable:end -->
2015-05-12 20:44:19 -05:00
andars
c160248717 Add mac support for build notifications
Closes #5582
2015-05-12 18:38:47 -07:00
bors-servo
dc27f8020e Auto merge of #6012 - pcwalton:position-relative-painting-order, r=mbrubeck
Improves Talking Points Memo.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6012)
<!-- Reviewable:end -->
2015-05-12 19:55:44 -05:00
Patrick Walton
87a620e1b3 layout: Draw elements with position: relative; z-index: auto over
ordinary content per CSS 2.1 Appendix E.

Improves Talking Points Memo.
2015-05-12 17:32:59 -07:00
Adenilson Cavalcanti
37b6eeddff Removing unused start up parameter.
Seems to be a left over from quite some time ago.
2015-05-12 14:41:08 -07:00
bors-servo
234fb68a16 Auto merge of #6024 - larsbergstrom:android_update, r=mbrubeck
fixes #6002

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6024)
<!-- Reviewable:end -->
2015-05-12 16:22:20 -05:00
bors-servo
3e69bf8cd2 Auto merge of #6023 - mbrubeck:dev-nop, r=larsbergstrom
This is part of #5965.  It needs to land before the rest of that PR, so we can land servo/saltfs#28 without breaking automated builds for other PRs. r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6023)
<!-- Reviewable:end -->
2015-05-12 15:39:11 -05:00
Lars Bergstrom
853bcccd69 Update android-rs-glue for loading SpiderMonkey on android 2015-05-12 15:36:44 -05:00
bors-servo
398e7f07fe Auto merge of #6019 - Ms2ger:preshint-border, r=pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6019)
<!-- Reviewable:end -->
2015-05-12 14:47:49 -05:00
Matt Brubeck
2dc048116e Add a no-op --dev option to the mach build command.
This is part of #5965.  It needs to land before the rest of that PR, so we can
land servo/saltfs#28 without breaking automated builds for other PRs.
2015-05-12 11:32:08 -07:00
bors-servo
76225bdccb Auto merge of #5992 - zmike:random-fixups, r=larsbergstrom
Attempt to not panic as much if the resources/ dir is not where it's expected to be.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5992)
<!-- Reviewable:end -->
2015-05-12 13:26:22 -05:00
Mike Blumenkrantz
a838318b31 unset resources path on linux in embedding crate
this blocked execution on linux due to bad paths
2015-05-12 13:46:34 -04:00
Mike Blumenkrantz
ac6aa9b8b7 when finding resource_dir, try exe launch directory
external apps using servo may just have the resources/ in the same place
2015-05-12 13:45:49 -04:00
Mike Blumenkrantz
082479344f fix Stylist::add_quirks_mode_stylesheet() to not panic when resources cannot be loaded 2015-05-12 13:45:48 -04:00