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

2616 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 294c72706d servo: Merge #3581 - Pin Cargo to the 2014-10-02 nightly (from Ms2ger:pin-cargo); r=metajack
Relevant to #3580.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8de734f00a9d7598b72acce991410f457169e27a
2014-10-06 09:33:32 -06:00
Andrew Guertin e9e999ad3b servo: Merge #3569 - Replace Cell<Option<JS<T>>> with MutNullableJS<T> (from andrewguertin:mutnullablejs); r=Manishearth
https://github.com/servo/servo/issues/3564

Source-Repo: https://github.com/servo/servo
Source-Revision: d23e45fe5db54994f4f3569f8bda1ec5a6121610
2014-10-03 18:45:27 -06:00
Martin Robinson 5e7fb04ec5 servo: Merge #3567 - Account for RenderLayer position when optimizing display list (from mrobinson:optimizer); r=zwarich
The page_rect passed to DisplayListOptimizer is relative to the
RenderLayer origin, but the display list components are relative to the
page origin. Before passing the page rect to the display list, we
translate it by the RenderLayer position.

Source-Repo: https://github.com/servo/servo
Source-Revision: a6cd13c89054b605e1000bc3475153fbd2fde7bf
2014-10-03 16:27:25 -06:00
Matt Brubeck add1ba71b5 servo: Merge #3568 - Add Android build config to mach/servobuild (from mbrubeck:mach-android); r=metajack
This allows setting Android toolchain paths in `.servobuild`, and also adds a `--android` option that sets the correct default target and causes `mach build` to also build the APK.

Source-Repo: https://github.com/servo/servo
Source-Revision: bf7beb4837246aa53f611492b1ff0986f221a47e
2014-10-03 15:45:28 -06:00
Jack Moffitt 47258b49e5 servo: Merge #3566 - Fix up and run unit tests (from metajack:fixup-unit-tests); r=mbrubeck
This adds the subpackages to `./mach test-unit`.

Source-Repo: https://github.com/servo/servo
Source-Revision: d4e977a2be1f1fea81c32d1f7024b228cb161966
2014-10-03 09:57:26 -06:00
Ms2ger b8ea8e33d2 servo: Merge #3562 - Cleanup Document.find_fragment_node (from Ms2ger:cleanup-fragment-node); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a2531cd8aa0463e0941229b2f89f1433ad5b5e5e
2014-10-03 03:48:25 -06:00
Jack Moffitt 9648aa2490 servo: Merge #3561 - Add --verbose to build-cef command (from metajack:build-cef-verbose); r=zwarich
Source-Repo: https://github.com/servo/servo
Source-Revision: 76d1d78cc0e08185f372a53e0cb2ce9e46213c31
2014-10-02 11:36:25 -06:00
Ms2ger 84e54dd33a servo: Merge #3558 - Remove the fragment_node field from Page (from Ms2ger:fragment-node); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 643a6d07a201d7db9325250522a80bc3357f11ce
2014-10-02 10:15:27 -06:00
Patrick Walton 08b194a932 servo: Merge #3560 - gfx: Use subpixel positioning for glyphs (from pcwalton:subpixel-glyph-positioning); r=mbrubeck
Improves text rendering significantly.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: adb428a725293fd639a0f188a32f3111ffca4d5b
2014-10-02 09:27:26 -06:00
Patrick Walton 000f242577 servo: Merge #3556 - layout: Implement `box-sizing: border-box` (from pcwalton:box-sizing); r=SimonSapin
Improves GitHub.

Source-Repo: https://github.com/servo/servo
Source-Revision: c7915028b498dc8426cdbb5b35f0ad270613a244
2014-10-01 23:39:26 -06:00
Patrick Walton 3a9cd8611d servo: Merge #3549 - gfx: Fix imprecision in `float_to_fixed` (from pcwalton:fix-float-to-fixed); r=zwarich
Improves text rendering a lot.

r? @zwarich

Source-Repo: https://github.com/servo/servo
Source-Revision: 622a6fb113081175bcc144e113e592dc2cf4b142
2014-10-01 23:18:23 -06:00
Patrick Walton c3a687251b servo: Merge #3546 - layout: Implement the correct hypothetical box behavior for absolutely-positioned elements declared with `display: inline` (from pcwalton:absolute-inline); r=glennw
Although the computed `display` property of elements with `position:
absolute` is `block`, `position: absolute; display: inline` can still
behave differently from `position: absolute; display: block`. This is
because the hypothetical box for `position: absolute` can be at the
position it would have been if it had `display: inline`. CSS 2.1 §
10.3.7 describes this case in a parenthetical:

"The static-position containing block is the containing block of a
hypothetical box that would have been the first box of the element if
its specified 'position' value had been 'static' and its specified
'float' had been 'none'. (Note that due to the rules in section 9.7 this
hypothetical calculation might require also assuming a different
computed value for 'display'.)"

