Commit Graph

2586 Commits

Author SHA1 Message Date
Martin Robinson
b90d2c7a04 servo: Merge #9008 - More aggressively remove Fragment RestyleDamage (from mrobinson:reflow); r=pcwalton
Now clean up damage on all fragments that belong to a Flow. This ensures
that damage does not re-propagate up to the parent Flow from the
Fragments. It also means that the flow tree dump should show a more
accurate picture of the state of the flow tree.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1436ee5afab4ede68ab834c7d6368a7d45ede7ac
2016-01-09 06:31:23 +05:00
Martin Robinson
ab5fbb1c8b servo: Merge #9059 - Use DisplayListSection everywhere (from mrobinson:simplify-display-list-sections); r=pcwalton
DisplayListSection, StackingLevel, and BackgroundAndBorderLevel all
represent pretty much the same thing, a particular section of the
display list. Instead of maintaining three enums which do the same
thing, just use DisplayListSection everywhere. It's a superset of the
other two and this change will make it easier to flatten the DisplayList
in the future for WebRender.

Source-Repo: https://github.com/servo/servo
Source-Revision: be555a9409c949bea7287b0e21df009bce3cb328
2016-01-09 05:52:44 +05:00
Emilio Cobos Álvarez
b505a7cfb5 servo: Merge #9210 - webgl: Create the paint task object in the thread (from emilio:webgl-task-in-thread); r=jdm
This avoids problems like:
https://github.com/servo/servo/issues/9006#issuecomment-170007845

See that conversation for more details.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0002048ed9be66bd4132caf094e37d2c4587201f
2016-01-09 04:37:11 +05:00
Nikki
ba9a332501 servo: Merge #9195 - Replace Rc<RefCell<Response>> with Rc<Response> (from nikkisquared:rewrap_response); r=jdm
Similar to why I'm doing #9172, I'm changing `Rc<RefCell<Response>>` into `Rc<Response>` and wrapping fields in `RefCell<T>` as needed. So far I've only needed to change `url_list`, but I'm sure I'll need to update more fields in the future.

There's two lines that don't compile that I'm not going to bother trying to fix until #9172 is approved, because getting them to work now will just require more changes after merging with the changes #9172 makes to them.

Source-Repo: https://github.com/servo/servo
Source-Revision: b8186a2203cdbdcc24d77554cb53e048ef13c669
2016-01-09 01:02:45 +05:00
Ms2ger
fc7dbcdd12 servo: Merge #9183 - Pin clippy to a working revision (from Ms2ger:pin-clippy); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 23f9da7b1295d143b6768a8e624342eb4e3412be
2016-01-09 00:25:39 +05:00
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
Patrick Walton
c8a63950c8 servo: Merge #9177 - gfx: Eagerly transform clips into ClippingRegion::max() if possible (from pcwalton:filter-out-useless-clips); r=glennw
This helps WebRender look for useless clips and optimize them out.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 58111a6420d3edded1cb66efa7c9863f1b3cdd8e
2016-01-08 20:54:45 +05:00
Patrick Walton
c4711dbe62 servo: Merge #9171 - Fix linear_gradients_lengths_a.html and fix Servo's use of "background-clip" to actually make it work (from pcwalton:linear-gradients-background-clip); r=mbrubeck
See the commit messages for details.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: a0d26445c0df6361e1e8655581a09f0e0faf0818
2016-01-08 14:40:02 +05:00
Bobby Holley
879100fe6a servo: Merge #9176 - Hoist traversal code into style/ (from bholley:hoist_traversal); r=SimonSapin
This should be the last major hoisting necessary to use the style system standalone. \o/

Source-Repo: https://github.com/servo/servo
Source-Revision: ddc3b7942eea8328e9eb22d864d34fce572d5535
2016-01-08 13:27:39 +05:00
Nikki
7101336546 servo: Merge #9172 - Replace Rc<RefCell<Request>> with Rc<Request> (from nikkisquared:rewrap_request); r=jdm
To make using Request easier, I've changed it from an `Rc<RefCell<T>>` to just `Rc<T>`, and updated individual fields to `RefCell<T>` or `Cell<T>` as needed. Git seems to be telling me there's a conflict with request.rs, which I resolved locally, but I'm not sure what to do (if anything) to make it easier to merge.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5cf2520e2fc2d862afc1045ce16e4d6cb7c08b5d
2016-01-08 12:07:38 +05:00
Adrian Heine
7a094fe30e servo: Merge #9149 - Correctly handle local sources for CSS3 fonts (from adrianheine:webFonts); r=glennw
Currently, servo panics for me when loading something like this:

```
@font-face {
  font-family: "test family";
  src: local(test font face);
}
```

That's due to a bug in `FontCacheTask`. `FontCacheTask` tries to get the value for the key
"test font face" from `self.web_families`, but previously initialized a value for the key "test family".

