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

2123 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 08c7a3c4cb servo: Merge #2637 - Remove unused InitIds function (from Ms2ger:initids); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 6e2a9169580e6e0a77b5c7154230ded6116178ae
2014-06-11 13:35:08 -04:00
Ms2ger 1754b1ee90 servo: Merge #2636 - Pass a JSRef to RegisterBindings::Register (from Ms2ger:registerbindings); r=larsbergstrom
JS<T> should only be used for members of traced structures; the correct type
for arguments is JSRef.

Source-Repo: https://github.com/servo/servo
Source-Revision: d255a83a48388c0720cc7e495aac15f9ebcf2a7b
2014-06-11 13:09:05 -04:00
Ms2ger 62fdd19b13 servo: Merge #2627 - Implement HTMLIFrameElement.src (from Ms2ger:iframe-src); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 57e8be0c8f9d0c1a506d3a9f1f152865a334bd2c
2014-06-10 12:32:17 -04:00
Ms2ger 339ca80f9c servo: Merge #2622 - Implement variadic arguments (from Ms2ger:variadic); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1d35650d4fc3cd74f3e960f90b7c776818637ca9
2014-06-10 04:26:38 -04:00
Patrick Walton 5bf287105d servo: Merge #2626 - script: Inline `is_element_for_layout` and friends (from pcwalton:inline-get-element); r=jdm
8% improvement on style recalc on Wikipedia.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 4b5fd956bda51e10e4a42e1b9640f1c541b393da
2014-06-09 23:13:34 -04:00
Ms2ger 58a648532a servo: Merge #2618 - Implement Console.assert (from Ms2ger:console-assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 01a93d82bf868766bae0170bd6204880caa44d56
2014-06-09 22:49:35 -04:00
Ms2ger 260822a25e servo: Merge #2611 - Synchronize the WebIDL parser with Gecko (from Ms2ger:webidl-parser-sync); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0ff6a45709a3e46d9f2c5a3f4403fc95d08264e5
2014-06-09 22:19:44 -04:00
Matt Brubeck 2390dd1e44 servo: Merge #2624 - Convert window size to px before passing to script or layout (from mbrubeck:units); r=pcwalton
This fixes an issue where the CSS viewport was too large on high-DPI displays
because it was set to the window size in device pixels, instead of px.  This
patch ensures that the window size is converted from device pixels to px
before being passed to script/layout code.

The Window trait now exposes the window size in both device pixels and
density-independent screen coordinates, with clearer method names.

Source-Repo: https://github.com/servo/servo
Source-Revision: f359bc93376a42a6dfefd0e2759d660d751a35aa
2014-06-09 18:52:41 -04:00
Tetsuharu OHZEKI 5e70116272 servo: Merge #2612 - Remove 'LayoutNode.pad' field (from saneyuki:rm_pad); r=jdm
Fix #2512

Source-Repo: https://github.com/servo/servo
Source-Revision: eee072f5d5163cbe9b8c2e7735c6eca17bc5d3f9
2014-06-09 15:22:48 -04:00
Patrick Walton 2e6b9cd08c servo: Merge #2621 - gfx: Binary search for the start position when iterating over the slices (from pcwalton:binary-search-fix); r=brson
in a text run.

This makes painting of text display items faster and matches what Gecko
does.

Incorrect automatic derivation of `TotalOrd` broke it last time.

r? @brson

Source-Repo: https://github.com/servo/servo
Source-Revision: 3571b3977d224798fe1424591fbae64a1ef2f08d
2014-06-09 13:04:49 -04:00
Ms2ger 6d6a247f94 servo: Merge #2619 - Support GlobalEventHandlers.onclick (from Ms2ger:onclick); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e98b03f581912c5bd5175138a3d8dd45fc70a226
2014-06-08 20:46:39 -04:00
Manish Goregaokar 336c7ef7ac servo: Merge #2617 - Fix some deprecated warnings for to_owned() (from Manishearth:string-warn); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 6e856f4d1c7dcf015b47f640162de14663cada8f
2014-06-08 12:46:31 -04:00
Manish Goregaokar 22cf5c3f68 servo: Merge #2613 - Extension methods, getResponseHeader(), an extra error, and make sync not crash (from Manishearth:xhr-wpt-methods); r=Ms2ger
For [XMLHttpRequest/open-method-case-sensitive.htm](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-case-sensitive.htm), [XMLHttpRequest/XMLHttpRequest/open-method-insecure.htm](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-insecure.htm), [XMLHttpRequest/XMLHttpRequest/open-method-responsetype-set-sync.htm ](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-responsetype-set-sync.htm) in particular. `getResponseHeader()` is used by a lot of other tests (the harness echoes most of the metadata in the response headers, which is tested on this side)

