bors-servo
64e968d8bc
Auto merge of #9119 - TheKK:input_element_size, r=eefriedman
...
Parse size attribute of HTMLInputElemnt correctly
Should fix #8773
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9119 )
<!-- Reviewable:end -->
2016-01-06 08:57:19 +05:30
Ying-Ruei Liang (KK)
74905f0f3c
Invalid type attribute for HTMLInputElement now fallback as text type ( fixes #8773 )
2016-01-06 10:56:00 +08:00
Keith Yeung
1d62db405e
Implement EventSource and update test expectations
2016-01-05 21:47:43 -05:00
bors-servo
25c2b7dec6
Auto merge of #9161 - frewsxcv:cleanup-match, r=jdm
...
Reduce 'match' body, remove unnecessary clone
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9161 )
<!-- Reviewable:end -->
2016-01-06 08:02:33 +05:30
Corey Farwell
639fbc2275
Reduce 'match' body, remove unnecessary clone
2016-01-05 16:55:37 -08:00
bors-servo
8b855e4456
Auto merge of #9160 - nerith:spec, r=jdm
...
Update FileAPI spec links
The links in components/script/dom/blob.rs were pointing to the old location.
Fixes #9157 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9160 )
<!-- Reviewable:end -->
2016-01-06 03:04:21 +05:30
Brandon Fairchild
b5e121a312
Update FileAPI spec links
...
The links in components/script/dom/blob.rs were pointing
to the old location.
Fixes #9157 .
2016-01-05 15:48:30 -05:00
Emilio Cobos Álvarez
d30f05554b
conversions: Make a is_type_compatible
method for ArrayBufferViews.
2016-01-04 15:51:01 +01:00
Emilio Cobos Álvarez
43d395a682
conversions: Add a checked version to array_buffer_view_data
2016-01-04 15:29:24 +01:00
Emilio Cobos Álvarez
9ad49c8aa1
conversion: Extrapolate array_buffer_view_data
...
And use it instead of the raw jsapi calls.
2016-01-04 15:19:29 +01:00
Emilio Cobos Álvarez
4d32444bf7
webgl: Unify accessing ArrayBufferView objects
...
This fixes an invalid length being reported from
float32_array_to_slice (which used the byte length), and also to
generalize getting data from a JS array buffer view, to reduce code
duplication.
The pending type safety issues, like where we could send a UInt16Array
where we expect a Float32 one, should be solved by IDL bindings in
some cases, like uniform[n]fv or vertexAttrib[n]fv, and with extra
checks in others, like in the pending texImage2D(..., ArrayBufferView).
2016-01-04 13:58:49 +01:00
Guillaume Gomez
99ac1a81cc
Generate PartialEq automatically
2016-01-03 18:07:09 +01:00
Manish Goregaokar
23e7dfa57b
Relayout text input elements on blur
2016-01-03 13:18:24 +05:30
bors-servo
4a141fb63f
Auto merge of #9137 - iszak:issue-9135, r=nox
...
Fixes https://github.com/servo/servo/issues/9135
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9137 )
<!-- Reviewable:end -->
2016-01-03 11:33:00 +05:30
bors-servo
1b0053f8b1
Auto merge of #9136 - frewsxcv:htmlbodyelement-background, r=nox
...
HTMLBodyElement 'background' attribute improvements
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9136 )
<!-- Reviewable:end -->
2016-01-03 11:00:49 +05:30
bors-servo
7f156b8c12
Auto merge of #9072 - Manishearth:password-placeholder, r=eefriedman
...
Fix placeholders for password inputs
currently they show dots instead of the placeholder text
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9072 )
<!-- Reviewable:end -->
2016-01-03 10:21:26 +05:30
Manish Goregaokar
cc5844a373
Move placeholder logic out of get_raw_textinput_value
2016-01-03 09:47:30 +05:30
bors-servo
9da739acef
Auto merge of #9123 - karyon:clippy_cleanup, r=Manishearth
...
Fix a bunch of clippy lints
This fixes about 130 clippy lints. Let me know if i should split up the commit.
I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :)
There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix.
cc @Manishearth
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123 )
<!-- Reviewable:end -->
2016-01-03 09:16:34 +05:30
bors-servo
6844adbe2d
Auto merge of #9082 - nikkisquared:websocket_bufferedamount, r=eefriedman
...
Updated WebSocket buffered_amount to match change to html specification
The size of WebSocket's buffered_amount was changed[1] after an issue I opened, which I found while working on WebSocket previously[2]. @jdm suggested I make a PR updating Servo reflecting this, and so I have! As always, I'd like to hear any feedback on anything I can do to improve this.
[1] https://github.com/whatwg/html/issues/296
[2] https://github.com/servo/servo/pull/8218#issuecomment-152021737 point 5)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9082 )
<!-- Reviewable:end -->
2016-01-03 08:43:55 +05:30
bors-servo
06d84e6e4b
Auto merge of #9134 - iszak:issue-9132, r=nox
...
Fixes https://github.com/servo/servo/issues/9132
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9134 )
<!-- Reviewable:end -->
2016-01-03 07:32:09 +05:30
Iszak Bryan
c02a56c01a
Optimise get_root_element for elements in documents
2016-01-03 01:07:00 +00:00
bors-servo
1ac330837f
Auto merge of #9130 - iszak:issue-9081, r=nox
...
Fixes https://github.com/servo/servo/issues/9081
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9130 )
<!-- Reviewable:end -->
2016-01-03 06:27:54 +05:30
Corey Farwell
1a808219a8
Remove parsed attribute 'background' field on HTMLBodyElement
...
https://github.com/servo/servo/issues/7863
2016-01-02 16:54:38 -08:00
Iszak Bryan
603d0a54ea
Use atom's for matching to gain performance benefits
2016-01-03 00:13:52 +00:00
Corey Farwell
9a1fd472ab
Implement 'background' IDL attribute on <body>
2016-01-02 15:42:25 -08:00
Iszak Bryan
1fa3d36167
Store state of fill or style for canvas pattern
2016-01-02 23:35:04 +00:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
bors-servo
c0835ec336
Auto merge of #9122 - ckimes89:inputevent, r=nox
...
Add 'input' event for HTMLInputElement
Fixes #8613
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9122 )
<!-- Reviewable:end -->
2016-01-03 00:31:55 +05:30
Chad Kimes
0e663e0f2f
De-duplicate input event send code
2016-01-02 11:31:22 -05:00
Chad Kimes
12a0884f51
Add 'input' event for HTMLInputElement
2016-01-02 11:07:12 -05:00
bors-servo
b1ca3d1cdf
Auto merge of #9111 - frewsxcv:rm-parsed-attr, r=nox
...
Remove parsed attribute 'bgcolor' field HTMLTableElement
https://github.com/servo/servo/issues/7863
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9111 )
<!-- Reviewable:end -->
2016-01-02 18:20:10 +05:30
bors-servo
7a5522a263
Auto merge of #9049 - KiChjang:form-data-refactor, r=eefriedman
...
Refactor FormData code to match updated spec
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9049 )
<!-- Reviewable:end -->
2016-01-01 21:37:09 +05:30
bors-servo
11d160fc73
Auto merge of #9109 - nerith:createpattern, r=jdm
...
Support empty strings as the repeat argument (CreatePattern)
According to the third step in the specification [1], createPattern
should let the repetition argument be "repeat" when it is the empty
string.
The code in CanvasRenderingContext2D::CreatePattern did not implement
this step and instead threw a SyntaxError exception when an empty
string was supplied as the repetition argument.
Fixes #9079 .
[1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9109 )
<!-- Reviewable:end -->
2016-01-01 21:04:51 +05:30
Keith Yeung
7001583047
Refactor FormData code to match updated spec
...
Use Atoms instead of Strings as keys
2016-01-01 05:38:10 -08:00
bors-servo
b8e7cd71d6
Auto merge of #8871 - KiChjang:task-source-channels, r=KiChjang
...
Add 5 different task source channels
This is **not** complete. I really need feedback right away since I felt that the direction I'm heading is very wrong.
Partial #7959 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8871 )
<!-- Reviewable:end -->
2016-01-01 14:31:51 +05:30
Corey Farwell
7649748b83
Remove parsed attribute 'bgcolor' field HTMLTableElement
...
https://github.com/servo/servo/issues/7863
2015-12-31 14:15:54 -08:00
bors-servo
5e497cf311
Auto merge of #9099 - frewsxcv:rm-parsed-attr, r=nox
...
Remove fields with parsed attribute values on HTMLTextAreaElement
https://github.com/servo/servo/issues/7863
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9099 )
<!-- Reviewable:end -->
2016-01-01 01:15:13 +05:30
Brandon Fairchild
1ccab328f9
Support empty strings as the repeat argument (CreatePattern)
...
According to the third step in the specification [1], createPattern
should let the repetition argument be "repeat" when it is the empty
string.
The code in CanvasRenderingContext2D::CreatePattern did not implement
this step and instead threw a SyntaxError exception when an empty
string was supplied as the repetition argument.
Fixes #9079 .
[1] https://html.spec.whatwg.org/multipage/#dom-context-2d-createpattern
2015-12-31 11:48:15 -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
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
Corey Farwell
3eb585f547
Remove fields with parsed attribute values on HTMLTextAreaElement
...
https://github.com/servo/servo/issues/7863
2015-12-30 12:27:13 -08: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
Nikki
b95af756ad
now panics on integer overflow
2015-12-30 10:38:53 -07: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