Patrick Walton
d3d59ced36
layout: Make absolutely-positioned elements with z-index: auto
not
...
stacking contexts.
Improves many sites.
Closes #7069 .
2015-08-11 11:21:52 -07:00
bors-servo
84c4a26e4d
Auto merge of #7070 - frewsxcv:merge-clonenode-tests, r=Ms2ger
...
Merge Servo Node.cloneNode test into WPT Node.cloneNode test
Fixes #5755
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7070 )
<!-- Reviewable:end -->
2015-08-11 07:06:23 -06:00
bors-servo
d9925f5f92
Auto merge of #7104 - dzbarsky:add_color_stop, r=Ms2ger
...
CanvasGradient#addColorStop should throw for invalid colors and offsets
The new test failure is because the color stop has a value of 'currentColor' which we don't support yet.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7104 )
<!-- Reviewable:end -->
2015-08-11 06:24:35 -06:00
bors-servo
d0bb6d0c07
Auto merge of #7126 - Ms2ger:ref, r=jdm
...
Run word-spacing tests under wpt.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7126 )
<!-- Reviewable:end -->
2015-08-11 02:16:24 -06:00
bors-servo
15a73614f4
Auto merge of #7140 - wilmoz:master, r=jdm
...
Remove Message suffix from NetworkEventMessage
https://github.com/servo/servo/issues/7129
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7140 )
<!-- Reviewable:end -->
2015-08-11 01:34:47 -06:00
bors-servo
b8d464f5dc
Auto merge of #7151 - dzbarsky:style-setters, r=jdm
...
Make CSSStyleDeclaration setters rethrow errors instead of unwrapping
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7151 )
<!-- Reviewable:end -->
2015-08-10 23:04:34 -06:00
David Zbarsky
a3ee46fc9c
Make CSSStyleDeclaration setters rethrow errors instead of unwrapping and crashing.
2015-08-11 00:34:41 -04:00
bors-servo
b05b02e11f
Auto merge of #7090 - pcwalton:overflow-scroll, r=glennw
...
layout: Implement basic `overflow: scroll` functionality.
Known issues:
* Display list optimization can sometimes optimize out elements that
should be shown. This affects the Enyo demo.
* The `overflow: scroll` container doesn't clip the inner layer properly
when borders, border radius, etc. are present.
* `overflow-x: scroll` and `overflow-y: scroll` don't work individually;
elements are scrolled all at once.
Note that multiple layers per stacking context aren't needed for the Enyo demo; rather the issue is that the height of the main area is being calculated incorrectly. (It looks like JS is measuring the height and poking in an explicit value that is too tall.)
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7090 )
<!-- Reviewable:end -->
2015-08-10 22:29:40 -06:00
Patrick Walton
dd7345ad64
tests: Add a simple test case for overflow: scroll
.
2015-08-10 21:27:05 -07:00
Patrick Walton
bf26a2373f
layout: Carry out some minor style cleanups.
2015-08-10 21:27:05 -07:00
Patrick Walton
300315bb78
compositing: Add some layer tree debugging infrastructure.
2015-08-10 21:27:04 -07:00
Patrick Walton
df4acbac04
layout: Implement basic overflow: scroll
functionality.
...
Known issues:
* Display list optimization can sometimes optimize out elements that
should be shown. This affects the Enyo demo.
* The `overflow: scroll` container doesn't clip the inner layer properly
when borders, border radius, etc. are present.
* `overflow-x: scroll` and `overflow-y: scroll` don't work individually;
elements are scrolled all at once.
* Scrolling only works on absolutely-positioned elements.
2015-08-10 21:27:04 -07:00
Patrick Walton
fc13dd1169
compositor: Allow children of layers that don't want scroll events to be
...
scrolled.
Necessary for `overflow: scroll`.
2015-08-10 21:27:04 -07:00
Patrick Walton
11822f3eb1
layout: Remove the now-useless dirty
field from the layout context.
...
At this point the only thing it does is to try to avoid adding display
items that are outside the root scrollable area, which is both wrong
(since it's incompatible with having scrollable areas outside the root)
and is useless (because we have displayports now).
2015-08-10 21:27:03 -07:00
bors-servo
166bb41baa
Auto merge of #7122 - dzbarsky:cssom, r=jdm
...
Enable CSSOM wpt tests
We don't support a lot of these features but this did expose a crash(es?)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7122 )
<!-- Reviewable:end -->
2015-08-10 21:32:55 -06:00
bors-servo
c079c1cf6d
Auto merge of #7147 - glennw:abs-explicit-height, r=pcwalton
...
Fix explicit height edge case with absolute / relative nested divs.
Needed for #6643 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7147 )
<!-- Reviewable:end -->
2015-08-10 20:58:12 -06:00
David Zbarsky
fef2a33043
Enable CSSOM tests
2015-08-10 22:50:13 -04:00
bors-servo
5af93e9ca3
Auto merge of #7141 - glennw:2d-clipping-update, r=pcwalton
...
Update rust-layers to get 2d transform + clipping support.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7141 )
<!-- Reviewable:end -->
2015-08-10 20:23:42 -06:00
bors-servo
e24cf8bd9f
Auto merge of #7121 - dzbarsky:css-color, r=jdm
...
Enable CSS Color wpt tests
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7121 )
<!-- Reviewable:end -->
2015-08-10 19:30:26 -06:00
Glenn Watson
e83091d918
Fix explicit height edge case with absolute / relative nested divs.
...
Needed for #6643 .
2015-08-11 11:25:26 +10:00
bors-servo
049cee1b5e
Auto merge of #7143 - larsbergstrom:user_agent, r=mbrubeck
...
Add the Servo User Agent strings
Fixes #4331 . I've tested this out on desktop and Android on "the usual" sites (reddit, cnn, github, wikipedia, etc.).
r? @mbrubeck @metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7143 )
<!-- Reviewable:end -->
2015-08-10 18:18:27 -06:00
Lars Bergstrom
6a4ce717cb
Add the Servo User Agent strings
2015-08-10 19:11:12 -05:00
wilmoz
210e068ac7
Remove Message suffix from NetworkEventMessage
2015-08-10 18:48:53 -05:00
Glenn Watson
30d9e75557
Update rust-layers to get 2d transform + clipping support.
2015-08-11 08:48:44 +10:00
bors-servo
41166fdb5b
Auto merge of #7136 - nerith:consoleapi, r=jdm
...
Rename SendConsoleMessage to ConsoleAPI
Fixes #7131 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7136 )
<!-- Reviewable:end -->
2015-08-10 15:10:57 -06:00
Brandon Fairchild
a95015b68a
Rename SendConsoleMessage to ConsoleAPI
...
Fixes #7131 .
2015-08-10 16:46:18 -04:00
bors-servo
2b9590c5a5
Auto merge of #6778 - nox:childnodes, r=jdm
...
Optimise Node.childNodes
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6778 )
<!-- Reviewable:end -->
2015-08-10 14:05:02 -06:00
Ms2ger
727d89bb44
Run word-spacing tests under wpt.
2015-08-10 17:51:16 +02:00
bors-servo
8b13a79743
Auto merge of #7124 - frewsxcv:test-ref-release, r=metajack
...
Allow Servo tests to be built/run with --release mode
Fixes #5075
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7124 )
<!-- Reviewable:end -->
2015-08-10 09:14:31 -06:00
Corey Farwell
a6797ac813
Merge Servo Node.cloneNode test into WPT Node.cloneNode test
...
Fixes #5755
2015-08-10 09:48:18 -04:00
bors-servo
a91c366c06
Auto merge of #7125 - AdrianArroyoCalle:master, r=Ms2ger
...
MIME classifier should use &[T] instead of &Vec<T>
Closes #7109
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7125 )
<!-- Reviewable:end -->
2015-08-10 07:04:26 -06:00
Adrián Arroyo Calle
af21c2457e
MIME classifier should use &[T] instead of &Vec<T>
2015-08-10 15:00:35 +02:00
Corey Farwell
f873db5ab0
Allow Servo tests to be built/run with --release mode
...
Fixes #5075
2015-08-10 08:59:54 -04:00
bors-servo
5374812932
Auto merge of #7123 - Ms2ger:warnings, r=saneyuki
...
Remove unused import.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7123 )
<!-- Reviewable:end -->
2015-08-10 01:35:11 -06:00
Ms2ger
d39b166465
Remove unused import.
2015-08-10 09:30:46 +02:00
David Zbarsky
92d8058947
Enable CSS Color wpt tests
2015-08-09 23:35:20 -04:00
David Zbarsky
7315b50973
CanvasGradient#addColorStop should throw for invalid colors and offsets
2015-08-09 23:19:56 -04:00
bors-servo
f77973c903
Auto merge of #7101 - HarryLovesCode:master, r=jdm
...
Allows object evaluation in devtools -- Closes #6724
The purpose of this is to fix how objects were previously evaluated in
the developer tools.
- Before this, evaluating an object such as the `window` would `panic!`
- After this, evaluating an object such as the `window` outputs `[object
Window]`
A few things to note:
- This commit contains `unsafe` code.
- This does not contain a test because the developer tools cannot be properly tested until #5971 lands.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7101 )
<!-- Reviewable:end -->
2015-08-09 18:27:53 -06:00
bors-servo
44d93bc37a
Auto merge of #7089 - dzbarsky:createtbody, r=Ms2ger
...
Implement HTMLTableElement#createTBody
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7089 )
<!-- Reviewable:end -->
2015-08-09 13:56:47 -06:00
bors-servo
a74f3d1d9c
Auto merge of #7114 - Ms2ger:follow-hyperlink, r=jdm
...
Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7114 )
<!-- Reviewable:end -->
2015-08-09 12:10:08 -06:00
Ms2ger
97c79bbb99
Avoid a panic when clicking a link whose href is unparsable.
2015-08-09 20:05:35 +02:00
Ms2ger
ecb6551efa
Add a test for following malformed hyperlinks.
2015-08-09 19:59:20 +02:00
David Zbarsky
54adae26c6
Implement HTMLTableElement#createTBody
2015-08-09 12:24:15 -04:00
Ms2ger
ecd3f4f80e
Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm.
2015-08-09 17:54:56 +02:00
Harrison G
e0f007a940
Closes #6724 (Allows object evaluation in devtools)
...
The purpose of this is to fix how objects were previously evaluated in
the developer tools.
- Before this, evaluating an object such as the `window` would `panic!`
- After this, evaluating an object such as the `window` outputs `[object
Window]`
A few things to note:
- This commit contains `unsafe` code.
- This does not contain a test because the developer tools cannot be properly tested until #5971 lands.
2015-08-09 11:45:16 -04:00
bors-servo
6a8bc85284
Auto merge of #7092 - dzbarsky:putimagedata, r=jdm
...
Clean up and fix PutImageData
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092 )
<!-- Reviewable:end -->
2015-08-09 07:00:56 -06:00
bors-servo
dbce4c5bd8
Auto merge of #6975 - dzbarsky:get-tiny, r=jdm
...
Fix getImageData with sizes < 1 pixel
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6975 )
<!-- Reviewable:end -->
2015-08-09 06:32:30 -06:00
bors-servo
abf73995f9
Auto merge of #7105 - connorimes:cef-7088, r=mbrubeck
...
Some imports are used in linux only. Fixes #7088 .
Imports are used in Linux.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7105 )
<!-- Reviewable:end -->
2015-08-09 05:50:01 -06:00
bors-servo
f41834e321
Auto merge of #7063 - dzbarsky:caption, r=Ms2ger
...
Implement createCaption and deleteCaption on HTMLTableElement
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7063 )
<!-- Reviewable:end -->
2015-08-09 04:45:28 -06:00
bors-servo
28abc55d9b
Auto merge of #7107 - AdrianArroyoCalle:master, r=Ms2ger
...
Removed unused object_to_string method
Closes #7100
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7107 )
<!-- Reviewable:end -->
2015-08-09 04:16:55 -06:00