To handle this, I had to change both style computation and layout. For
the former, I added an internal property
`-servo-display-for-hypothetical-box`, which stores the `display` value
supplied by the author, before the computed value is calculated. Flow
construction now uses this value.

As for layout, implementing the proper behavior is tricky because the
position of an inline fragment in the inline direction cannot be
determined until height assignment, which is a parallelism hazard
because in parallel layout widths are computed before heights. However,
in this particular case we can avoid the parallelism hazard because the
inline direction of a hypothetical box only affects the layout if an
absolutely-positioned element is unconstrained in the inline direction.
Therefore, we can just lay out such absolutely-positioned elements with
a bogus inline position and fix it up once the true inline position of
the hypothetical box is computed. The name for this fix-up process is
"late computation of inline position" (and the corresponding fix-up for
the block position is called "late computation of block position").

This improves the header on /r/rust.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: f7d2fb6ff86afff7a5b674f751af9370a5a6b142
2014-10-01 19:36:25 -06:00
Josh Matthews 5b0373348c servo: Merge #3520 - Implement basic form control support (from jdm:formcontrols); r=pcwalton
So far the changes to layout seem fairly well-contained; I think this is worth integrating to give us a browser that is easier to dogfood (and allows us to work on things like form submission much easier), especially since the long-term viability of WebComponents-as-forms is not assured.

Source-Repo: https://github.com/servo/servo
Source-Revision: f80096069592b864221abe112eaf2ecb6c444fda
2014-10-01 16:45:29 -06:00
Martin Robinson ecc949231f servo: Merge #3538 - Fix layer selection and point translation for mouse events (from mrobinson:events-and-layers); r=zwarich
Select the topmost layer at a given point to send mouse events and when
sending the event, ensure that they are relative to the layer origin,
rather than in absolute page coordinates.

Fixes #3504.

Source-Repo: https://github.com/servo/servo
Source-Revision: 479d8567d12aa0845c835fdae7d0dd45d7c63d4f
2014-10-01 14:33:26 -06:00
Jim Berlage 68ad93214e servo: Merge #3539 - Replace implementation of is in actor.rs (from jimberlage:fix/meaningful-is); r=jdm
This is intended to address #3488.  [AnyPrivate](http://doc.rust-lang.org/core/any/trait.AnyPrivate.html) is now in the Rust core, so we can leverage that instead of writing an implementation.

Source-Repo: https://github.com/servo/servo
Source-Revision: da6878a4e2925cefe9aa9368890d5791f965433e
2014-10-01 14:03:27 -06:00
Martin Robinson 166dee8d53 servo: Merge #3544 - No longer consider window size when scrolling (from mrobinson:simplify-scrolling); r=zwarich
Now that scrolling roots are properly sized, we can simply look at the
scrolling root layer size when deciding the extents of layer scrolling.
This simplifies things a bit and further codifies the current model of
scrolling root + mask_to_bounds.

Source-Repo: https://github.com/servo/servo
Source-Revision: bfe5c34f8abcf7d8f02ef46792913e289df173a5
2014-10-01 12:06:28 -06:00
Josh Matthews 179c7b7dcc servo: Merge #3531 - Implement MutNullableJS for mutable, nullable member pointers to DOM objects (from Ms2ger:MutNullableJS); r=Ms2ger
Extracted from #3527.

Source-Repo: https://github.com/servo/servo
Source-Revision: bae5440689c67f425f94ec27bf0f61ff955dc290
2014-10-01 09:09:28 -06:00
Cameron Zwarich 5ac3634894 servo: Merge #3542 - Remove extra lifetime parameters (from zwarich:more-jsref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a840fed78a493a481683ef73dae923190d87ba6c
2014-10-01 04:03:29 -06:00
Cameron Zwarich 8ef892113e servo: Merge #3541 - Convert the NodeHelpers trait to use self methods (from zwarich:more-jsref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f73e5088219cd6deeea0d4f0612cad750fc532a9
2014-10-01 02:51:27 -06:00
Cameron Zwarich 8e1c96a87b servo: Merge #3540 - Convert TNode / TElement to use self parameters rather than &self (from zwarich:more-jsref); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 09e9abc047e03b81b8a4aa90d13efa184d0a732f
2014-09-30 22:36:28 -06:00
Martin Robinson 7809f0a80f servo: Merge #3537 - Use LayerPixel for Layer bounds and most arguments (from mrobinson:scale); r=zwarich
When interacting with Layers it is simpler to use LayerPixels, which
are unscaled pixels in the Layer coordinate system. This removes a lot
of room for error and makes things simpler.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6358b7d94e14fc61348fd56bcd5c0ff50ae11156
2014-09-30 18:57:26 -06:00
Cameron Zwarich f911787c54 servo: Merge #3536 - Convert a method from &JSRef to JSRef (from zwarich:more-jsref); r=Manishearth
This also removes the unnecessary formation of a trait object.

