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

3856 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger e93b4f77b9 servo: Merge #5630 - Fix typo in the substringData implementation (from Ms2ger:substringData); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: ebf5a70b51a90724422e341cd5fdb8733b4f38d0
2015-04-10 03:38:08 -05:00
Peter aab0610622 servo: Merge #5608 - Adding cmdling argument for disabling style share cache, fix #5581 (from pgonda:cmdline-disable-style-sharing); r=Ms2ger
Let me know if I should fix anything, or how I could implement a test if needed.  I looked at some testing in servo/ports/command_line.rs but it did not seem to apply.

Thanks!

Source-Repo: https://github.com/servo/servo
Source-Revision: 875f07ff25eada654e5e7bf03ddce46f7d76f6c8
2015-04-10 03:06:11 -05:00
Glenn Watson 1907792b09 servo: Merge #5629 - Remove unneeded assert (code below handles it) and a warning. Fixes #5230 (from glennw:glyph-count); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: db4609d722039e9477848c5e53e45ff214cb84c4
2015-04-09 21:01:06 -05:00
Thomas Jespersen 15e56f1d80 servo: Merge #5572 - Only send unused buffers messages if there are actually any buffers (from laumann:remove-unnecessary-buffer-sends); r=glennw
Some debugging reveals that the send_back_unused_buffers() quite often sends empty vectors back to the paint task. This still incurs a communication overhead though. Instead check that the there actually are buffers to send back.

Source-Repo: https://github.com/servo/servo
Source-Revision: 80851f70552c24a45755bc9ff12530b4ff80d099
2015-04-09 20:28:31 -05:00
Anthony Ramine e10df01c83 servo: Merge #5627 - Cleanup ProcessingInstruction (from nox:cleanup-processinginstruction); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c1b7c0c74a2f224a9c8cbf427e10b9591a693d84
2015-04-09 19:55:36 -05:00
Patrick Walton 00dbcacce1 servo: Merge #5623 - layout: Lay out nested inline elements with different `vertical-align` values properly in simple cases (from pcwalton:nested-inline-vertical-align); r=glennw
This allows things like `<sup><span>Foo</span></sup>` to work and
improves Wikipedia.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: d7b6961104b517a22e01c192d4bb6a7ad5934ce8
2015-04-09 17:20:23 -05:00
Patrick Walton 27afb18660 servo: Merge #5588 - layout: During inline layout, make `place_between_floats` use the same line height computation logic as final block size assignment (from pcwalton:line-height-float-placement-redux); r=glennw
Basically, the easiest way to describe the effect of this change is "float placement takes line height into account". It didn't before, which could lead to lines overlapping floats or floats taking up too much vertical space.

Improves Wikipedia.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: d8507cce8c3969a08974f44a9f397e75cbe3131d
2015-04-09 16:47:03 -05:00
Anthony Ramine eeb520dd32 servo: Merge #5611 - Cleanup CharacterData (from nox:cleanup-characterdata); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 51dd6984f7cc292d77b2330d404ffcff34981214
2015-04-09 10:10:20 -05:00
Mátyás Mustoha 21f37d90e0 servo: Merge #5613 - Canvas: added miterLimit support (from mmatyas:canvas_miterlimit); r=jdm
This exposes some other canvas tests which were marked as PASS before. Two strokeRect related tests are fixed by #5612, and lineCap/lineJoin will have an implementation soon.

Source-Repo: https://github.com/servo/servo
Source-Revision: 325899bfad2f87e2c46b96bc542110d8f0cada48
2015-04-09 09:37:44 -05:00
Anthony Ramine 0e356a74ae servo: Merge #5609 - Implement NonDocumentTypeChildNode::*ElementSibling() (from nox:nondocumenttypechildnode); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bbe1403b2724e3820bd29b163fd9b81ca31a3bad
2015-04-09 09:06:57 -05:00
Mátyás Mustoha 5ee72ffb2a servo: Merge #5612 - Canvas: moved Rect validation to a common function (from mmatyas:canvas_rectvalidation); r=jdm
These functions have the same input validation, and they also missed the width/height check.

