bors-servo
3afbff27b6
Auto merge of #9096 - servo:glutinup, r=nox
...
Update glutin
… in order to pick up https://github.com/tomaka/glutin/pull/679 , which will hopefully get rid of the `[glutin] x error code=8 major=42 minor=0!` messages printed on stdout.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9096 )
<!-- Reviewable:end -->
2016-01-01 00:34:58 +05:30
bors-servo
d9bf672cb0
Auto merge of #9094 - servo:silent-debug-message, r=SimonSapin
...
Make a debugging println!() conditional on is_running_problem_test
… like other print messages introduced in 19a1e57c90
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9094 )
<!-- Reviewable:end -->
2015-12-31 22:40:59 +05:30
bors-servo
3791447de8
Auto merge of #9090 - Ms2ger:stylesheets-vec, r=SimonSapin
...
Don't copy the list of stylesheets in LayoutTask::handle_reflow.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9090 )
<!-- Reviewable:end -->
2015-12-31 21:50:22 +05:30
Josh Matthews
20668da061
Accept all Content-Type values for fonts if sniffing is disabled. Restore the status quo.
2015-12-31 09:12:59 -05:00
Josh Matthews
bda341b217
Update mime_guess to incorporate TTF MIME changes.
2015-12-31 07:45:51 -05:00
Josh Matthews
afb4d90ad3
Send a response to font load initiators even when a font is ignored.
2015-12-31 07:45:50 -05:00
Josh Matthews
3d8881c6f2
Remove unneeded dead_code annotations.
2015-12-31 07:45:50 -05:00
Josh Matthews
cca25e2b3a
Enable MIME sniffing via a pref instead of a global option.
2015-12-31 07:45:49 -05:00
Josh Matthews
9601d555cd
Use valid MIME types in the font classifier.
2015-12-31 07:45:48 -05:00
Josh Matthews
e17e553f04
Restrict font loads to known MIME types.
2015-12-31 07:45:48 -05:00
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
bors-servo
66c8aa8cda
Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=glennw
...
Enabled use of FontFamily enum type
https://github.com/servo/servo/issues/8371
In addition to replacing loose strings with the FontFamily enum in `font_cache_task.rs`, I also centralized the add_generic_font calls into one single function. If centralizing into one function is not desired or if anything else needs to be changed, please let me know.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8420 )
<!-- Reviewable:end -->
2015-12-31 16:49:48 +05:30
bors-servo
77b23d1bb9
Auto merge of #9105 - jdm:buttoneventsintermittent, r=nox
...
Implement support for modifying the type attribute of <button>
https://github.com/servo/servo/pull/9100
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9105 )
<!-- Reviewable:end -->
2015-12-31 15:56:16 +05:30
Simon Sapin
ff7524af09
Update glutin
...
… in order to pick up https://github.com/tomaka/glutin/pull/679 , which will hopefully get rid of the `[glutin] x error code=8 major=42 minor=0!` messages printed on stdout.
2015-12-31 00:58:44 +00:00
David Raifaizen
d942bfb474
Enabled use of FontFamily enum type and replaced plain string parameters with enum
2015-12-30 18:21:37 -05:00
Josh Matthews
3ef39e1a30
Implement the onreset event handler.
2015-12-30 16:04:16 -05:00
Josh Matthews
ffc1c777fe
Implement support for modifying the type attribute of button elements. Fixes #9091 .
2015-12-30 16:04:05 -05:00
bors-servo
3d969e429d
Auto merge of #7919 - 6112:master, r=nox
...
form submission for <textarea> and <select>
Fixes #7849 .
Fixes #7850 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7919 )
<!-- Reviewable:end -->
2015-12-30 23:58:40 +05:30
Simon Sapin
46bb3e5778
Make a debugging println!() conditional on is_running_problem_test
...
… like other print messages introduced in 19a1e57c90
2015-12-30 17:21:15 +00:00
bors-servo
d6d70feabd
Auto merge of #9089 - Ms2ger:style-unsafe, r=nox
...
Deny unsafe code in style.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9089 )
<!-- Reviewable:end -->
2015-12-30 20:12:20 +05:30
Ms2ger
828392b41c
Don't copy the list of stylesheets in LayoutTask::handle_reflow.
...
It would be nice to avoid exposing the fact that these are stored in an Arc
to the selector matching code.
2015-12-30 15:13:08 +01:00
Ms2ger
2fa45aa064
Deny unsafe code in style.
2015-12-30 14:46:35 +01:00
bors-servo
80135a70ce
Auto merge of #9080 - jdm:canvaspattern, r=Ms2ger
...
Enable Pattern variant of CanvasFillOrStrokeStyle
This is a rebase of #8104 , with a test added that exposes pre-existing problems in the canvas code for dealing with patterns.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9080 )
<!-- Reviewable:end -->
2015-12-30 13:56:43 +05:30
bors-servo
3f407ea3d6
Auto merge of #9077 - bholley:split_layout_context_etc, r=SimonSapin
...
Split the style-related bits out of LayoutContext and hoist more stuff into style/
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9077 )
<!-- Reviewable:end -->
2015-12-30 11:01:23 +05:30
Nicolas
1f234af2ac
form submission for <textarea> and <select>
...
small changes from code review
!child.get_disabled_state() becomes child.get_enabled_state()
2015-12-30 00:27:35 -05:00
bors-servo
0f5c614609
Auto merge of #9051 - bholley:split_style_and_layout_wrappers, r=SimonSapin
...
Split layout wrappers into style+layout and layout-only functionality
This is a step towards removing the dependency of stylo on layout/.
This PR depends on #9004 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9051 )
<!-- Reviewable:end -->
2015-12-30 10:04:14 +05:30
bors-servo
2bb6ea1321
Auto merge of #9083 - jdm:fetchintegrate, r=jdm
...
Partial implementation of HTTP-network-or-cache fetch step.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9083 )
<!-- Reviewable:end -->
2015-12-30 07:50:43 +05:30
bors-servo
0d52170f35
Auto merge of #9054 - frewsxcv:parse-non-zero-dimension, r=eefriedman
...
Implement non-zero dimension attribute parsing
Fixes #8445
The only attributes I found that we have implemented that uses non-zero
dimenion attributes:
* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`
I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9054 )
<!-- Reviewable:end -->
2015-12-30 05:26:56 +05:30
Nikki
d30998c4a6
Partial implementation of HTTP-network-or-cache fetch step.
2015-12-29 16:37:11 -05:00
Bobby Holley
a05d7f1dfd
Hoist style-related context bits into style/.
...
We do a few things-here:
* Hoist non-layout-dependent fields in SharedLayoutData and LocalLayoutData into style/.
* Hoist parts of css/matching.rs into style/.
* Hoist parts of layout/animation.rs into style/animation.rs.
* Remove the duplicated-but-slightly-different definition of OpaqueNode.
2015-12-29 12:07:07 -08:00
Bobby Holley
47059d2d26
Separate style+layout and layout-specific wrapper functionality.
...
This patch does a number of things, unfortunately all at once:
* Hoists a large subset of the layout wrapper functionality into the style system.
* Merges TElementAttributes into the newly-created TElement.
* Reorganizes LayoutData by style vs layout, and removes LayoutDataShared.
* Simplifies the API for borrowing style/layout data.
There's still more to do to make the style system usable standalone, but
this is a good start.
2015-12-29 11:50:03 -08:00
Josh Matthews
7693b03468
Make button elements activatable. Fixes #4837 . Fixes #8101 .
2015-12-29 10:45:04 -05:00
Alberto Corona
e6a3c16e9a
Enable Pattern variant of CanvasFillOrStrokeStyle
...
Closes #7608
2015-12-29 10:38:00 -05:00
bors-servo
c1cb9403a7
Auto merge of #8948 - simartin:issue_8738, r=ecoal95
...
Issue #8738 : bufferSubData and texImage2D argument sanity checks.
Fixes https://github.com/servo/servo/issues/8738
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8948 )
<!-- Reviewable:end -->
2015-12-29 17:27:27 +05:30
bors-servo
e7212953f1
Auto merge of #9074 - dagnir:ask-for-reset-on-remove, r=nox
...
Ask for reset when option is removed.
Now that `UnbindContext` is available, asking the `select` element for a reset when an option is removed is now possible.
Link to the spec: https://html.spec.whatwg.org/multipage/#ask-for-a-reset
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9074 )
<!-- Reviewable:end -->
2015-12-29 16:43:32 +05:30
bors-servo
5ef8129ae6
Auto merge of #9058 - Ms2ger:layers, r=mrobinson
...
Update layers.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9058 )
<!-- Reviewable:end -->
2015-12-29 04:05:22 +05:30
Dongie Agnir
12afd837a0
Ask for reset when option is removed.
2015-12-27 21:47:13 -10:00
Simon Martin
f2fe401d7d
Issue #8738 : bufferSubData and texImage2D argument sanity checks.
2015-12-26 18:56:48 +01:00
Joe Kachmar
655268d111
Separate script and layout messages, issue #8843
2015-12-26 12:24:51 -05:00
bors-servo
89ab368258
Auto merge of #8506 - nox:finish-ranges, r=dzbarsky
...
Properly propagate changes when range or trees are mutated
Does the same thing as #6817 , but storing Range instances directly in their start and end containers.
Cc @dzbarsky
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8506 )
<!-- Reviewable:end -->
2015-12-26 04:08:15 +05:30
Anthony Ramine
3c76835615
Properly propagate changes when range or trees are mutated
2015-12-25 23:35:57 +01:00
Corey Farwell
ba659cb99c
Implement non-zero dimension attribute parsing
...
Fixes #8445
The only attributes I found that we have implemented that uses non-zero
dimenion attributes:
* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`
I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.
2015-12-24 13:20:43 -08:00
bors-servo
7db6ce41d2
Auto merge of #8725 - dzbarsky:no_context, r=eefriedman
...
Handle toDataURL with no context
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8725 )
<!-- Reviewable:end -->
2015-12-25 02:04:40 +05:30
David Zbarsky
84ec9c4266
Handle toDataURL with no context
2015-12-24 11:48:04 -08:00
Ms2ger
6d5261275a
Update layers.
2015-12-24 11:03:32 +01:00
bors-servo
f77c792886
Auto merge of #9055 - simartin:issue_9042, r=Wafflespeanut
...
Issue #9042 : Report incorrect number of spaces around => in the style checker
Fixes https://github.com/servo/servo/issues/9042
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055 )
<!-- Reviewable:end -->
2015-12-24 10:55:48 +05:30
Simon Martin
cec661fa86
Issue #9042 : Report incorrect number of spaces around => in the style checker.
2015-12-23 20:54:26 +01:00
Bobby Holley
874545d8ca
Hoist more stuff from the concrete wrapper implementations into the trait definitions to allow sharing.
2015-12-23 12:05:25 -07:00
Bobby Holley
e55a56d757
Add an is_text_node to LayoutNode, so that we don't need to implement type_id for the style system.
2015-12-23 12:05:25 -07:00
Bobby Holley
6637626e02
Make DangerousThreadSafeLayoutNode public. :-(
...
I'm open to suggestions on how to do this better.
2015-12-23 12:05:25 -07:00