These two commits add an awkward test and fix the bug by not shadowing the variable `family_name`. Since the argument to `local()` should explicitly not be the name of a font family, the previous variable name was wrong and misleading anyways.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8e75a05e6bea78d388e6409020f3279a090c9168
2016-01-08 04:17:55 +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
Patrick Walton
a7b7f2ad5a servo: Merge #9173 - Remove the fontgroup address cache (from pcwalton:remove-font-group-address-cache); r=mbrubeck
It's not clear to me that it actually helps. Moreover, it's wrong and
results in fonts randomly changing e.g. on GitHub when mousing over
elements.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 6eb28c7fd829892842de6b5c4ae9166e8908a312
2016-01-07 08:45:45 +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
Keith Yeung
ff79d85724 servo: Merge #9165 - Extract Response from net_traits/lib.rs (from KiChjang:extract-response); r=Ms2ger
This puts them in a new file located at `net_traits/response.rs`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 99689bc6b0531837f1af18ed4b7e4fd765595606
2016-01-06 19:47:05 +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
Tetsuharu OHZEKI
acdd770a2c servo: Merge #9159 - gfx: handle the ResponseAction::ResponseComplete error case in font_cache_task (from saneyuki:9158); r=jdm
Fix #9158

Source-Repo: https://github.com/servo/servo
Source-Revision: e3dd36f0f3cb894d0eacedc99134e715135882bf
2016-01-06 01:59:26 +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
Nikki
b302d3a73a servo: Merge #9153 - Partial implementation of HTTP-network Fetch step (from nikkisquared:http_network_fetch); r=jdm
I've been working on making a partial implementation of HTTP-network Fetch[1] so that I can begin testing the entire Fetch protocol as implemented in Servo. The empty steps are intentionally so, including the incomplete Step 5, which I started without realizing I don't need to do basic testing.

[1] https://fetch.spec.whatwg.org/#http-network-fetch

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ea2341a5d6fc3dd38f9557e7620c6ad4dc739a0
2016-01-06 00:16:17 +05:00
Bobby Holley
aeebf9d35c servo: Merge #9110 - Hoist the rest of css/matching.rs (and its dependencies) into style/ (from bholley:hoist_matching_and_animation); r=SimonSapin
Slowly but surely.

This goes on top of #9103.

Fixes #9103.

Source-Repo: https://github.com/servo/servo
Source-Revision: f3075d13191df9b9c7858b324122872d057fbe4d
2016-01-04 23:04:35 +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
Olaf Buddenhagen
41e0334f54 servo: Merge #9070 - Derive Debug for more font-related types (from antrik:debug-fonts); r=nox
Needs to pull in newer ipc-channel and azure.

Source-Repo: https://github.com/servo/servo
Source-Revision: ebf4ce8288987af1a65390cbf7e56d1e564fa335
2016-01-03 07:41:57 +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
Michael Howell
a7cc3eea3a servo: Merge #9115 - Revert "Update glutin" (from notriddle:everybody_do_the_flop); r=larsbergstrom
This reverts commit ff7524af0940ed841f3344f5dd78f6c1751cfd42. [It breaks stuff](https://gist.github.com/notriddle/3c0dff9b4dc3a1a7b82f)

Source-Repo: https://github.com/servo/servo
Source-Revision: d4efd2047cde690d7040202e46befd687d8a3920
2016-01-01 23:44:42 +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
Nikki
1b37ede678 servo: Merge #9078 - Split http_loader::load into two methods (from nikkisquared:split_http_loader_load); r=jdm
This is intended to fix #8976 by moving the http_loader::load code that deals with getting a response and moving it into its own function. I've built it and run existing tests against my changes and that looks fine. I'd like feedback on changes I've made to accommodate refactoring the code. And I'm sure there's a more descriptive function name than "load_response", I just wasn't sure how to describe what it does.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7371da6ca031c50334f8c1068bb350ee1c17e0de
2016-01-01 01:18:09 +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
Simon Sapin
053000fd0c servo: Merge #9096 - Update glutin (from servo:glutinup); r=nox
… 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3afbff27b6cb16f6ad1c15d17cb453d05647be34
2016-01-01 00:04:58 +05:00
Simon Sapin
9d2086d01d servo: Merge #9094 - Make a debugging println!() conditional on is_running_problem_test (from servo:silent-debug-message); r=SimonSapin
… like other print messages introduced in 19a1e57c9019d363a5391c5a93722b4206c95440

Source-Repo: https://github.com/servo/servo
Source-Revision: d9bf672cb052f40f89758ea92b53450524844c62
2015-12-31 22:10:59 +05:00
Ms2ger
ca384e57e5 servo: Merge #9090 - Don't copy the list of stylesheets in LayoutTask::handle_reflow (from Ms2ger:stylesheets-vec); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 3791447de860816b43ba6f7bd746d40c267362f7
2015-12-31 21:20:22 +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