Граф коммитов

3188 Коммитов

Автор SHA1 Сообщение Дата
ProgramFOX 4f3ace1178 servo: Merge #4486 - Added readonly flag for CSSStyleDeclaration (from ProgramFOX:readonly-csssd); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 366ea4fe79cd838ae66acc74d9fdc7dcb36bddae
2014-12-28 10:27:44 -07:00
Manish Goregaokar e0c8a4271d servo: Merge #4173 - plugins: Autogeneration of Reflectable; Inheritance lint (from Manishearth:a-more-dom-struct); r=kmcallister
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.

A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.

Source-Repo: https://github.com/servo/servo
Source-Revision: 56d1b16d1b3a18d5ffa1d9c32562d3b209851711
2014-12-27 22:12:45 -07:00
Ms2ger 00f3ed40f3 servo: Merge #4490 - Remove some transmute calls (from Ms2ger:transmutes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: dbb10747828b08f5dc9bcaea251e1f2d16f554fd
2014-12-27 12:27:46 -07:00
Manish Goregaokar 5748bfcbf9 servo: Merge #4489 - plugins: Fix transmute lint message (from Manishearth:transmute-lint-fix); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: b139574cdc3ce622568253e0ff9d2e1750128b26
2014-12-27 09:10:02 -07:00
Manish Goregaokar 905ce805f5 servo: Merge #4485 - Replace most to_string calls by into_string calls (from servo:into_string); r=Ms2ger
`str::to_string()` goes through a `Formatter`, `str::into_string()` is a direct copy and is apparently 5× faster.

This is a rebase of the boring and bitrot-prone parts of #4366.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9857ea26cb9ee262654bee97322dbbf373486bff
2014-12-27 06:51:44 -07:00
Bruno de Oliveira Abinader fed2874334 servo: Merge #4353 - Implement DOMTokenList.{add,remove,toggle} (from brunoabinader:domtokenlist); r=Ms2ger
Specs:
https://dom.spec.whatwg.org/#dom-domtokenlist-add
https://dom.spec.whatwg.org/#dom-domtokenlist-remove
https://dom.spec.whatwg.org/#dom-domtokenlist-toggle
https://dom.spec.whatwg.org/#concept-dtl-update
https://dom.spec.whatwg.org/#concept-ordered-set-serializer

Closes #3138.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3af73e9962fe810de0c556693ec2eb0559b06a67
2014-12-26 13:18:45 -07:00
Ms2ger 1d0d6c95fb servo: Merge #4467 - Implement HTMLElement.dataset (from servo:dataset); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0e6304dcf7fd6712f4455151b55a361de857359d
2014-12-25 02:27:43 -07:00
Matt McCoy 9c55b5ed2a servo: Merge #4479 - This fixes #4166. throw_dom_exception will take the GlobalRef by value (from mattnenterprise:globalref-by-value); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 57b6dc939734553287a02e3a42241715266995d5
2014-12-24 16:15:45 -07:00
Josh Matthews 9030c2e368 servo: Merge #4478 - Fix HTTPS fetches (from jdm:hyperssl); r=larsbergstrom
This just updates rust-openssl and hyper to use cherry-picked commits that fix this particular issue. I think it's worth it because the experience of trying Servo for the first time right now is pretty terrible.

Source-Repo: https://github.com/servo/servo
Source-Revision: 070008b4c43337b3ef4ef78b09f73e64b4d0be23
2014-12-24 11:15:45 -07:00
thiagopnts 609188961e servo: Merge #4477 - Use a descriptive enum instead of a bool in Element::update_inline_style (from thiagopnts:descriptive-enum); r=jdm
refs #4472

Source-Repo: https://github.com/servo/servo
Source-Revision: c35a18e81f943ae09db50afdf54a03dece153615
2014-12-24 10:45:45 -07:00
thiagopnts 8ca1b964dd servo: Merge #4474 - Replace XHR events for generic ones in ScriptTask (from thiagopnts:generic-msgs); r=jdm
This refs #3735. As discussed in the issue, I did it cloning when I couldn't dereference an attribute. The trait method should be on `&self` for object-safety reasons.

Source-Repo: https://github.com/servo/servo
Source-Revision: 194ce20969f04bf2d077ebed106fc1bfb5eb32ee
2014-12-24 03:45:44 -07:00
James Moughan 7784885056 servo: Merge #4457 - Select all input text on ctr+a #4411 (from jamougha:master); r=jdm
Fixes #4411.

I didn't find any tests for the text control functionality so I didn't write any for this, let me know if I should.