The sync changes fixes half of the timeouts to give meaningful results.



Blocks #2525

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f41eda3215cbb97499855ffb7a5170b488ba00a
2014-06-08 12:22:31 -04:00
Tetsuharu OHZEKI 3f112a4f65 servo: Merge #2615 - Use RefCell for mutability of Element::style_attribute (from saneyuki:refcell); r=Ms2ger
related: #2513
Source-Repo: https://github.com/servo/servo
Source-Revision: 743dcee0f59d63bfbb820df2412c8e2267b38f66
2014-06-08 10:43:39 -04:00
Tetsuharu OHZEKI fcb5dd4af2 servo: Merge #2614 - Make the bindings make target work on all platforms (from saneyuki:make); r=jdm
Fix #2583

Source-Repo: https://github.com/servo/servo
Source-Revision: 18a4d4607040924e92d5e71976c214d287b8146a
2014-06-07 17:19:32 -04:00
Manish Goregaokar c247d8b8ae servo: Merge #2573 - Allow union types to be used as return values (from Manishearth:union-return); r=Ms2ger
Blocks #2559

Source-Repo: https://github.com/servo/servo
Source-Revision: c787fde1ec6288d96988dcba9b4d82b8e6e06a56
2014-06-07 14:19:29 -04:00
Matt Brubeck f12e6f17fb servo: Merge #2602 - Don't require root pipeline to match new pipeline (from mbrubeck:revert-root-pipeline-check); r=pcwalton
This reverts 2b0134be7bb8a4372f1a8703b5a1b114e65351f6 because it was not correct for iframes.  Oops.  (Wasn't caught by tests because we still have other crashes preventing iframe testing.)  r? @pcwalton.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1184b500e50123fdcfb6824bed1df6e770b0d0f8
2014-06-07 02:46:21 -04:00
Brendan Zabarauskas bd962a3ef6 servo: Merge #2607 - Fix leak (from brendanzab:leeeeeak); r=jdm
Introduced by yours-truly in 7212c3573e7f2b13f907e17a5683d382b34ab932

Oopsie.

Source-Repo: https://github.com/servo/servo
Source-Revision: f1194fc85bfb857962684eccd352968b3ace7d84
2014-06-06 17:49:21 -04:00
Bruno de Oliveira Abinader 081cdd3e3b servo: Merge #2591 - Implement ParentNode's querySelector on Document, DocumentFragment & Element (from brunoabinader:document-queryselector-v3); r=jdm
This is a subtask for #2254 & #2576.

Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselector

Source-Repo: https://github.com/servo/servo
Source-Revision: b52fbe0a5f5fcececa065b0d818916a7f782cf5c
2014-06-06 17:22:25 -04:00
Matt Brubeck 67ff35687f servo: Merge #2603 - Use some typed units in compositor and windowing (from mbrubeck:units); r=pcwalton
This is a rebased, squashed, and updated version of #2444.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c382243c4b3de9f0eec9cd71c757897ffd1b2e0
2014-06-06 16:04:34 -04:00
Ms2ger 50c03a2fec servo: Merge #2606 - Fix build warnings and miscellaneous issues (from Ms2ger:warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a49fa8d23d732e7ab9e9bcfab0a81d6a1127b40a
2014-06-06 15:32:11 -04:00
Brian Anderson c085b753b5 servo: Merge #2608 - Revert "auto merge of #2584 : pcwalton/servo/binary-search, r=SimonSapin (from brson:revbinsearch)
Source-Repo: https://github.com/servo/servo
Source-Revision: b929a2f53cb1025d4786b55d097b8b99846d9878
2014-06-06 12:30:03 -07:00
Ms2ger 62cdaaaf9c servo: Merge #2599 - Improve types around CreateInterfaceObjects2 (from Ms2ger:constantspec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: eae9b943991cef4495bdc0b2bb5f8deae57cb835
2014-06-06 14:04:29 -04:00
Ms2ger 421c38eefe servo: Merge #2598 - Squash a warning about deriving traits on a struct that contains a raw pointer (from Ms2ger:unsafe-deriving); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c54baa663e4dbaf00fd2d5d5642eb26a52dcf479
2014-06-06 13:31:31 -04:00
Ms2ger a76c1fe35d servo: Merge #2597 - Remove htmlmainelement.rs again (re-fixes #2541) (from Ms2ger:main); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 60fba1055c98d4d604301d35b39db8782e12335d
2014-06-06 13:04:35 -04:00
Ms2ger 26108dea85 servo: Merge #2596 - Don't use mem::transmute for the argument to CreateProxyHandler (from Ms2ger:CreateProxyHandler-transmute); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: af9da5cc24b4f400bf728de5c5d0c239673d83c4
2014-06-06 12:34:58 -04:00
Tetsuharu OHZEKI 562fc91bb3 servo: Merge #2600 - Remove needless '&self mut' from VirtualMethods trait (from saneyuki:mut); r=Ms2ger
Related #2514

Source-Repo: https://github.com/servo/servo
Source-Revision: a575cb7d9e3e226b33c87abf13eea54aa2968e04
2014-06-06 12:01:45 -04:00
Manish Goregaokar 05dcbd4942 servo: Merge #2590 - JSON response support and some default headers (from Manishearth:xhr-json); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e997090d8e61bf509d1a8ca73771ca6a97d1a0ad
2014-06-06 10:46:40 -04:00
Patrick Walton cd6ccd4cbf servo: Merge #2584 - gfx: Binary search for the start position when iterating over the slices (from pcwalton:binary-search); r=SimonSapin
in a text run.

This makes painting of text display items faster and matches what Gecko
does.

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: d8483d2365b234ec32478eb836fe6019bead9265
2014-06-06 00:58:25 -04:00
Brendan Zabarauskas e713b3c346 servo: Merge #2589 - Assorted cleanups (from brendanzab:cleanups); r=pcwalton
@pcwalton r?

Might conflict with the rust upgrade - I can rebase later.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3dedbd2719c78b636f4fd0860b07f1b53ed84c24
2014-06-05 19:37:36 -04:00
Junyoung Cho 4ab42a2b22 servo: Merge #2592 - Fix the vertical alignment error for img tag (from june0cho:fix_vertical_align); r=SimonSapin
It fixes the wrong vertical alignment for img element. (related to #2422, #2554)
Worked with @ryanc

Source-Repo: https://github.com/servo/servo
Source-Revision: d293b469442ddc7de4257c14bcba685218019598
2014-06-05 18:58:30 -04:00
Patrick Walton a27e32ba0a servo: Merge #2588 - gfx: Add display list optimization to eliminate clipped items before (from pcwalton:display-list-optimization); r=glennw
submitting them to Skia.

40x improvement in painting time on Wikipedia.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 10b1e655b0dfec66fea948f974d41339d796c716

--HG--
rename : servo/src/components/gfx/display_list.rs => servo/src/components/gfx/display_list/mod.rs
2014-06-05 16:46:28 -04:00
Edit Balint 29164f13b9 servo: Merge #2586 - Reduce the number of times we call rustc in our Makefile #2327 (from ebalint:2327); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 188b2c725d55f79e289a181575ca13c89408b1c7
2014-06-05 16:16:32 -04:00
Jack Moffitt 0efdf108b8 servo: Merge #2538 - Upgrade Rust (from servo:rustup-20140528); r=SimonSapin
Not yet ready for merge, but you can start reviewing.

Still need to fix linux and some make check code.

Source-Repo: https://github.com/servo/servo
Source-Revision: b2e7e67087370e30a310bb3673b074c97c19d548

--HG--
rename : servo/src/components/style/common_types.rs => servo/src/components/style/properties/common_types.rs
rename : servo/src/components/style/properties.rs.mako => servo/src/components/style/properties/mod.rs.mako
rename : servo/src/components/util/debug.rs => servo/src/components/util/debug_utils.rs
2014-06-05 13:58:44 -04:00
Cameron Zwarich 1d24065b90 servo: Merge #2582 - Drop event listener exceptions on the floor (from zwarich:drop-exceptions); r=jdm
We get a lot of failures from assertions that event listeners haven't
thrown exceptions. As the FIXME above these assertions suggests, we
should just drop them on the floor.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ae671b5aa9d27812adcdb8ebc749733156df66e
2014-06-05 02:58:27 -04:00
Matt Brubeck 6e5a9bec2e servo: Merge #2581 - Fix text decoration bug in applicable declarations cache (from mbrubeck:declarations-cache); r=pcwalton
Fixes #2498.  Also includes a reftest, and some related code cleanup (in separate commits).

Note: The fix in `properties.rs.mako` is much more readable with `git diff -w`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 41a6234b39e1655d2137c97cec6e572033896b86
2014-06-05 01:37:30 -04:00
Matt Brubeck 9da02b820d servo: Merge #2575 - Remove all old layers before adding a new root layer (fixes #2259) (from mbrubeck:2259-remove-old-layers); r=pcwalton
This fixes #2259 which was caused by some of the previous layers sticking around incorrectly.  Depends on mozilla-servo/rust-layers#69.

Also includes some related cleanup as separate commits.

No reftest because our test harness doesn't yet support navigating to a new page (#2574).

Source-Repo: https://github.com/servo/servo
Source-Revision: 473b9e488bf7354e4bed434ca99039328ddd5823
2014-06-04 14:28:22 -04:00
Manish Goregaokar 5c2a8c1698 servo: Merge #2521 - Add responseText and status code support to XHR (from Manishearth:xhr-responsetext); r=Ms2ger
Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: 33c4a7a5dc84ff94d30fe00c4957c0030afb217b
2014-06-04 07:52:12 -04:00
Patrick Walton a0a637d36c servo: Merge #2570 - layout: Implement reference counting for flows (from pcwalton:ref-count-flows); r=pcwalton
r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 57ab4206167ab091c6745fa5d3ddf6a8c90b15d3
2014-06-04 01:25:28 -04:00
Tetsuharu OHZEKI d7e6e10f6c servo: Merge #2557 - Remove needless '&mut self' from Window/Document (from saneyuki:mut); r=jdm
related #2514

Source-Repo: https://github.com/servo/servo
Source-Revision: 5a97f5fd79cf55f3c9803511f9e08c0ff5d216ee
2014-06-03 13:31:26 -04:00
Ms2ger 4defedfb42 servo: Merge #2558 - Move WebIDL unions into their own module (from Ms2ger:mod-unions); r=jdm
This will allow multiple unions to contain the same type.

Source-Repo: https://github.com/servo/servo
Source-Revision: d448e97c6ac7c73336056be875ca99e5d63d75c3
2014-06-03 12:58:23 -04:00
Manish Goregaokar a4f25fcd68 servo: Merge #2526 - Order of firing events (XHR) (from Manishearth:event-order); r=Ms2ger
For the wpt test [event_load](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/event-load.htm)

Blocks #2525

Source-Repo: https://github.com/servo/servo
Source-Revision: a90f1e3773671b3664c5c630085211cac908701e
2014-06-03 09:40:14 -04:00
Brian Anderson 576612970c servo: Merge #2555 - Eliminate some warnings (from brson:warnings); r=metajack
Depends on https://github.com/mozilla-servo/rust-fontconfig/pull/19, https://github.com/mozilla-servo/rust-harfbuzz/pull/21, https://github.com/mozilla-servo/rust-hubbub/pull/23, https://github.com/mozilla-servo/rust-layers/pull/68, https://github.com/mozilla-servo/sharegl/pull/29, https://github.com/mozilla-servo/rust-mozjs/pull/85.

Source-Repo: https://github.com/servo/servo
Source-Revision: 246c9759bee9fa54a9167e9b08478446e80cd80f
2014-06-02 20:46:25 -04:00
Brendan Zabarauskas f457bf9b3d servo: Merge #2553 - Remove inline fragment map (from brendanzab:remove-inline-fragment-map); r=pcwalton
This simplifies inline.rs and makes things easier to understand.

I've also added some documentation for `Line`.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 184d8b5bab2aa999280c6c3b7618428bb22b5205
2014-06-02 19:34:16 -04:00
Ms2ger 9a432a9a20 servo: Merge #2550 - Support dictionary members without default values (from Ms2ger:default-handling); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 52a809259af6a07820589c42ea406765c2cfc5ee
2014-06-02 18:01:22 -04:00
Matt Brubeck 42f9ab7419 servo: Merge #2549 - Add an option to set device pixel ratio (from mbrubeck:hidpi-opt); r=metajack
This is part of the fix for #2276. r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: cd4a70964269f4aae9695241ca0feae1792a463c
2014-06-02 16:52:32 -04:00
Tetsuharu OHZEKI 1cb51f9642 servo: Merge #2552 - Remove needless '&mut self' from element.rs (from saneyuki:mut); r=jdm
related #2514

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d6a1fc0669e1338103535c9b1bc7c862f3a68fa
2014-06-02 14:58:27 -04:00
Ms2ger 303dbfe060 servo: Merge #2551 - Rename BindingDeclarations to Bindings (from Ms2ger:bindings-rename); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5ebe3302470ef0561d2b9fcf7c7b2030b2921c2d
2014-06-02 14:25:31 -04:00
Ms2ger 355a89864b servo: Merge #2547 - Add more dictionary codegen tests (from Ms2ger:dictionary-tests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 488ac518e4d425e3d671eb1480df4502578b789e
2014-06-02 13:07:47 -04:00
Ms2ger 7e40b929d0 servo: Merge #2546 - Remove low-level pointer stitching methods from Node (from Ms2ger:node-pointer-stitching); r=jdm
There is no good reason for the additional abstraction here.

This commit also adds assertions that were suggested in XXX comments.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6c557265533355bd588c61d54ed0b18ef9c03bcd
2014-06-02 12:37:26 -04:00