Patrick Walton
be5b6ff8c2
Update CSS tests expected data
2015-08-04 09:54:31 -07:00
Patrick Walton
04928bf1e3
layout: Don't use the block container inline size as the initial
...
computed table inline size.
Makes google.com fully centered.
2015-08-04 09:40:35 -07:00
Patrick Walton
0a589d413d
layout: When repairing styles for incremental reflow, only repair
...
styles of nodes that represent the dirty node, *including its
pseudo-element*.
Fixes lots more jumpiness.
A manual test, `inline-pseudo-repair-jumpiness.html`, has been added. I
was unable to automate it, so I will file a followup issue on that.
2015-08-04 09:02:41 -07:00
bors-servo
672b38e83a
Auto merge of #6946 - pcwalton:block-formatting-context-margins, r=mbrubeck
...
layout: If the container of a block formatting context has margins in the inline direction, subtract those from the inline size of preceding floats.
Makes the content area on http://reddit.com/r/rust visible.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6946 )
<!-- Reviewable:end -->
2015-08-04 02:41:40 -06:00
bors-servo
447c991ebb
Auto merge of #6943 - dzbarsky:context, r=jdm
...
Clean up some methods in CanvasRendeingContext2D
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6943 )
<!-- Reviewable:end -->
2015-08-04 00:46:09 -06:00
David Zbarsky
9e5c2e22d8
Clean up some methods in CanvasRendeingContext2D
2015-08-03 23:32:11 -04:00
Patrick Walton
3d9cc784d0
layout: If the container of a block formatting context has margins in
...
the inline direction, subtract those from the inline size of preceding
floats.
Makes the content area on http://reddit.com/r/rust visible.
2015-08-03 19:22:50 -07:00
bors-servo
d66c59a152
Auto merge of #6784 - glennw:offset-ext, r=pcwalton
...
Implement offsetParent/Top/Left/Width/Height.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6784 )
<!-- Reviewable:end -->
2015-08-03 18:39:43 -06:00
Glenn Watson
39972a174e
Fix panic when called on root node, and update test expectations.
...
The three tests that are marked as failures are because they use offsetWidth as a dummy to force a layout flush. Now that these exist, they expose an unrelated bug with reflow.
2015-08-04 08:59:27 +10:00
Matt Brubeck
f8e92b2b01
Implement the unicode-bidi property
2015-08-03 14:12:33 -07:00
Glenn Watson
9e5687e3e7
Implement offsetParent/Top/Left/Width/Height.
2015-08-03 11:55:38 +10:00
Glenn Watson
b9fea3deb3
Fix percentage height calculation, absolute containing block height calculations.
...
It's not possible to correctly determine during the css cascade whether the container height
is explicitly specified. Additionally, the spec https://drafts.csswg.org/css2/visudet.html#the-height-property
says this should affect the *used* height, rather than the computed height.
This significantly improves the layout in #6643 .
2015-08-03 10:47:56 +10:00
bors-servo
b7261a2073
Auto merge of #6714 - boghison:filelist, r=jdm
...
Implement a FileList
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6714 )
<!-- Reviewable:end -->
2015-08-01 20:16:14 -06:00
bors-servo
c6b043582b
Auto merge of #6741 - servo:fix-setpropertypriority, r=pcwalton
...
Fix CSSStyleDeclaration::setPropertyPriority and some refactoring
r? @Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6741 )
<!-- Reviewable:end -->
2015-08-01 15:00:06 -06:00
Bogdan Cuza
8bc66f97f8
Implement the FileList interface. Fixes #6708
2015-08-01 19:31:20 +02:00
Michael Howell
ac65817d2e
Make output results valid Markdown tables.
2015-07-31 21:57:26 -07:00
Michael Howell
a93b4bba6d
test-tidy fixes.
2015-07-31 21:49:01 -07:00
Michael Howell
f82f46680e
UI cheeze.
2015-07-31 21:24:23 -07:00
Michael Howell
6749bed1f5
Fix it so it actually exits correctly.
2015-07-31 21:24:23 -07:00
Michael Howell
c602af2050
Integrate dromaeo with mach.
2015-07-31 21:24:22 -07:00
Michael Howell
ff217106d3
First try at Dromaeo test runner.
2015-07-31 21:24:21 -07:00
Patrick Walton
024c4df912
script: Fix merge fallout.
2015-07-31 11:28:09 -07:00
Patrick Walton
2aa5174246
script: Make the resource task communication use IPC channels.
2015-07-31 11:28:09 -07:00
Simon Sapin
e2984349ed
Add a test for CSSStyleDeclaration.setPropertyPriority
2015-07-31 08:09:24 +02:00
bors-servo
ff0549a923
Auto merge of #6857 - dzbarsky:rm-test, r=metajack
...
Delete unneeded test now that DOMTokenList.toggle exists
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6857 )
<!-- Reviewable:end -->
2015-07-30 21:52:19 -06:00
bors-servo
e458dca65b
Auto merge of #6835 - metajack:cssparserup, r=Ms2ger
...
Update to latest rust-cssparser.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6835 )
<!-- Reviewable:end -->
2015-07-30 17:24:38 -06:00
Jack Moffitt
154b5fd6da
Update to latest rust-cssparser.
...
This also updates wpt tests for new CSS Level 4 color parsing, and
disables the relevant CSS tests until they can be updated (tracked
by #6856 ).
2015-07-30 16:41:14 -06:00
bors-servo
e42fddd9cc
Auto merge of #6851 - dzbarsky:gCS, r=jdm
...
Return None as style for elements not in a document
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6851 )
<!-- Reviewable:end -->
2015-07-30 16:30:57 -06:00
bors-servo
4837dd9a1c
Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapin
...
Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30)
This builds and passes unit tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850 )
<!-- Reviewable:end -->
2015-07-30 14:46:13 -06:00
David Zbarsky
113665618b
Delete unneeded test now that DOMTokenList.toggle exists
2015-07-30 16:40:11 -04:00
David Zbarsky
36145d0686
Return None as style for elements not in a document
2015-07-30 12:36:08 -04:00
Simon Sapin
f10851e788
Update heap size tests for Vec allocation strategy change.
2015-07-30 17:30:53 +02:00
bors-servo
5873a5cf20
Auto merge of #6800 - frewsxcv:childnode-before-childnode-after, r=Ms2ger
...
Implement ChildNode::before & ChildNode::after
Continued from #6536
The current implementations of `ChildNode::before` and
`ChildNode::after` do not match the WHATWG spec. This commit updates the
implementations to match the spec.
Our current implementation of `ChildNode::after` passes all the WPT
tests. So I made sure to add a regression test that failed with the
current implementation. There are a few other unit tests I added
to exhaust other corner cases I encountered.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6800 )
<!-- Reviewable:end -->
2015-07-30 04:13:39 -06:00
bors-servo
3a112bc07f
Auto merge of #6834 - jdm:named-constructor-prototype, r=Ms2ger
...
Use an actual byte string when defining the prototype of named constr…
…uctors. Fixes #6730 .
r? @Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6834 )
<!-- Reviewable:end -->
2015-07-29 22:07:35 -06:00
bors-servo
acbca7b3aa
Auto merge of #6798 - dzbarsky:gCS, r=pcwalton
...
Implement getComputedStyle
It's not quite done but can probably be reviewed anyway.
I still need to finish up a few of the ToCss impls, I just got lazy and wanted to make sure things worked.
The computation of the used values is definitely not right, I'm going to investigate that.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6798 )
<!-- Reviewable:end -->
2015-07-29 18:48:45 -06:00
David Zbarsky
e484d6b5e3
Implement getComputedStyle
2015-07-29 20:17:50 -04:00
bors-servo
28e163d6c4
Auto merge of #6654 - aweinstock314:add-x11-copy-to-clipboard, r=jdm
...
Add copy-to-clipboard feature under x11
The main work is in the the rust-clipboard library, this PR updates Cargo.lock and adds plumbing.
0337e48b3f
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6654 )
<!-- Reviewable:end -->
2015-07-29 11:26:00 -06:00
Jack Moffitt
65811cfa02
Merge pull request #6792 from jgraham/css-test-update
...
Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8
2015-07-29 11:25:58 -06:00
Josh Matthews
b2cf27ba5d
Use an actual byte string when defining the prototype of named constructors. Fixes #6730 .
2015-07-29 12:39:26 -04:00
Avi Weinstock
f86252a60b
Add set_clipboard_context function and relevant plumbing. Use Option more consistantly (less unwraps) in textinput's selection handling.
2015-07-29 12:19:37 -04:00
Corey Farwell
8cfccda542
Implement ChildNode::before & ChildNode::after
...
Continued from #6536
The current implementations of `ChildNode::before` and
`ChildNode::after` do not match the WHATWG spec. This commit updates the
implementations to match the spec.
Our current implementation of `ChildNode::after` passes all the WPT
tests. So I made sure to add a regression test that failed with the
current implementation. There are a few other unit tests I added
to exhaust other corner cases I encountered.
2015-07-29 22:44:19 +07:00
bors-servo
d707792cce
Auto merge of #6828 - Ms2ger:intermittents, r=SimonSapin
...
Try to reduce intermittent failures.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6828 )
<!-- Reviewable:end -->
2015-07-29 05:32:52 -06:00
Ms2ger
89735bac80
Disable canvas_complexshapes_arcto_001.htm.
2015-07-29 12:47:34 +02:00
bors-servo
96b0f96ce2
Auto merge of #6803 - farodin91:blob, r=Ms2ger
...
Adding for support Blob.{close,isClose} #6723
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6803 )
<!-- Reviewable:end -->
2015-07-29 04:41:19 -06:00
Ms2ger
1b897abf98
Disable canvas_complexshapes_beziercurveto_001.htm.
2015-07-29 10:06:05 +02:00
farodin91
20f99e92d8
Adding for support Blob.{close,isClose} #6723
2015-07-29 09:54:08 +02:00
bors-servo
2ec4c49de8
Auto merge of #6804 - Ms2ger:style-attr-tests, r=SimonSapin
...
Enable css-style-attr tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6804 )
<!-- Reviewable:end -->
2015-07-29 00:25:27 -06:00
bors-servo
2df88ee4b9
Auto merge of #6793 - notriddle:hsts-preload, r=jdm
...
Add basic unit test for `preload_hsts_domains`.
Closes #6789 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6793 )
<!-- Reviewable:end -->
2015-07-28 19:01:39 -06:00
David Zbarsky
f44691c91d
Implement Range#extractContents
2015-07-28 12:52:29 -04:00
Ms2ger
9dcf8090b9
Enable css-style-attr tests.
2015-07-28 13:09:15 +02:00