Source-Repo: https://github.com/servo/servo
Source-Revision: 71b9f17b6b1695c08036f688249b486fa58c25c9
2014-12-23 23:45:45 -07:00
Matt McCoy c01796101f servo: Merge #4453 - This will fix #4259. Dispatch mousemove when the mouse is moved (from mattnenterprise:dispatch-mousemove); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fb59e7929998facb292ed606255a665c74cf9416
2014-12-23 23:15:47 -07:00
Adam Sunderland 8d4f1a4c72 servo: Merge #4463 - Add GetPropertyPriority to CSSStyleDeclaration (from iterion:get-property-priority); r=jdm
Implementation of #4432 adding `getPropertyPriority` to CSSStyleDeclaration. This is my first attempt at a Servo PR so I'm sure I've done something wrong. Let me know, and I'll fix it up.

As stated in #4432 tests for this are in #4085. If there are additional tests I can write now I would love to do that, I'm just not sure where or what those would be.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b7fe964d328362126a8a56ff463d48f3285391f
2014-12-23 11:06:49 -07:00
ProgramFOX 4401f47c66 servo: Merge #4471 - Implemented CSSStyleDeclaration.setPropertyPriority (from ProgramFOX:issue-4433); r=jdm
Implemented CSSStyleDeclaration.setPropertyPriority, resolves #4433.

Source-Repo: https://github.com/servo/servo
Source-Revision: 49f2c6974d0cce7668acbe505369212c8c35165b
2014-12-23 09:45:49 -07:00
Ms2ger 9f674cf659 servo: Merge #4466 - Add a test that wptrunner fails when it should (from Ms2ger:failing-test); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: c92a7898b47ded1382221fc78526b87bfa9bd897
2014-12-23 05:36:44 -07:00
Ms2ger 2af2dc9669 servo: Merge #4464 - Revert PR #4038 for causing WPT failures (from servo:revert-dataset); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0109cc3ffc6e58a5e294ff469b37a636c98cff70
2014-12-23 01:57:46 -07:00
Glenn Watson a20334edde servo: Merge #4461 - Use event polling instead of blocking when outputting to a file (from glennw:glutin-tests); r=larsbergstrom
This stops some ref tests on linux blocking while waiting for
user input events and never outputting the file.

Also mark vertical writing test as flaky on all platforms. Due
to unrelated timing reasons, this fails reliably on mac when glutin
is enabled. The related bug with details on the root cause is #3926.

Source-Repo: https://github.com/servo/servo
Source-Revision: b83b4932dac9c0f4fbd6ad6a5b5a0232362c504b
2014-12-22 17:57:46 -07:00
Patrick Walton 219d4c7683 servo: Merge #4459 - gfx: Clip the background properly when `border-radius` is used, and clean up some painting stuff (from pcwalton:border-radius-clipping); r=glennw
Together these improve a large number of sites: GitHub, Reddit, Wikipedia, etc.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 63a7742d834e9ed44421baa3ce218a5eabce58bf
2014-12-22 15:51:48 -07:00
Glenn Watson 5b73010ac9 servo: Merge #4442 - glutin - Add support for waking up blocked event loop, and smooth resize on mac (from glennw:glutin-events-resize); r=larsbergstrom,larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 20b961493ac73abbb5260f93f550692cb9ef8fec
2014-12-22 14:33:45 -07:00
Matthew Rasmus a1e2e068b6 servo: Merge #4048 - Rebuild after ./mach test-unit (from mttr:mach_unit_test_fix); r=larsbergstrom
This is a quick and dirty workaround for issue #3928. Basically, `cargo test` is deleting `./target/servo`, which is clearly not ideal if we want to do anything with servo after running the unit tests. This PR makes sure to rebuild after running `./mach test-unit`.

I'm not familiar enough with cargo yet to know why it's doing this or what better alternatives there are to fixing this. Having to rebuild afterwards feels pretty ugly to me, but my rationalization right now is that the time it takes to build is negligible in comparison to the time it takes to run the tests. Ideally, this should be something we could take care of in Cargo.toml, but again, I'm new to this (and the documentation seems less than helpful from what I can tell so far).

I won't be available for the rest of the day, so if anyone has suggestions, or wants to wait for a better solution, I'll get back to it tomorrow probably. Otherwise, this PR at least makes `./mach test` work properly, so there's that.

Source-Repo: https://github.com/servo/servo
Source-Revision: f06e0a818db47ff872b98070077f274dbc7eb704
2014-12-22 14:05:34 -07:00
Michael Wu e9ef591f66 servo: Merge #4448 - Make gonk port build again after the last rustup (from michaelwu:fix-gonk-20141220); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 1793e0cb0e0acb1de0a6efe9430006b72acc5eda
2014-12-21 12:18:46 -07:00
Emanuel Rylke 73f0957834 servo: Merge #4456 - On left/right keydown place edit_point correctly when there is a selection in TextInput (from ema-fox:textinput_selection); r=jdm
Fixes #4447

