Fernando Martins
0ef003c20a
moved IFrameLoadInfo and IFrameSandboxState to script_traits
2016-01-11 18:24:08 +00:00
Corey Farwell
bff8947e43
Implement HTMLFormElement::Elements
...
Fixes #8566
2016-01-10 12:08:24 -05:00
bors-servo
280c4e95f5
Auto merge of #9214 - frewsxcv:refactor-htmlfieldsetelement-elements, r=KiChjang
...
Refactor 'listed element' logic for HTMLFieldSetElement::Elements
`HTMLElement::is_listed_element` method was added, which matches the
`HTMLElement::is_labelable_element` method directly above
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9214 )
<!-- Reviewable:end -->
2016-01-10 16:33:19 +05:30
bors-servo
d3e2f94f20
Auto merge of #9201 - wenderen:8512-task-thread, r=jdm
...
task -> thread
for #8512
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9201 )
<!-- Reviewable:end -->
2016-01-10 15:49:04 +05:30
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
bors-servo
42eee54967
Auto merge of #9212 - frewsxcv:webidl-spec-updates, r=KiChjang
...
Update a couple WebIDL files to match spec
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9212 )
<!-- Reviewable:end -->
2016-01-10 02:38:34 +05:30
Corey Farwell
e3728f6167
Refactor 'listed element' logic for HTMLFieldSetElement::Elements
...
`HTMLElement::is_listed_element` method was added, which matches the
`HTMLElement::is_labelable_element` method directly above
2016-01-09 13:22:15 -05:00
bors-servo
2c0f81087b
Auto merge of #9226 - nox:clean-console, r=KiChjang
...
Clean up Console a bit
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9226 )
<!-- Reviewable:end -->
2016-01-09 23:06:57 +05:30
Anthony Ramine
189d373cbe
Introduce Console::send_to_devtools
...
This replaces propagate_console_msg and wraps prepare_message.
2016-01-09 17:31:32 +01:00
Anthony Ramine
0e3f066e8a
Remove the global field from Console
...
We can just go through the reflector.
2016-01-09 16:02:41 +01:00
Keith Yeung
c3f73b36e1
Fix documentation links for EventTarget
2016-01-09 06:33:36 -05:00
bors-servo
f00532bab0
Auto merge of #9213 - frewsxcv:broken-link, r=KiChjang
...
Fix broken spec link in HTMLScriptElement
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9213 )
<!-- Reviewable:end -->
2016-01-09 14:17:20 +05:30
bors-servo
809f64a283
Auto merge of #9188 - frewsxcv:unused-codegen-options, r=Manishearth
...
Remove unused command-line Python codegen arguments
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9188 )
<!-- Reviewable:end -->
2016-01-09 10:20:45 +05:30
bors-servo
654636cf79
Auto merge of #9187 - Ms2ger:script-comments, r=jdm
...
Update specification references and TODO comments in HTMLScriptElement.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9187 )
<!-- Reviewable:end -->
2016-01-09 08:30:08 +05:30
Corey Farwell
7973bb7d70
Fix broken spec link in HTMLScriptElement
2016-01-08 20:51:33 -05:00
Corey Farwell
8f35652f25
Update HTMLFormElement WebIDL to match spec
...
https://html.spec.whatwg.org/multipage/#htmlformelement
2016-01-08 20:38:56 -05:00
Corey Farwell
a1795a54d0
Update HTMLFieldSetElement WebIDL to match spec
...
https://github.com/whatwg/html/pull/413
https://html.spec.whatwg.org/multipage/#htmlfieldsetelement
2016-01-08 20:37:30 -05:00
Brandon Fairchild
fb0304cfdb
Rename fire_simple_event_params to fire_event
...
Fixes #9180 .
2016-01-07 13:49:49 -05:00
bors-servo
72ecbbe221
Auto merge of #9184 - servo:clippy, r=frewsxcv
...
Fix some clippy warnings.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9184 )
<!-- Reviewable:end -->
2016-01-07 20:13:03 +05:30
Ms2ger
a7afb25e9f
Use Option::cloned() in HTMLCanvasElement::GetContext().
2016-01-07 14:51:19 +01:00
Ms2ger
ad1035f0a0
Remove an unused argument to CustomEvent::init_custom_event.
2016-01-07 14:51:18 +01:00
Corey Farwell
62a0cac3c0
Remove unused command-line Python codegen arguments
2016-01-07 08:51:06 -05:00
Ms2ger
649614eedc
Update specification references and TODO comments in HTMLScriptElement.
2016-01-07 14:47:50 +01:00
bors-servo
e5fcb7a5b7
Auto merge of #9182 - Ms2ger:es-warning, r=Manishearth
...
Silence a warning in EventSourceReadyState.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9182 )
<!-- Reviewable:end -->
2016-01-07 15:10:23 +05:30
Ms2ger
27ad50cfa7
Silence a warning in EventSourceReadyState.
2016-01-07 09:45:12 +01:00
David Raifaizen
76f689cd06
Changed blob to use DataSlice with Arc in order to limit wasteful copying of byte vector
2016-01-06 19:41:52 -05:00
bors-servo
238a8786de
Auto merge of #9029 - KiChjang:event-source, r=jdm
...
Implement EventSource and update test expectations
Partial #8925 .
Most of the processing model for `EventSource` are unimplemented because we currently don't have a fetch implementation.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9029 )
<!-- Reviewable:end -->
2016-01-07 00:38:25 +05:30
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
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