Corey Farwell
00fa3b2f85
Implement Default trait for DOMString
2015-11-11 22:12:56 -05:00
bors-servo
49d48a8680
Auto merge of #8475 - benschulz:xhr-timeout-ordering2, r=jdm
...
Execute XHR timeout callbacks directly. (Fixes #8468.)
This is a fix for #8468 .
Currently XHR timeouts schedule themselves for execution via `CommonScriptMsg::RunnableMsg`s. This was necessary when these timeouts used a separate thread to schedule themselves. Now it's a potential race that should have been eliminated as part of #8168 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8475 )
<!-- Reviewable:end -->
2015-11-12 04:31:13 +05:30
benshu
7623e89506
Execute XHR timeout callbacks directly. (Fixes #8468.)
2015-11-11 23:12:07 +01:00
bors-servo
12f6ba29a7
Auto merge of #8412 - ecoal95:webidl-sequence-return, r=jdm
...
Add WebIDL sequence return values
And use it for `WebGLRenderingContext::getSupportedExtensions`.
Part of #544
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8412 )
<!-- Reviewable:end -->
2015-11-11 23:15:15 +05:30
Emilio Cobos Álvarez
e33330db4e
Implement WebIDL sequence return value using JS_NewArrayObject1
...
This commits changes the creation of the array to use the length, and
sets the elements later.
Reference implementation:
07ed19e582/js/xpconnect/public/nsTArrayHelpers.h (L16)
2015-11-11 18:30:34 +01:00
Emilio Cobos Álvarez
75ecb67e62
webgl: Add test for getSupportedExtensions
2015-11-11 17:18:28 +01:00
Emilio Cobos Álvarez
b740b90b8d
webgl: Implement getSupportedExtensions
2015-11-11 17:13:59 +01:00
Emilio Cobos Álvarez
63aa6862b4
Implement WebIDL sequence return values
2015-11-11 17:13:59 +01:00
bors-servo
01ff78b438
Auto merge of #8466 - frewsxcv:node-value, r=nox
...
Simplify script::dom::node NodeValue implementations
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8466 )
<!-- Reviewable:end -->
2015-11-11 21:43:21 +05:30
bors-servo
75e01de627
Auto merge of #8460 - larsbergstrom:remove_zipalign, r=Ms2ger
...
Disable zipalign until we have stable builder automation to install a…
…nd locate it
r? @mbrubeck
The basic problem here is that `zipalign` is in the tools directory on some installs, in build-tools/22.0 on some, build-tools/20.0 on others, etc. I'll need to find a more stable way of locating the tool (even if it's just shelling out to `find` - I almost autoconf!). Disabling use of it for now since it's optional and is currently breaking our nightly builds.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8460 )
<!-- Reviewable:end -->
2015-11-11 21:14:03 +05:30
bors-servo
5e6efd62c1
Auto merge of #8459 - frewsxcv:namednodemap-iter, r=Ms2ger
...
Simplify iterating over Element attributes
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8459 )
<!-- Reviewable:end -->
2015-11-11 20:19:49 +05:30
bors-servo
f03a8261c5
Auto merge of #8197 - nox:variadic-interface-argument, r=jdm
...
Support variadic interface arguments (fixes #8159 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8197 )
<!-- Reviewable:end -->
2015-11-11 19:32:26 +05:30
Corey Farwell
261ce49423
Simplify script::dom::node NodeValue implementations
2015-11-11 08:53:53 -05:00
Anthony Ramine
acb13dc899
Support variadic interface arguments ( fixes #8159 )
...
We use a RootedVec value in codegen, of which we use the `r()` method to
pass `&[&T]` to the interface methods.
2015-11-11 14:52:21 +01:00
Anthony Ramine
e66a361e08
Do not import union constructors in dom::testbinding
2015-11-11 14:19:36 +01:00
Anthony Ramine
6d72293681
Remove TestBinding::global
...
Use global_root_from_reflector() instead.
2015-11-11 14:19:35 +01:00
Anthony Ramine
f84f16384d
Remove unused parameter in instantiateJSToNativeConversionTemplate()
2015-11-11 14:19:34 +01:00
Anthony Ramine
b290a3161d
Clean up the conversion routines
...
Functions returning `Root<T>` are prefixed by "root_" and the ones returning
`*const T` by "native_".
Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones
taking `&T` by "_from_reflector".
2015-11-11 14:19:30 +01:00
bors-servo
aa105d89b4
Auto merge of #8463 - simartin:issue_8413, r=Ms2ger
...
Issue #8413 : Enable webgl tests in web-platform-test.
Fixes #8413 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8463 )
<!-- Reviewable:end -->
2015-11-11 17:04:06 +05:30
Simon Martin
e5329307b2
Issue #8413 : Enable webgl tests in web-platform-test.
2015-11-11 09:02:05 +01:00
Corey Farwell
a7c470de09
Simplify iterating over Element attributes
2015-11-10 21:42:48 -05:00
bors-servo
fd5540df62
Auto merge of #8453 - frewsxcv:atoms, r=jdm
...
Prefer Atoms over strs for comparison
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8453 )
<!-- Reviewable:end -->
2015-11-11 06:55:39 +05:30
bors-servo
df81cd7ce9
Auto merge of #8168 - benschulz:xhr-timeout-ordering, r=jdm
...
XHR timeouts use same abstraction as scripts timers. (fixes #3396 )
Alright, this is it. Finally the fix for #3396 . :D
I'll add two comments via reviewable in a second.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8168 )
<!-- Reviewable:end -->
2015-11-11 06:08:28 +05:30
Lars Bergstrom
d3277ae57a
Disable zipalign until we have stable builder automation to install and locate it
2015-11-10 18:30:26 -06:00
benshu
d27a3244f2
XHR timeouts use same abstraction as scripts timers. ( fixes #3396 )
2015-11-11 00:52:34 +01:00
bors-servo
532f9a053a
Auto merge of #8256 - notriddle:master, r=eefriedman
...
Write reflow results, even with no root node.
Fixes #8240
Test in w3c/csswg-test#928 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8256 )
<!-- Reviewable:end -->
2015-11-11 04:49:49 +05:30
Michael Howell
d32a2d6cfc
Write reflow results, even with no root node.
...
Fixes #8240
2015-11-10 15:01:46 -07:00
bors-servo
13226f8472
Auto merge of #8381 - bholley:attr_restyle_hints, r=pcwalton
...
Implement attribute restyle hints
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8381 )
<!-- Reviewable:end -->
2015-11-11 01:27:45 +05:30
Bobby Holley
5d859568cf
Update test expectations.
2015-11-10 11:57:27 -08:00
Bobby Holley
a79f6e43a0
Tests.
2015-11-10 11:57:26 -08:00
Bobby Holley
b29369296c
Add ::from_layout_js factory to LayoutNode, LayoutElement, and LayoutDocument.
2015-11-10 11:57:25 -08:00
Bobby Holley
7fa7936657
Implement attribute restyle hints.
...
Fixes #6942 .
2015-11-10 11:57:24 -08:00
Bobby Holley
47744d95ad
Make RESTYLE_SELF imply RESTYLE_DESCENDANTS.
...
This is a temporary workaround for #8438 .
2015-11-10 11:41:28 -08:00
bors-servo
8e80e38c78
Auto merge of #8456 - mrobinson:wpt-fixes, r=jgraham
...
Fix some issues with the WPT UI output
When running in non-interactive mode, print test names as they are run.
This prevent timeouts on the bots, which are detected by watching for
output from the test runner.
When running in iTerm.app don't use the multi-line status line, as the
carriage return is not processed properly. Instead use a single-line
output with the last test run and then backspace characters to keep it
up to date.
Fixes #8368 .
Fixes #8395 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8456 )
<!-- Reviewable:end -->
2015-11-10 22:32:03 +05:30
Martin Robinson
75f8963d63
Fix some issues with the WPT UI output
...
When running in non-interactive mode, print test names as they are run.
This prevent timeouts on the bots, which are detected by watching for
output from the test runner.
When running in iTerm.app don't use the multi-line status line, as the
carriage return is not processed properly. Instead use a single-line
output with the last test run and then backspace characters to keep it
up to date.
Fixes #8368 .
Fixes #8395 .
2015-11-10 08:24:50 -08:00
Corey Farwell
55477eb618
Prefer Atoms over strs for comparison
2015-11-10 08:58:57 -05:00
bors-servo
fb00e6143f
Auto merge of #8452 - Ms2ger:test-ref, r=frewsxcv
...
Use wptrunner for some old-style reftests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8452 )
<!-- Reviewable:end -->
2015-11-10 19:27:18 +05:30
bors-servo
6772461002
Auto merge of #8451 - Ms2ger:tidy-sync, r=frewsxcv
...
Ignore sync directories in test-tidy.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8451 )
<!-- Reviewable:end -->
2015-11-10 18:44:20 +05:30
Ms2ger
866eb0551e
Move jpeg_normal.html and jpeg_progressive.html to wpt reftests.
2015-11-10 14:03:33 +01:00
Ms2ger
eb882403fb
Move inset_blackborder.html and outset_blackborder.html to wpt reftests.
2015-11-10 12:35:01 +01:00
Ms2ger
17cdd1769d
Move input_height_a.html to wpt reftests.
2015-11-10 12:25:47 +01:00
Ms2ger
17376dd96b
Move inline_whitespace_a.html and inline_whitespace_b.html to wpt reftests.
2015-11-10 12:15:38 +01:00
Ms2ger
3ed4e62057
Move inline_block_parent_width.html and inline_block_parent_width_percentage.html to wpt reftests.
2015-11-10 11:36:54 +01:00
Ms2ger
cfbe639e79
Move inline_block_margin_auto_a.html to wpt reftests.
2015-11-10 11:23:39 +01:00
Ms2ger
7d376bfe81
Move inline_background_a.html to wpt reftests.
2015-11-10 11:16:10 +01:00
Ms2ger
026994e4be
Ignore sync directories in test-tidy.
2015-11-10 10:29:26 +01:00
bors-servo
81f094b129
Auto merge of #8447 - frewsxcv:htmltableelement-width-idl-attribute, r=eefriedman
...
Implement 'width' IDL attribute on <table>
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8447 )
<!-- Reviewable:end -->
2015-11-10 12:54:30 +05:30
bors-servo
32a91bc656
Auto merge of #8444 - rilut:patch-2, r=frewsxcv
...
refactor(htmlhrelement.rs): color setter now uses macro
Changed the function in #L44-47 to a macro usage. Fixes #8433 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8444 )
<!-- Reviewable:end -->
2015-11-10 12:12:25 +05:30
Bobby Holley
c9704992a9
Factor the name-related fields of Attr into a struct and move it to style.
2015-11-09 21:40:22 -08:00
Bobby Holley
488c1291d4
Hoist AttrValue into style.
2015-11-09 21:40:22 -08:00