Source-Repo: https://github.com/servo/servo
Source-Revision: 34251902225cd9538695f850e1e946aba712bc9b
2015-04-09 08:36:45 -05:00
Dave Hodder 99dd6503db servo: Merge #5579 - Use canonical GitHub URL for Rust (from dhodder:master); r=Ms2ger
Although https://github.com/mozilla/rust successfully redirects, it's no longer the official GitHub URL for Rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: 74afd086d2ce5a5631a63a1f6642cfc0de5dfef7
2015-04-08 22:10:42 -05:00
Ms2ger f9f72a1eaa servo: Merge #5606 - Adjust the assertions in throw_dom_exception (from Ms2ger:errors); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1c0955739853b7d17f30e158206720d6b4979c9f
2015-04-08 21:07:18 -05:00
Ms2ger 3837dc8fef servo: Merge #5604 - Remove recently introduced int/uint use in gfx (from Ms2ger:int); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: acadb2b0c56d3a89174a4b0834142762f3ab6ca8
2015-04-08 20:33:17 -05:00
Keith Yeung 02c0bba5a2 servo: Merge #5599 - Implement TextDecoder (from servo:textdecoder); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 254f2a3b5fb0ef59eff4b24cbf0f5c6ca90c4317
2015-04-08 20:00:40 -05:00
Mátyás Mustoha a7040cc135 servo: Merge #5595 - Fix int-related warnings in net/mime_classifier (from mmatyas:net_intfix); r=Ms2ger
Also replaced `for` ranges with `a..b` notation.

Source-Repo: https://github.com/servo/servo
Source-Revision: fe5047e55af384cf08bcb00d5cfe8097ae271833
2015-04-08 19:28:28 -05:00
Anthony Ramine c096b5ead3 servo: Merge #5590 - Implement Document::CreateAttributeNS() (from nox:document-createattributens); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9b7bf415d7340cdcac1d272fd1f1145df02c1f5d
2015-04-08 18:55:19 -05:00
Patrick Walton d52ed2417e servo: Merge #5583 - layout: Don't take collapsible top margin into account when determining the float ceiling (from pcwalton:float-ceiling-top-margin-redux); r=mbrubeck
As the float ceiling is relative to the border box, not the margin box,
of the parent flow, top margin must not be included.

This exposed a pre-existing bug whereby margins are discarded if a block
contains only floats and no content, affecting the tests
`float_intrinsic_height.html` and `margins_inside_floats_a.html`. As a
workaround, some invisible content has been added to the bodies of both
tests.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 1c884dc76bef440f8ccd344fab874e2e2161683b
2015-04-08 18:04:14 -05:00
Patrick Walton 6146e9b4fd servo: Merge #5493 - layout: Simplify and improve the correctness of whitespace stripping in text layout, and unify the inline layout paths for pre- and normally-formatted text (from pcwalton:jumpiness); r=mbrubeck
This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff.

Closes #2260.

r? @mbrubeck
cc @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: d3478954fd8e3a8374104984efb91a918b5dbb7e
2015-04-08 17:13:36 -05:00
Anthony Ramine d82ea87ceb servo: Merge #5578 - Use a Temporary iterator in Node::collect_text_contents() (from nox:collect_text_contents-unsound); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 656617a91c906d7ec438543c757d8b8d1c7326aa
2015-04-08 16:16:53 -05:00
Ms2ger 4e3e099b14 servo: Merge #5570 - Cleanup cef/wrappers.rs (from Ms2ger:cef); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 37b67388846649da194bee653fa271963a9ee590
2015-04-08 15:04:20 -05:00
Anthony Ramine 8e14e59080 servo: Merge #5575 - Implement NamedNodeMap::removeNamedItem*() (from nox:namednodemap-remove); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0f0dd02daa5899d3f0117c37fb5669decae9c00f
2015-04-08 13:22:29 -05:00
Mátyás Mustoha 3b19a4cdea servo: Merge #5563 - Canvas: added support for the globalAlpha attribute (from mmatyas:canvas_globalalpha); r=jdm
A patch somewhat similar to #5562