Source-Repo: https://github.com/servo/servo
Source-Revision: bde6c39192faaab3c6e77fd5ea81605673477bac
2014-12-21 07:24:44 -07:00
Amanda Watson 202b5561df servo: Merge #4454 - GlobalRef passed by value in reflect_dom_object, reflect_node #4165 (from amwatson:global_update); r=jdm
Changed fn_wrap argument in reflect_dom_object() and reflect_node() to pass GlobalRef by value rather than by reference.  Fixes #4165

Source-Repo: https://github.com/servo/servo
Source-Revision: a773bd5c4568f2f33855f9cfe04b4301038429f7
2014-12-20 17:51:44 -07:00
Ms2ger da6f46492e servo: Merge #4452 - Cleanup _obj_toString (from Ms2ger:_obj_toString); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 6efa7eedbc43c4a1752dccb6a42a080cbe232581
2014-12-20 17:24:44 -07:00
Ms2ger 542d3545f7 servo: Merge #4451 - Require documentation for ByteString (from Ms2ger:bytestring-doc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b4025f167f0a4a64a22eb308984c18446537bec2
2014-12-20 16:57:43 -07:00
Ms2ger 19944cd1f3 servo: Merge #4450 - Document DOMRefCell (from Ms2ger:domrefcell-doc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 661144d28546dc287cba6a76325855c0efac9551
2014-12-20 08:36:43 -07:00
Bruno de Oliveira Abinader def07162d0 servo: Merge #4038 - Implement HTMLElement.dataset (from brunoabinader:dataset); r=Ms2ger
Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-dataset

Closes #2974.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f74e54bb2d0b16866aeaa7e4d00f801560afe7b
2014-12-20 08:06:44 -07:00
Ms2ger 1f730e0a12 servo: Merge #4449 - Cleanup unwrap_jsmanaged (from Ms2ger:unwrap_jsmanaged); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8a4eea003276cdb4d0c4b905068c93bd3bf398ee
2014-12-20 07:36:45 -07:00
Ms2ger 8e3ecf0d97 servo: Merge #4446 - Remove unused libgreen import (from Ms2ger:green); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 58e7b8c154cae663ee82b6c042044de68c43a007
2014-12-19 14:03:44 -07:00
Josh Matthews 5be4e8a1fb servo: Merge #4401 - Create a replacement for Cell<SM primitive>. Fixes #4337 (from jdm:heapsm2); r=Manishearth
We still will need a lint to ban any further uses, but that can be a followup.

Source-Repo: https://github.com/servo/servo
Source-Revision: c17d5330af88eb919195ac39d7795548f6683541
2014-12-19 09:18:46 -07:00
Ms2ger 97e31c7099 servo: Merge #4444 - Simplify some code in ScriptTask::load (from Ms2ger:load-simplify); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b9edc2243a98f2d71408430fe68716bdbbd015d7
2014-12-19 08:09:48 -07:00
Ms2ger 1d72ea6a6b servo: Merge #4443 - Make the argument to dispatch_event_with_target non-optional (from Ms2ger:dispatch_event_with_target); r=Manishearth
The name of the method makes it clear it's supposed to be used with a target
override, so we might as well enforce that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 11b27361c9f6af08ed78fa1a3fe58732b4c69cd4
2014-12-19 04:33:46 -07:00
Eduard Burtescu 7be1408838 servo: Merge #4326 - Handle onload correctly and trigger the load event for <script> (from eddyb:script-onload); r=jdm
Without this, facebook.com pages (with their custom module loading system and React.js) silently fail to make progress loading content, forever waiting on load events on the initial set of `<script>` elements.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7317518c173ef61384e29c1bdfa7052acaf27f8d
2014-12-18 22:27:44 -07:00
Glenn Watson 5306294517 servo: Merge #4441 - Add time as submodule - workaround for android cross compiling until next rustup (from glennw:android-time-hack); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 9aaae08c3666d13ab608999e1dca587656e7b228
2014-12-18 18:00:59 -07:00
Glenn Watson 61026a418e servo: Merge #4438 - Update cargo nightly to get android cross compile fix. Also add stub tra (from glennw:android-fix-1); r=metajack
...it method to glutin port.

Source-Repo: https://github.com/servo/servo
Source-Revision: 465b38c03f8565f3cf3d22e3b7f98f51b116e2e4
2014-12-18 17:01:10 -07:00
Adenilson Cavalcanti 8455823764 servo: Merge #4437 - Fix inset/outset when border is black (from Adenilson:fixInsetOutsetBlack03); r=jdm
Freshly rebased.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ac8b6a723fe0ce6a80ce03e1e4e2082961f1319
2014-12-18 16:24:54 -07:00
Tetsuharu OHZEKI 8bc1f6376b servo: Merge #4434 - script: Remove glob imports added in #4405 (from saneyuki:glob_script); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 803e5ef7904f2843d8e44184f9154af079eea9fa
2014-12-18 15:57:48 -07:00
Simon Sapin 2d7fe5cdae servo: Merge #4425 - Fix some writing mode mismatch assertions errors (from SimonSapin:mixed-writing-modes); r=mbrubeck
The rendering is still wrong beause of #2795, but at least we get a rendering.