Source-Repo: https://github.com/servo/servo
Source-Revision: 93e259227a969dbea1319d4d3ce92bc5706c6b06
2014-09-30 18:39:27 -06:00
Glenn Watson c863efe3ac servo: Merge #3535 - Refactor background image, fix fixed attachment. Improve acid2 (from glennw:fixed-bg); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: a63155b564b64825d292953983117c0df4b34e91
2014-09-30 17:45:29 -06:00
Keegan McAllister 2e5e961694 servo: Merge #3530 - Use string-cache's Namespace type, backed by Atom (from kmcallister:namespace-atom); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 698b916c097ae0272a31a680cba7fc6dbd03ca3d
2014-09-30 02:42:23 -06:00
Glenn Watson 7732ccd2ac servo: Merge #3529 - Enable acid2 reftest on Linux. Update rust-layers (from glennw:linux-acid2); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: eec2225716daf7515b07456c290cf2ac0f8ae283
2014-09-29 23:09:24 -06:00
Martin Robinson e0360fa36f servo: Merge #3526 - Mask root layer rectangles to their boundaries (from mrobinson:masks-to-bounds); r=zwarich
This prevents iframes contents from overflowing their root layers.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4be0a07585b019d45dd83849818854566c5e118b
2014-09-29 17:48:25 -06:00
Matt Brubeck bce5f7089e servo: Merge #3525 - Pass a viewport to the rendering code (from mbrubeck:viewport); r=zwarich
Updates to the latest rust-layers and rust-geom to pick up
servo/rust-layers#114.  r? @zwarich

Source-Repo: https://github.com/servo/servo
Source-Revision: 01b4100756ec0ae1ff61d0bee5ea065396bed855
2014-09-29 17:03:26 -06:00
Glenn Watson 2eb5f4d16d servo: Merge #3523 - Add support for <super> and <sup> tags. Fixes equations on wikipedia (from glennw:wiki-equations); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: b2ff320aecab80b06aeedad440c28b23b2dc3824
2014-09-29 15:36:26 -06:00
Bruno de Oliveira Abinader 75d8c24d5f servo: Merge #3491 - CSS selector :enabled no longer matches Anchor, Area & Link elements (from brunoabinader:css-selector-enabled-remove-anchor-area-link-elems); r=Ms2ger
HTML spec has been modified [1] to disable support for :enabled CSS
selector on Anchor, Area & Link elements, after discussion on W3C
Bugzilla [2].

[1] https://html5.org/r/8818
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622

Next step: Move :enabled CSS selector content test to web-platform-tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9e26352a1adbd182fc0a7b54eb32f43540267bb
2014-09-29 12:27:26 -06:00
Simon Sapin 2a5f4c7376 servo: Merge #3487 - Upgrade Rust and enable style crate rustdoc (from servo:rustup-20140923); r=Ms2ger
The biggest language change is that enum variants now also reserve (for future use) a name in the type namespace, which must not collide with other types. Some things were renamed, and others qualified as `module::name`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7409685589c550ee7a9f94182f511acddab4c6fd
2014-09-29 10:45:27 -06:00
Ms2ger d89779fcb8 servo: Merge #3522 - Don't move the data when extracting the bytes in XMLHttpRequest::Send (from Ms2ger:xhr-send-uaf); r=SimonSapin
The data is used later to set the Content-Type header. Current rustc
(4d2af3861) does not detect this use-after-move, but treats the later use as
if the data was None. It will, however, detect the bug in d2b30f7d3, which we
are upgrading to.

Source-Repo: https://github.com/servo/servo
Source-Revision: a58324f25b6f87d005026d8f9405c9f0d89a1f74
2014-09-29 09:57:27 -06:00
Glenn Watson 9ecef198ec servo: Merge #3517 - Revert "Set default resolution to 1280x1024 now that reftests render to (from glennw:revert-res-change); r=metajack
...FBO."

This reverts commit c74798bb6bcb98d2d6af998e2ab0f08e79097147.

