Commit Graph

1488 Commits

Author SHA1 Message Date
Brandon Fairchild
f43aa653b1 servo: Merge #9193 - Rename fire_simple_event_params to fire_event in eventtarget.rs (from nerith:fire_event); r=KiChjang
Fixes #9180.

Source-Repo: https://github.com/servo/servo
Source-Revision: 083d3e0201772918d040a6eb12e87c03fd443587
2016-01-08 22:04:14 +05:00
Ms2ger
340cd7ed7b servo: Merge #9184 - Fix some clippy warnings (from servo:clippy); r=frewsxcv
Source-Repo: https://github.com/servo/servo
Source-Revision: 72ecbbe221c6a74ba3e50dcfc7d94087d4e79936
2016-01-07 19:43:03 +05:00
Ms2ger
e29ac05cb3 servo: Merge #9182 - Silence a warning in EventSourceReadyState (from Ms2ger:es-warning); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: e5fcb7a5b7bc9e752813a42ae5840820ef5e9b89
2016-01-07 14:40:23 +05:00
David Raifaizen
4c2f4fb3ce servo: Merge #8860 - Changing blob to use arc pointers in order to limit wasteful copying … (from craftytrickster:8801/blob-vec); r=jdm
Fixes #8801.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0fcee73ef38f65c1cb1ccf64608e16b4eaa25e53
2016-01-07 12:37:42 +05:00
Brandon Fairchild
77c9fbe1b6 servo: Merge #9179 - script_task.rs: Use self::MixedMessage in handle_msgs (from nerith:mixedmessage); r=KiChjang
handle_msgs contains many references to variants of MixedMessage.

The function should directly reference the variants instead of
prepending `MixedMessage::`.

Fixes #9169.

Source-Repo: https://github.com/servo/servo
Source-Revision: f3aa5b40ed0f7236eec263e546b0c6ec2c64b881
2016-01-07 10:20:29 +05:00
Keith Yeung
2ea7bf07be servo: Merge #9029 - Implement EventSource and update test expectations (from KiChjang:event-source); r=jdm
Partial #8925.

Most of the processing model for `EventSource` are unimplemented because we currently don't have a fetch implementation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 238a8786de66344d2dd6855dca25a4d4be6fa949
2016-01-07 00:08:25 +05:00
Paul Rouget
9ef4f3d0b6 servo: Merge #9164 - update pipeline url after redirections (from paulrouget:updatePipelineURL); r=jdm
`pipeline.url` is not updated after a redirection.

Fixes #8902

Source-Repo: https://github.com/servo/servo
Source-Revision: f4a2fe95011167c3777892969ce1a413730a03e0
2016-01-06 21:23:41 +05:00
Ying-Ruei Liang (KK)
9083178191 servo: Merge #9119 - Parse size attribute of HTMLInputElemnt correctly (from TheKK:input_element_size); r=eefriedman
Should fix #8773

Source-Repo: https://github.com/servo/servo
Source-Revision: 64e968d8bc88f646ebe9ae148c883d1b036f73d1
2016-01-06 08:27:19 +05:00
Corey Farwell
afec736559 servo: Merge #9161 - Reduce 'match' body, remove unnecessary clone (from frewsxcv:cleanup-match); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 25c2b7dec6cd8415f018893c06888abaacc7da17
2016-01-06 07:32:33 +05:00
Brandon Fairchild
601fb55099 servo: Merge #9160 - Update FileAPI spec links (from nerith:spec); r=jdm
The links in components/script/dom/blob.rs were pointing to the old location.