Source-Repo: https://github.com/servo/servo
Source-Revision: ee7d76221345362c069a6946e01b9ec7d4b42ce3
2015-04-08 11:58:04 -05:00
Matt Brubeck f4d030facd servo: Merge #5589 - Set dirty flag on hover or focus change (from mbrubeck:dirty); r=pcwalton
This fixes a bug where styles are not recalculated immediately when an element's hover or focus state changes.  I'm not sure how to write an automated test for this.  r? @glennw or @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: a745dda8635aa3f84fba19c62911edc64faa1281
2015-04-08 10:36:33 -05:00
Anthony Ramine 39796a9628 servo: Merge #5573 - Implement ParentNode attributes (from nox:parentnode-attributes); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 188a0e7b94942072832964c89d2407ecb4248527
2015-04-08 07:54:13 -05:00
Ms2ger 916ace51f1 servo: Merge #5564 - Cleanup some JS conversions (from Ms2ger:FromJSValConvertible); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 71e07013ded2dd168bfc3be4db79bebe230786ef
2015-04-08 06:09:56 -05:00
Patrick Walton 10be2ee7c8 servo: Merge #5587 - layout: Position and size list images properly in the block direction (from pcwalton:list-style-image-sizing-redux); r=glennw
Improves Wikipedia.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 267badae69d476bbac63a687bb8fb63bf336aec2
2015-04-08 04:48:30 -05:00
Patrick Walton 29f9b60d27 servo: Merge #5584 - layout: Remove the bogus `assign_block_size_for_inorder_child_if_necessary` logic from table wrapper flows (from pcwalton:fix-a-float-redux); r=glennw
As far as I can tell, this is a cut-and-paste of old buggy code from
block flows. Delegating to the correct block flow code fixes the sidebar
float placement on Guardians of the Galaxy.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: f4da0f0e94259e12adeb193fd9ecf6813457b883
2015-04-08 03:57:36 -05:00
Josh Matthews 8be8eb016b servo: Merge #5571 - Remove int_uint feature from gfx (from jdm:gfx_uint); r=Ms2ger
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 83d9ab3ba5c6a725632a954cf2b9f65832f89832
2015-04-08 03:06:09 -05:00
Josh Matthews c7a04f330e servo: Merge #5568 - Remove int_uint from net (from jdm:net_uint); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: cad27a9d25390cda965c591f180a46061a2c19e9
2015-04-08 01:47:56 -05:00
Mátyás Mustoha 54245a9426 servo: Merge #5562 - Canvas: added lineWidth support (from mmatyas:canvas_linewidth); r=jdm
Rebase of #5488

Source-Repo: https://github.com/servo/servo
Source-Revision: f57b487e4d53c60d8afe704ab0fd92f6158d63da
2015-04-08 00:56:37 -05:00
Xue Fuqiao 027a37ebfd servo: Merge #5557 - Update CONTRIBUTING.md (from xfq:patch-1); r=metajack
Update the URI of Rust Code of Conduct.

Source-Repo: https://github.com/servo/servo
Source-Revision: f3df8859a83e1e3c61ee1472eb33132f28406a97
2015-04-07 23:55:31 -05:00
Aneesh Agrawal 18d9e6f48b servo: Merge #5550 - Don't consume self when calling root on a Temporary<T> (from aneeshusa:fix-issue-5540); r=jdm
Fixes issue #5540.

As far as I can tell this is all that's necessary, but I'm new to Rust, so let me know if I missed something!

Source-Repo: https://github.com/servo/servo
Source-Revision: 2089c1f285ae21789b9bff368154de3e7f49ffc7
2015-04-07 23:04:12 -05:00
Jag Talon 20a6cab60b servo: Merge #5527 - opts.rs: don't accept multiple URLs. Fixes #5520 (from jagtalon:jag/multiple-urls); r=mbrubeck
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.

Source-Repo: https://github.com/servo/servo
Source-Revision: df57af1fc41814389ab246f9a199ab868b1ecd74
2015-04-07 22:08:33 -05:00
Simon Sapin 5b41ccfb98 servo: Merge #5574 - Move unit tests to their own crates, cut time by 96% (from servo:unit-tests); r=jack
On my laptop, running `./mach test-unit` goes from about 11 minutes to 22 seconds, when run after `./mach build`.

Fix #5291.

Source-Repo: https://github.com/servo/servo
Source-Revision: 017d1053617f6769d7f355e4a97d52ae67e53d1c

--HG--
rename : servo/components/net/test.jpeg => servo/tests/unit/net/test.jpeg
rename : servo/components/script/tests.rs => servo/tests/unit/script/size_of.rs
2015-04-07 21:16:49 -05:00
Diego Marcos 5cfb1364bd servo: Merge #5433 - Implements drawImage for html image as ImageSource (from dmarcos:issue5290); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 58637a1174f94cb1ebbb394d3ba3c8c8f2d70639

--HG--
rename : servo/tests/html/test_canvas_drawimage.html => servo/tests/html/test_canvas_drawimage_canvas.html
2015-04-07 18:38:34 -05:00
Ms2ger 3dea48290b servo: Merge #5569 - Implement support for object in IDL (from Ms2ger:object); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3fb666cf606f835a9ab9165339e34023ab83a358
2015-04-07 13:32:02 -05:00
Josh Matthews a584e5982d servo: Merge #5005 - Implement MIME sniffing (from jdm:mime-sniffing); r=jdm
This rebases and integrates #4209, removing the sniffer task (turns out it wasn't a great idea), and adds a `--sniff-mime-types` command line flag to enable sniffing for file:// and http:// resources. Tested against a random picture file on my harddrive. The actual MIME sniffing implementation can be extracted into a separate library separately.