(This test change is just for readability, it should be equivalent to before.)

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 3cc87165a1279005fa2c12413f33487dee31df96
2014-12-18 15:31:28 -07:00
Patrick Walton be135fd302 servo: Merge #4403 - script: Fix double borrow error when going back. Closes #4402 (from pcwalton:back-borrow); r=jdm
I have verified that back and forward work once again.

Sorry about this one. r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 8626be6ab00d966cb4abed2a2fef691d286df32d
2014-12-18 14:39:50 -07:00
Patrick Walton c36d533145 servo: Merge #4394 - layout: Implement `clip` per CSS 2.1 § 11.1.2 (from pcwalton:clip); r=SimonSapin
Only the recommended, comma-separated syntax is supported.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: a80d88897d176630c79f929e8b1fd661b2e1a17c
2014-12-18 14:12:51 -07:00
Tetsuharu OHZEKI 370886dc52 servo: Merge #4423 - net: Remove glob imports added in #4405 (from saneyuki:glob_net); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ccecd8dca406a4f0d62ac50f461b09816786ec5
2014-12-18 13:21:55 -07:00
Tetsuharu OHZEKI 4c1092dbf9 servo: Merge #4418 - gfx: Remove glob imports added in #4405 (from saneyuki:glob_gfx); r=jdm
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: a425bb528957fd77cf8300b17e153f8fc3777483
2014-12-18 12:52:01 -07:00
Josh Matthews fa63e17acb servo: Merge #4342 - Implement basic HTMLElement.style support (from jdm:cssom); r=jdm,metajack
This does not implement any notion of CSSStyleDeclaration objects that do not have an owning element; there's no actual CSS object model in play here. This does support setting and getting properties of the style attribute for HTMLElement, and tries to implement the ambiguous CSS value serialization spec.

Source-Repo: https://github.com/servo/servo
Source-Revision: 824788649cd338c044d9396166af5b0f378d6685
2014-12-18 11:54:52 -07:00
Tetsuharu OHZEKI 34f83f1a6e servo: Merge #4424 - style: Remove glob imports added in #4405 (from saneyuki:glob_style); r=SimonSapin
#4406

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f342638c46d6b43bca4cfbd405aceedc0465a85
2014-12-18 11:03:55 -07:00
Matt McCoy 667e396b08 servo: Merge #4416 - Merge request for #4407. Removes the cloning because it wasn't necessary (from mattnenterprise:fire-timer-clone); r=jdm
I tested that it worked correctly by using running './mach run tests/html/test_timeout.html' and making sure the timers went off.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7df37847d3a0a02da6917c669fe62a5e4af7efcd
2014-12-18 09:39:56 -07:00
Matt Brubeck 21a0b185fa servo: Merge #4412 - Update layer bounds on resize (from mbrubeck:fixed-layer-resize); r=mrobinson
This fixes a bug where fixed-position layers are not repositioned when the
window is resized.  This can be reproduced with any `position: fixed` element with a `right` or `bottom` position.  I'm not sure how to reftest this, though.

r? @mrobinson

Source-Repo: https://github.com/servo/servo
Source-Revision: d7f38a8973c1baac2a68bd83a0c141deef920bac
2014-12-18 08:06:54 -07:00
Simon Sapin b308cce0c9 servo: Merge #4420 - Fix warnings (from servo:fix-warnings); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: eea49ee1d986c306a8eec32b64be9b10cb2278fc
2014-12-18 04:42:50 -07:00
Glenn Watson 8b295b0ae2 servo: Merge #4419 - Restore glutin close on escape functionality. Also fix linux compile error (from glennw:fix-glutin-esc); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: d7b3900431598883212162460254c846bf5f8b52
2014-12-18 01:00:57 -07:00
Patrick Walton cda269baf7 servo: Merge #4358 - compositing: Implement `cursor` per CSS3-UI § 8.1.1 in the CEF/Mac port (from pcwalton:cursor); r=mbrubeck
I'm not sure how we want to handle Linux cursors, and GLFW has no
ability to set cursors (short of disabling it and managing it yourself).

If you test this in the wild you will probably hit #4357 until that PR lands.

Source-Repo: https://github.com/servo/servo
Source-Revision: e2267e0a0749e27046ee8a26ba514cc6865e0345
2014-12-18 00:24:49 -07:00