Fixes #9157.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8b855e44568ea4482df57118b662ade013e41e6c
2016-01-06 02:34:21 +05:00
Emilio Cobos Álvarez
56fec2ca63 servo: Merge #8970 - webgl: Make a general way to get data from a JS array buffer view (from emilio:webgl-array-buffer-data); r=jdm
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)`.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ab1cdece6f594512a0ae9605ff5ebee630a70ca
2016-01-06 01:24:16 +05:00
Guillaume Gomez
5ae987f50b servo: Merge #9146 - Generate PartialEq automatically (from GuillaumeGomez:generate_partial_eq); r=nox
r? @nox

Fixes #8804

Source-Repo: https://github.com/servo/servo
Source-Revision: 1096183cceea9ec78ab02caa33ee2d14668d977d
2016-01-04 00:07:10 +05:00
Iszak Bryan
e00f47053b servo: Merge #9137 - #9135 Optimise get_root_element for elements in documents (from iszak:issue-9135); r=nox
Fixes https://github.com/servo/servo/issues/9135

Source-Repo: https://github.com/servo/servo
Source-Revision: 4a141fb63f041d8101af89566401a1b7931246b6
2016-01-03 11:03:00 +05:00
Corey Farwell
c30e6eaa9c servo: Merge #9136 - HTMLBodyElement 'background' attribute improvements (from frewsxcv:htmlbodyelement-background); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b0053f8b1d26d16fa8bf8eb906a947a8fa291da
2016-01-03 10:30:49 +05:00
Manish Goregaokar
e8e55159c3 servo: Merge #9072 - Fix placeholders for password inputs (from Manishearth:password-placeholder); r=eefriedman
currently they show dots instead of the placeholder text

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f156b8c12833e9134d29c4c309963eaa48c4ce1
2016-01-03 09:51:26 +05:00
Johannes Linke
bb6c128359 servo: Merge #9123 - Fix a bunch of clippy lints (from karyon:clippy_cleanup); r=Manishearth
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

Source-Repo: https://github.com/servo/servo
Source-Revision: 9da739acefc7d1776bf727c8bf782eb79f241028
2016-01-03 08:46:34 +05:00
Nikki
9b1d41f865 servo: Merge #9082 - Updated WebSocket buffered_amount to match change to html specification (from nikkisquared:websocket_bufferedamount); r=eefriedman
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)

Source-Repo: https://github.com/servo/servo
Source-Revision: 6844adbe2dd2730cbc13df0a78736386501cad02
2016-01-03 08:13:55 +05:00
Iszak Bryan
04a1c92b70 servo: Merge #9134 - #9132 Use atom's for matching to gain performance benefits (from iszak:issue-9132); r=nox
Fixes https://github.com/servo/servo/issues/9132

Source-Repo: https://github.com/servo/servo
Source-Revision: 06d84e6e4b311bfdd813ed08cac4ed8f03c25605
2016-01-03 07:02:09 +05:00
Iszak Bryan
95f062ff61 servo: Merge #9130 - #9081 Store state of fill or style for canvas pattern (from iszak:issue-9081); r=nox
Fixes https://github.com/servo/servo/issues/9081

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ac330837f1fd1603523ad5648f5062f841973f1
2016-01-03 05:57:54 +05:00
Chad Kimes
bf0722222c servo: Merge #9122 - Add 'input' event for HTMLInputElement (from ckimes89:inputevent); r=nox
Fixes #8613

Source-Repo: https://github.com/servo/servo
Source-Revision: c0835ec336c4988c88a7a40fd18b2d37502e8ae3
2016-01-03 00:01:55 +05:00
Corey Farwell
888f3c47f2 servo: Merge #9111 - Remove parsed attribute 'bgcolor' field HTMLTableElement (from frewsxcv:rm-parsed-attr); r=nox
https://github.com/servo/servo/issues/7863

Source-Repo: https://github.com/servo/servo
Source-Revision: b1ca3d1cdff412c5ae12113c3681f789becebabc
2016-01-02 17:50:10 +05:00
Keith Yeung
a5f4cc4154 servo: Merge #9049 - Refactor FormData code to match updated spec (from KiChjang:form-data-refactor); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 7a5522a26346f530c24a80ab241f0ece5df1e4d1
2016-01-01 21:07:09 +05:00
Brandon Fairchild
4cef14dd09 servo: Merge #9109 - Support empty strings as the repeat argument (CreatePattern) (from nerith:createpattern); r=jdm
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

Source-Repo: https://github.com/servo/servo
Source-Revision: 11d160fc73c7692ca08a24966e129454baa1dbf9
2016-01-01 20:34:51 +05:00
Keith Yeung
ba4cb6ecc9 servo: Merge #8871 - Add 5 different task source channels (from KiChjang:task-source-channels); r=KiChjang
This is **not** complete. I really need feedback right away since I felt that the direction I'm heading is very wrong.

Partial #7959.

Source-Repo: https://github.com/servo/servo
Source-Revision: b8e7cd71d6aada507a7eab1ddad44181b0d2d029
2016-01-01 14:01:51 +05:00
Corey Farwell
4f18da8c7f servo: Merge #9099 - Remove fields with parsed attribute values on HTMLTextAreaElement (from frewsxcv:rm-parsed-attr); r=nox
https://github.com/servo/servo/issues/7863

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e497cf3112194e4e35776c7df97930f8ff7e153
2016-01-01 00:45:13 +05:00
Josh Matthews
756e838b8c servo: Merge #8190 - Implemementing context-based MIME type sniffing (from jdm:4138); r=eefriedman
This is a rebase of #7842 that also adds a test.
Fixes #4183.

@Yoric, how's this look to you?

Source-Repo: https://github.com/servo/servo
Source-Revision: af1690f3036bc329101bbd6f4e877672d58ca5e0
2015-12-31 20:43:10 +05:00
David Raifaizen
72bb0a52d2 servo: Merge #8420 - Enabled use of FontFamily enum type (from craftytrickster:8371/generic-font-family); r=glennw
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 66c8aa8cdac24ad956be5e99be3b7bc07c5f798c
2015-12-31 16:19:48 +05:00
Josh Matthews
324bba3382 servo: Merge #9105 - Implement support for modifying the type attribute of <button> (from jdm:buttoneventsintermittent); r=nox
https://github.com/servo/servo/pull/9100

Source-Repo: https://github.com/servo/servo
Source-Revision: 77b23d1bb97555b08e6bf0cc7a12482fd84c0a43
2015-12-31 15:26:16 +05:00
Nicolas
b03e8d256c servo: Merge #7919 - form submission for <textarea> and <select> (from 6112:master); r=nox
Fixes #7849.
Fixes #7850.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d969e429d2cf92ae9c548bedc688a5175322854
2015-12-30 23:28:40 +05:00
Josh Matthews
fcc2bfe73e servo: Merge #9080 - Enable Pattern variant of CanvasFillOrStrokeStyle (from jdm:canvaspattern); r=Ms2ger
This is a rebase of #8104, with a test added that exposes pre-existing problems in the canvas code for dealing with patterns.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80135a70ce7f9c478a79ce9f572c42cce246e1d8
2015-12-30 13:26:43 +05:00
Bobby Holley
5a7a54af13 servo: Merge #9077 - Split the style-related bits out of LayoutContext and hoist more stuff into style/ (from bholley:split_layout_context_etc); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 3f407ea3d620e381b3adf6352cc09f9912db26b3
2015-12-30 10:31:23 +05:00
Bobby Holley
1e98f94139 servo: Merge #9051 - Split layout wrappers into style+layout and layout-only functionality (from bholley:split_style_and_layout_wrappers); r=SimonSapin
This is a step towards removing the dependency of stylo on layout/.

This PR depends on #9004.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f5c614609fd8867a9e7c27b8a398ea7d877c714
2015-12-30 09:34:14 +05:00
Corey Farwell
5996c2a440 servo: Merge #9054 - Implement non-zero dimension attribute parsing (from frewsxcv:parse-non-zero-dimension); r=eefriedman
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d52170f351e46718c5ea1a811a7d4461eaa3751
2015-12-30 04:56:56 +05:00
Josh Matthews
7a3267dde4 servo: Merge #8109 - Make button elements activatable (from jdm:buttonactivate); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 4a8e22c864a0fa1b6fca1c82374a3227afa3298d
2015-12-30 03:22:26 +05:00
Simon Martin
c2949291a8 servo: Merge #8948 - Issue #8738: bufferSubData and texImage2D argument sanity checks (from simartin:issue_8738); r=ecoal95
Fixes https://github.com/servo/servo/issues/8738

Source-Repo: https://github.com/servo/servo
Source-Revision: c1cb9403a7bfa9720c653c333134b55fc214c746
2015-12-29 16:57:27 +05:00
Dongie Agnir
a03f86c429 servo: Merge #9074 - Ask for reset when option is removed (from dagnir:ask-for-reset-on-remove); r=nox
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

Source-Repo: https://github.com/servo/servo
Source-Revision: e7212953f1fe808bde688ae867417285e9f515a4
2015-12-29 16:13:32 +05:00
Joe Kachmar
709a423669 servo: Merge #8958 - Separate script and layout messages, issue #8843 (from jkachmar:separate-layout-msg); r=KiChjang
Separated layout-specific messages to the constellation out from the `ScriptMsg` enum into a `LayoutMsg` enum within `script_traits/script_msg.rs`, addresses [#8843](https://github.com/servo/servo/issues/8843).

I initially tried to move `LayoutMsg` into `layout_traits/lib.rs`, but this introduced a cyclic dependency: `layout_traits` depends on `script_traits` for the `LayoutTaskFactory` implementation, and `script_traits/script_task.rs` now depends on `LayoutMsg` for new layout channels in `InitialScriptState` and `ScriptTask`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 941653da653a1925ade35597e97f61a6a8a0018d
2015-12-27 02:54:38 +05:00
Anthony Ramine
d5a2223cae servo: Merge #8506 - Properly propagate changes when range or trees are mutated (from nox:finish-ranges); r=dzbarsky
Does the same thing as #6817, but storing Range instances directly in their start and end containers.

Cc @dzbarsky

Source-Repo: https://github.com/servo/servo
Source-Revision: 89ab368258eb827b0dcc8d6e6deecd3ed3c1de71
2015-12-26 03:38:15 +05:00
David Zbarsky
6171259b64 servo: Merge #8725 - Handle toDataURL with no context (from dzbarsky:no_context); r=eefriedman
Source-Repo: https://github.com/servo/servo
Source-Revision: 7db6ce41d2a0748285d2a3c3f4141e8bd30ee8ef
2015-12-25 01:34:40 +05:00
Simon Martin
889e26389e servo: Merge #9055 - Issue #9042: Report incorrect number of spaces around => in the style checker (from simartin:issue_9042); r=Wafflespeanut
Fixes https://github.com/servo/servo/issues/9042

Source-Repo: https://github.com/servo/servo
Source-Revision: f77c7928868469ef4f326a269147ae2aee6151ee
2015-12-24 10:25:48 +05:00
Brandon Fairchild
d3a5501336 servo: Merge #8938 - Move LayerKind and ScrollPolicy enums to gfx_traits (from nerith:gfx); r=Ms2ger
Fixes #8836.

Source-Repo: https://github.com/servo/servo
Source-Revision: 68c4f290c7c9ad7ea45fcea66e3c6b172e42be62
2015-12-23 18:08:51 +05:00
Arthur Skobara
7e892f4944 servo: Merge #9030 - Add helper method HTMLFormElement::fire_event (from askobara:refactoring-add-htmlformelement-fire_event); r=Manishearth
Fixes #8777

Source-Repo: https://github.com/servo/servo
Source-Revision: dafdc856ac3fc2bd000e61bdcaed2c024828de0c
2015-12-22 22:08:19 +05:00
Corey Farwell
380cd7ae20 servo: Merge #9048 - Precompute width & height attribute values on <iframe> (from frewsxcv:precompute-iframe); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9306be60c23bdb828dc41f3379e77781d3eafff7
2015-12-22 21:28:38 +05:00
vectorijk
a0ecf14a5e servo: Merge #9036 - Implement Document charset (from KiChjang:document-charset); r=Ms2ger
Rebase of #7966.

Fixes #7718.

Source-Repo: https://github.com/servo/servo
Source-Revision: df087cc6cf4d97c5cc93befec922b38b56e6def7
2015-12-21 21:35:02 +05:00
Simon Martin
ad7cf2f6d6 servo: Merge #8863 - Issue #8352: Dispatch mozbrowsershowmodalprompt event for alert() (from simartin:issue_8352); r=jdm
Fixes https://github.com/servo/servo/issues/8352

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a4d82c314754d377edb0ef6b87873076bf3c057
2015-12-21 01:58:32 +05:00
k-cross
df09ef49a0 servo: Merge #9025 - touchlist dom api #8225 (from k-cross:master); r=nox
Sorry for the wait, I just finished my finals.

Fixes #8225

Source-Repo: https://github.com/servo/servo
Source-Revision: 5b91daa92378d3b9fe80b2fc8f8072085d4949b3
2015-12-21 00:49:41 +05:00
Beomjin Kim
c4724a8605 servo: Merge #9027 - Moved ScriptToCompositorMsg enum and EventResult enum to script_traits (from vwvww:cmrf2); r=jdm
Moved ScriptToCompositorMsg enum and EventResult enum to script_traits
resolving issue #8835.

(Need to be checked)
Variants in ScriptToCompositorMsg enum and EventResult enum had no doc
comment. I found some with grep command and copied it, and others I
wrote some doc comments manually to pass the build system. It needs to
be checked whether the doc comment is proper or not.

Source-Repo: https://github.com/servo/servo
Source-Revision: 62b11a28fa41d6665408844eb7b09d3479c4ea20
2015-12-21 00:00:03 +05:00
Manish Goregaokar
75bba3bcf6 servo: Merge #9026 - Remove clone in collect_text_contents (from Manishearth:attack-of-the-clones); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 8c87477138e655810769607ce2c049d461c1c88a
2015-12-19 23:44:02 +05:00
Mathieu Agopian
c4a46a7e14 servo: Merge #9019 - Use Url.join instead of UrlParser.base_url(...).parse (#9002) (from magopian:9002-use-url.join); r=SimonSapin
Fix issue #9002

Source-Repo: https://github.com/servo/servo
Source-Revision: f9141ef2db693518fef676740f25abee3b938cac
2015-12-19 01:28:56 +05:00
Anthony Ramine
c85382de30 servo: Merge #8959 - Fix DOMStringMap's stringifier behaviour according to the spec (from nox:domtokenlist-stringifier); r=Ms2ger
It should just return its associated attribute's value, if any.

https://github.com/whatwg/dom/issues/105

Source-Repo: https://github.com/servo/servo
Source-Revision: 21277b1fa032e5dd5b56274bf8e6b2188cc4c68f
2015-12-19 00:21:17 +05:00