Source-Repo: https://github.com/servo/servo
Source-Revision: c7e210f24c97be1057a652b3644332e7043bfeac
2015-04-07 12:48:06 -05:00
Jag Talon c1a292ae31 servo: Merge #5543 - RootCollection: Start using RootedVec instead of SmallVec32 (from jagtalon:jag/slashdot); r=jdm
Partially fixes #5504.

Props to @ehegnes and @jdm for the help!

Source-Repo: https://github.com/servo/servo
Source-Revision: 184d214e260213bafc5801af33f3031289da9361
2015-04-07 11:56:50 -05:00
Matt Brubeck b77caac6c2 servo: Merge #5542 - Make mach test-unit a little bit smarter (from mbrubeck:test-unit); r=metajack
Moved from #5512. r? @larsbergstrom or @metajack or @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: bd7e4d661a6402a2b7821aa71aee977206b69925
2015-04-07 11:13:37 -05:00
Anthony Ramine 685ac5ef7e servo: Merge #5541 - Use Temporary values in node iterators (from nox:node-iterators-temporary); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e57630711fed229cb9c939aa31619f42aa62651e
2015-04-07 10:22:10 -05:00
Anthony Ramine ba677a49cf servo: Merge #5490 - Implement NamedNodeMap::getNamedItem*() (fixes #5454) (from nox:namednodemap); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e521860a0e564be4b9b3a76a842215dabf8992ea
2015-04-07 09:31:20 -05:00
Josh Matthews 00a5a1540c servo: Merge #5536 - Remove int/uint from devtools/devtools_traits (from jdm:devtools_uint); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 48ee05620d4a063f6b7c3668e1aec38c68999aae
2015-04-07 08:20:36 -05:00
Patrick Walton d8f9992921 servo: Merge #5552 - layout: Correctly take the inline size of cleared floats into account when estimating the inline size of block formatting contexts (from pcwalton:block-formatting-context-cleared-floats); r=glennw
The speculated inline-size of the preceding floats was forced to zero at
the wrong time if the float was itself cleared, causing it to overwrite
the speculated value. Shuffling the code around a bit fixes the problem.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 07520de97047916f0d15c7a63b3de20eac50f010
2015-04-07 04:51:13 -05:00
Corey Farwell c86aaa8e69 servo: Merge #5526 - Utilize Option::expect (from frewsxcv:expect); r=jdm
None

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f773d73c4478b7e284f0ba6a325b2f8c9be4e5b
2015-04-07 03:33:11 -05:00
Dave Hodder b05e81d72a servo: Merge #5525 - Add basic HTMLDialogElement interface (from dhodder:master); r=jdm
An empty DOM interface for HTMLDialogElement

r?

Source-Repo: https://github.com/servo/servo
Source-Revision: 1fd609d198e99c87dee1a8a79e908cd1604040af
2015-04-07 02:50:04 -05:00
Utkarsh Kukreti 363eb1983b servo: Merge #5523 - Use quasiquotes for attributes in `plugins` crate (from servo:use-quasiquote-for-attributes); r=jdm
Fixes #5157.

Source-Repo: https://github.com/servo/servo
Source-Revision: d38fca6ed629dc52d030e3ba0d8eb18a39e35a0c
2015-04-07 01:57:08 -05:00
Chris Paris d486c82492 servo: Merge #5338 - Implement Element.outerHTML setter (from ChrisParis:outerhtml); r=jdm
The first commit refactors the fragment parsing and innerHTML setter. This makes the code mirror the structure of the spec more closely, and also prepares for reusing code with the outerHTML setter.

Source-Repo: https://github.com/servo/servo
Source-Revision: 45b40d49a510d72c029dd79197abbfffd993389b
2015-04-07 01:15:45 -05:00
yodalee 1323e57aad servo: Merge #5423 - add readonly pathname function in location (from yodalee:issue5397-location-pathname); r=jdm
issue #5397

Source-Repo: https://github.com/servo/servo
Source-Revision: d0acc33bf2cdeb4faefdf4ff3c2a40eb9d6bd544
2015-04-06 23:59:18 -05:00
Josh Matthews 46eb131dd4 servo: Merge #5415 - Get the barest bones of webdriver integration ready for keeners (from jdm:webdriver); r=jdm
Requires https://github.com/jgraham/webdriver-rust/pull/6.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f57c6d74acd50077eb015bdebffd2adac1e552e
2015-04-06 22:09:44 -05:00