Sam Gibson
6f573d5d44
Move HSTS/CookieStorage to Arc<RwLock> from Ipc
...
servo/servo#7421
2015-09-19 18:30:37 +12:00
Bryan Bell
f4a04614ff
Add css twitter fail whale test & update ellipse_to_bezier comment
2015-09-18 20:55:10 -07:00
bors-servo
8a8204ffc8
Auto merge of #7447 - ddrmanxbxfr:master, r=jdm
...
Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer
Hi guys i've done a small pass of refactor in the MIMEClassifier implementation. (See issue #7382 )
- Moved the predicates to separate functions
- Added a mimetype enum so we can compare them easily after calling MIMEClassifier::get_media_type
I hope it follows rust good pratices (care it's my first time doing rust).
Improvements and tips are welcome :).
Thanks for looking at it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7447 )
<!-- Reviewable:end -->
2015-09-18 07:22:59 -06:00
Matt Brubeck
9333f028e8
Snap to screen pixels instead of px
...
Fixes #7665 .
2015-09-18 03:06:06 -07:00
Matt Brubeck
186ab5aa24
Allow setting device-pixel-ratio for reftests
2015-09-18 02:48:59 -07:00
bors-servo
acde10f005
Auto merge of #7656 - mbrubeck:incremental-text-6501, r=pcwalton
...
Reconstruct flows when text/font styles change
These styles are used during text shaping. When they change, we need to re-run shaping and construct new flows.
Fixes #6501 . r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7656 )
<!-- Reviewable:end -->
2015-09-18 01:32:40 -06:00
Matt Brubeck
0c77705f52
Reconstruct flows when text/font/list styles change
...
Fixes #6501 .
2015-09-17 11:59:00 -07:00
bors-servo
83b364189c
Auto merge of #7657 - Ms2ger:update-wpt, r=Ms2ger
...
Update wpt
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7657 )
<!-- Reviewable:end -->
2015-09-17 10:32:43 -06:00
Ms2ger
163009575a
Update web-platform-tests to revision 71a0d51d14d8b0f1b53cda3a7d39ef8765164485
2015-09-17 18:32:13 +02:00
Ms2ger
d504015496
Update CheckoutBranch to the wptrunner changes.
...
This is a port of <https://hg.mozilla.org/mozilla-central/rev/c0b8fea5aef4 >.
2015-09-17 17:39:44 +02:00
Martin Robinson
1e6f797268
Ensure unique LayerIds for pseudo-elements
...
Currently pseudo-elements, like the fragments created for ::before and
::after, with layers will have the same LayerId as the body of their
owning fragments. Instead all LayerIds should be unique.
Fixes #2010 .
2015-09-17 06:42:29 -07:00
Simon Sapin
feaf6f4c3f
Initial support for custom properties in CSSStyleDeclaration
2015-09-17 14:48:56 +02:00
Simon Sapin
d56ea10770
var() substitution: insert /**/ between tokens that would be parse as one token.
2015-09-17 14:48:20 +02:00
Simon Sapin
b8fd51e940
Add a copy of a test that uses a style attribute instead of a stylesheet.
...
`tests/wpt/css-tests/css-variables-1_dev/html/test_variable_legal_values.htm`
relies on setting `.data` on a text node inside a `<style>` element
to update a stylesheet, but this doesn’t work on Servo yet.
Add a copy of this file that uses a style attribute instead.
2015-09-17 14:48:18 +02:00
Simon Sapin
389d537451
Look for var() in a non-custom property declaration after a parse error.
2015-09-17 14:48:17 +02:00
Simon Sapin
70ea5f61a2
Don’t ignore input at the end of a declaration with var().
2015-09-17 14:48:16 +02:00
Simon Sapin
54ef8055ec
The function name var() is case-insensitive.
2015-09-17 14:48:15 +02:00
Simon Sapin
ab9e1af206
Allow whitespace-only custom property values.
2015-09-17 14:48:14 +02:00
Simon Sapin
c7622bf22f
Fix !important in custom properties.
...
Test changes are also in https://github.com/w3c/csswg-test/pull/847/files
2015-09-17 14:48:13 +02:00
Simon Sapin
4abe7cdf97
Support var() in shorthands.
2015-09-17 14:48:12 +02:00
bors-servo
9e914ca0db
Auto merge of #7588 - notriddle:master, r=pcwalton
...
Actually store the overflow for inline-block elements.
Fixes #7571
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7588 )
<!-- Reviewable:end -->
2015-09-17 00:53:04 -06:00
bors-servo
8f0b702018
Auto merge of #7642 - bjwbell:shorthand-parse-elliptical-border-radius, r=jdm
...
gfx: Add elliptical border-radius shorthand parsing
Adds support for parsing shorthand border-radius values such as:
/* The syntax of the second radius allows one to four values */
/* (first radius values) / radius */
border-radius: 10px 5% / 20px;
/* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5% / 20px 30px;
/* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */
border-radius: 10px 5px 2em / 20px 25px 30%;
/* (first radius values) / top-left | top-right | bottom-right | bottom-left */
border-radius: 10px 5% / 20px 25em 30px 35em;
r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7642 )
<!-- Reviewable:end -->
2015-09-16 10:13:52 -06:00
bors-servo
df083ccb52
Auto merge of #7628 - Ms2ger:events-markers, r=jdm
...
Emit markers for all events, not just UI events.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7628 )
<!-- Reviewable:end -->
2015-09-16 08:34:32 -06:00
Ms2ger
a5925020ce
Avoid calling any listeners for events whose stop propagation flag is set prior to dispatching.
2015-09-16 16:28:31 +02:00
bors-servo
6a12f00d6d
Auto merge of #7605 - nox:skew, r=mbrubeck
...
Implement "transform: skew()"
Thanks to @Jinwoo-Song for the original commit, which I just rebased and cleaned up. Fixes #6237 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7605 )
<!-- Reviewable:end -->
2015-09-16 06:31:48 -06:00
Bryan Bell
48f1159845
gfx: Add elliptical border-radius shorthand parsing
...
Adds elliptical border-radius shorthand parsing, e.g.:
/* The syntax of the second radius allows one to four values */
/* (first radius values) / radius */
border-radius: 10px 5% / 20px;
/* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */
border-radius: 10px 5% / 20px 30px;
/* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */
border-radius: 10px 5px 2em / 20px 25px 30%;
/* (first radius values) / top-left | top-right | bottom-right | bottom-left */
border-radius: 10px 5% / 20px 25em 30px 35em;
2015-09-15 16:51:17 -07:00
bors-servo
25abe646f8
Auto merge of #7619 - frewsxcv:font-face, r=nox
...
Implement <font> 'face' attribute
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7619 )
<!-- Reviewable:end -->
2015-09-14 18:32:17 -06:00
Corey Farwell
3ae76f4e76
Implement <font> 'face' attribute
2015-09-14 20:24:52 -04:00
João Oliveira
813cdaa012
Move setting UserAgent header into http_loader::load,
...
closes #7541
2015-09-14 15:35:34 +01:00
Ali Sabil
ea655ada10
Cache the id
attribute on Element
2015-09-13 23:55:40 +02:00
Anthony Ramine
cba8856309
Fix Node::query_selector() and Node::query_selector_iter()
...
These should not find the root of the tree to start matching.
2015-09-13 23:40:24 +02:00
Anthony Ramine
650afc9d3e
Fix cloning of Element's attributes
...
No virtual method was invoked when copies of attributes were appended to
newly-cloned elements.
2015-09-13 23:40:24 +02:00
bors-servo
d5ee58caf2
Auto merge of #7606 - nox:move-typeid, r=jdm
...
Move the type_id fields to DOMClass
Cc @michaelwu.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7606 )
<!-- Reviewable:end -->
2015-09-13 11:53:42 -06:00
bors-servo
6a21bcd9c5
Auto merge of #7615 - frewsxcv:obsolete-link-anchor, r=nox
...
Add obsolete reflecting attributes on <a> and <link>
From my understanding, setting any of these will not affect any
presentational hints for the elements
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7615 )
<!-- Reviewable:end -->
2015-09-13 10:47:32 -06:00
Corey Farwell
fdebd2ae2a
Add obsolete reflecting attributes on <a> and <link>
...
From my understanding, setting any of these will not affect any
presentational hints for the elements
2015-09-13 09:45:02 -04:00
Corey Farwell
be3352f379
Explicitly state 'blink' should create HTMLUnknownElement, like the spec
...
https://html.spec.whatwg.org/#other-elements,-attributes-and-apis:blink
2015-09-13 08:07:03 -04:00
Corey Farwell
cc8994422b
Fix a few incorrect Element interfaces
2015-09-13 08:02:51 -04:00
Mathieu Rheaume
cc44448b09
Fix BinaryOrPLaintextClassifier bug with utf16-be & utf16-le and correct tests
2015-09-12 19:59:20 -04:00
Mathieu Rheaume
68a088bef6
Fixed apache bug flag on not passing the good params
2015-09-12 17:44:16 -04:00
Mathieu Rheaume
ff608de781
fixup! Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer
2015-09-12 17:44:16 -04:00
Mathieu Rheaume
8525495265
Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer
2015-09-12 17:44:14 -04:00
Simon Sapin
43c999905c
Replace reftest with a problematic file name with a unit test.
...
Fix #7609 , "error: unable to create file tests/ref/hello_a?foo#bar.html
(Invalid argument)" during git checkout on Windows.
Behavior change: passing an nonexistent file name on the command line
now shows a blank page (like network errors)
rather than exit with an error message.
2015-09-12 14:18:15 +02:00
Michael Wu
941f7dc04b
Move EventTargetTypeId/NodeTypeId to DOMClass
2015-09-12 01:09:46 +02:00
Jinwoo Song
d524601cf5
CSS 'transformation: skew()' should take <angle> type as parameters
...
Current implementation is taking <number> type as parameter so skew()
does not work properly. Let the skew() to get <angle> as specification
described.
Fixes #6237 .
2015-09-12 01:06:35 +02:00
Anthony Ramine
f11fcebd9c
Bump euclid to 0.2
2015-09-12 01:06:26 +02:00
bors-servo
8d7ba12f28
Auto merge of #7600 - pcwalton:body-overflow-scroll, r=mbrubeck
...
layout: Allow the overflow area of the `<body>` to be scrolled.
Fixes scrolling on Twitter.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7600 )
<!-- Reviewable:end -->
2015-09-11 11:20:13 -06:00
bors-servo
c3f9e1813a
Auto merge of #7550 - pcwalton:block-formatting-context-overflow, r=mbrubeck
...
layout: Defend the block formatting context speculation against going wrong in the presence of blocks that overflow in the inline direction.
Makes the Google search result links appear.
Closes #7298 .
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7550 )
<!-- Reviewable:end -->
2015-09-11 10:03:39 -06:00
Patrick Walton
99587cf105
layout: Allow the overflow area of the <body>
to be scrolled.
...
Fixes scrolling on Twitter.
2015-09-10 18:07:21 -07:00
bors-servo
4c64c870c6
Auto merge of #7592 - nox:nonelementparentnode, r=jdm
...
Introduce NonElementParentNode
This is the interface where Document.getElementById() belong.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7592 )
<!-- Reviewable:end -->
2015-09-10 07:29:47 -06:00
bors-servo
c349b7b3a1
Auto merge of #7426 - dzbarsky:surroundcontents, r=glennw
...
Implement Range#surroundContents
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7426 )
<!-- Reviewable:end -->
2015-09-09 21:54:06 -06:00