Source-Repo: https://github.com/servo/servo
Source-Revision: 132ade0fce514ffeb56f34669967913d9015f035
2014-09-28 19:42:27 -06:00
Glenn Watson dd03a20652 servo: Merge #3514 - Fix gdb helper for Au printer (from glennw:gdb-helper)
Reviewed-by: metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 18b35faffe4f45dff60c4946e9027fd003a4f7a1
2014-09-28 18:09:30 -06:00
Glenn Watson 35474c1df5 servo: Merge #3513 - Set default resolution to 1280x1024 now that reftests render to FBO (from glennw:default-res)
Reviewed-by: metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 276ca5f2e976fa6c9ce56d98ec2b70efd9c54cdd
2014-09-28 17:42:31 -06:00
Ms2ger d17d718246 servo: Merge #3509 - Fix indentation in is_htmliframeelement (from Ms2ger:indentation-iframe)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 6184c13f9515caa2277c5ad4e997824d8cee171e
2014-09-28 07:45:27 -06:00
Rohan Prinja 76a3b06ed3 servo: Merge #3508 - trace keys as well (from wenderen:JSTraceable.key)
Reviewed-by: Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 42205675b31db21b1b8ef04bf4def912ecac69b5
2014-09-27 23:21:28 -06:00
Jack Moffitt 73f41e4485 servo: Merge #3506 - Fix the doc build step (from metajack:fix-doc-build)
Reviewed-by: SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 089d1fbd16fa1695f582f617236c6132f158f388
2014-09-27 18:24:28 -06:00
Cameron Zwarich 686b31d2f4 servo: Merge #3501 - Remove the 'static lifetime parameters from TElement methods (from zwarich:telement-lifetimes)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c9c8d63727560ab88a8b739f5ac305b8a02410d2
2014-09-27 17:09:28 -06:00
Ms2ger 1e20a69ba5 servo: Merge #3503 - Simplify the Page URL handling in handle_resize_inactive_msg (from Ms2ger:page-url)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1b5fac5bdeb855a0c41ca3dce82db70b19c094aa
2014-09-27 13:39:27 -06:00
Patrick Walton e6014d98df servo: Merge #3498 - Stop double-counting stuff in inline-block (from pcwalton:border-box-double-counting)
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: b7345796bc696bd0e7bc00384a71a30c676a3456
2014-09-27 13:12:30 -06:00
Cameron Zwarich 27470f19ae servo: Merge #3497 - Add an extended_deref method to JSRef (from zwarich:extended-deref)
Reviewed-by: Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: c10948736f1f7a8e6d6dcb1987a92818fb1f4003
2014-09-27 12:48:30 -06:00
Glenn Watson a4baaa9258 servo: Merge #3474 - When rendering to PNG, draw to an FBO rather than default framebuffer (from glennw:reftest-fbo)
Reviewed-by: mrobinson
Source-Repo: https://github.com/servo/servo
Source-Revision: 6fb8eb32f2fb071c1e656542960d9dda7d86f69d
2014-09-27 12:21:31 -06:00
Patrick Walton 46d0dadcf9 servo: Merge #3499 - style: Tweak the UA style a little bit (from pcwalton:ua-fixes)
Reviewed-by: SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: a2220f1ea41a909c3e048f97e24eec08b66eb608
2014-09-27 03:03:31 -06:00
Glenn Watson dad655f3ba servo: Merge #3500 - Fix some mutable variable warnings (from glennw:warning-fix)
Reviewed-by: pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: f7e5d295188a885027ff8cd5a6d7421581050ccf
2014-09-26 23:09:31 -06:00
Patrick Walton 6e2d06b989 servo: Merge #3492 - layout: Support any `display` property in generated content, and allow (from pcwalton:clear-generated-content-table)
Reviewed-by: glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 33e2a7b3625c82e83c7767e81266c2a23f509bed
2014-09-26 22:24:32 -06:00
Glenn Watson 6498d9ecd7 servo: Merge #3486 - Improve acid2. Fix line height calculation. Text fragments get correct enclosing element style (from glennw:inline-fixes)
Reviewed-by: pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 94b7c486b12a50298f0706fce42b70a6ca90cdcb
2014-09-26 21:57:35 -06:00
Cameron Zwarich a15780aea2 servo: Merge #3496 - Convert &JSRef -> JSRef in DisabledStateHelpers (from zwarich:disabled-state-helpers-jsref)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a35212410ae78a19db99d284d63a00d1a72dbd79
2014-09-26 20:24:33 -06:00
Cameron Zwarich 64b691ae3c servo: Merge #3493 - Improve the correctness of Root lifetimes (from zwarich:root-lifetimes)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 86eec63a02161de84f2404ff2292d3a8d1273784
2014-09-26 19:57:33 -06:00
ProgramFOX 6653f7d4f4 servo: Merge #3489 - Made some DOM fields private (from ProgramFOX:issue2242-2)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 39b6bd9b9586d101943055202a7e06eb8d349dd8
2014-09-26 19:30:33 -06:00
Gilles Leblanc 73a16a8a89 servo: Merge #3432 - Handle dynamic addition of attributes (from gilles-leblanc:issue-3361)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1e5770a138b39683e28763b878b354c317bc0322
2014-09-26 19:00:35 -06:00