Commit Graph

4890 Commits

Author SHA1 Message Date
Matt Brubeck
c0299bc195 servo: Merge #7786 - Use Harfbuzz 1.0 and unicode-script for text shaping (from mbrubeck:harfbuzz-sys); r=pcwalton
Depends on servo/rust-harfbuzz#53 and introduces a dependency on the new servo/unicode-script crate.  r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: a144d086d911375f8d5674ac90ff55a9dcaf0cda
2015-09-29 15:37:11 -06:00
Jacob Parker
df1c899822 servo: Merge #7764 - Only display text carets in text inputs (from j3parker:input-caret-only-for-text); r=pcwalton
For #7756

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c64e4a2c98cbf5e7b95dbea31c2e6993b70472c
2015-09-29 14:13:32 -06:00
Paul Rouget
7dc81d1480 servo: Merge #7778 - Add a command line option to disable native titlebar (from paulrouget:decorationLessOption); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d92e781a87b5a998f06580fa959c3ccb5cf14dcf
2015-09-29 13:45:57 -06:00
Paul Rouget
e71647c7c2 servo: Merge #7582 - implement navigator.platform (from paulrouget:navigator.platform); r=jdm
Fix #7573

I used this as a reference: http://stackoverflow.com/questions/19877924/what-is-the-list-of-possible-values-for-navigator-platform-as-of-today

Source-Repo: https://github.com/servo/servo
Source-Revision: c356593fd316d989060ccab6df4f2bc757cd55e2
2015-09-29 11:42:45 -06:00
Corey Farwell
803162b7a6 servo: Merge #7775 - Link to 'ask for a reset' tracking issue (from frewsxcv:tracking-issue); r=jdm
FIXME added in  https://github.com/servo/servo/pull/7745

Source-Repo: https://github.com/servo/servo
Source-Revision: ed0d70e2347648f7a0e7166fed8fb42b99b99fbc
2015-09-28 21:34:19 -06:00
Matt Brubeck
96964b7093 servo: Merge #7771 - Use the correct container size in compute_overflow (from mbrubeck:rtl-stacking-context); r=pcwalton
Fixes #7768 - positioning of RTL stacking contexts. r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: e68bd8d4ffc7f2cd9511999760c7a67418a853e1
2015-09-28 18:57:08 -06:00
Corey Farwell
64fbdb7d1c servo: Merge #7745 - Implement <option> 'defaultSelected' and 'selected' attributes (from frewsxcv:html-option-element-selected); r=nox
Continued from #7743

Source-Repo: https://github.com/servo/servo
Source-Revision: 8547d132f9a6f5499c437572ea5648c6baf2f621
2015-09-28 15:46:48 -06:00
Keith Yeung
25b8b342bc servo: Merge #7275 - Initial fetch refactor (from KiChjang:fetch-refactor); r=jdm
Partial #4576
I am really unsure of how things would look like, so would really appreciate some feedback on this.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0fc9410f10c1122a05cd36bdf8b7faff12c39555
2015-09-28 13:59:08 -06:00
Philipp Hartwig
2bfabff31c servo: Merge #7760 - Add form getters for additional elements; update test expectations (from aopicier:form_getter); r=Manishearth
This adds form getters for fieldset, label, object, output, select and
textarea elements.

Source-Repo: https://github.com/servo/servo
Source-Revision: a72d7a4f5222d029a34b2b4a7da21ebe095fde53
2015-09-28 13:23:18 -06:00
Matt Brubeck
3bd02a6984 servo: Merge #7769 - Fix build notifications in Python 2.x on Linux (from mbrubeck:notify-linux2); r=frewsxcv
In Python 2.x on Linux, `sys.platform == 'linux2'`.

https://docs.python.org/2/library/sys.html#sys.platform

r? @frewsxcv

Source-Repo: https://github.com/servo/servo
Source-Revision: 076f44a02d033bb5d0bb2e18065acdf18d98cce5
2015-09-28 12:47:29 -06:00
Patrick Walton
da504ba30c servo: Merge #7596 - layout: Load Web fonts asynchronously (from pcwalton:async-web-font-loading); r=mbrubeck
Improves page load times significantly.

Closes #7343.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7933b484300131d3de79edbcf399288b22010616
2015-09-28 12:11:50 -06:00
Glenn Watson
5f3d6b85ab servo: Merge #7766 - A few clean ups for Au type (from glennw:au-tidy); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 007c22737df0f002203ca4e42b56afff7d4e1661
2015-09-28 11:35:04 -06:00
Patrick Walton
5f957acf6c servo: Merge #7765 - script: Stop reallocating so much when converting DOM strings to JS values (from pcwalton:less-ambitious-low-hanging-dromaeo-fruit); r=jdm
This is split out from #6900.

`size_hint()` in `utf16_units()` seems busted, so we do it ourselves.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 7a3d2c8cb405f776117044986ab9fb93a6b7776e
2015-09-27 17:47:38 -06:00
Philipp Hartwig
210eb0770f servo: Merge #7711 - Use computed display property for hypothetical box of root element (from aopicier:root_layout); r=pcwalton
Closes #7558.

Source-Repo: https://github.com/servo/servo
Source-Revision: 45a0c48efdfc327f6f2d1a2a3b60d6590bb19984
2015-09-27 17:03:58 -06:00
Jaydeep
212fb34293 servo: Merge #7643 - Check for Extra pointer dereferencing (from jdramani:extra_ptr_dref); r=jdm
Solves issue #7640

Source-Repo: https://github.com/servo/servo
Source-Revision: 9523283c14f417014ca6d4fa8179c873bbb8f21f
2015-09-27 08:19:30 -06:00
Tamir Duberstein
d81e0107b7 servo: Merge #7752 - mach: fix OS X notifications (from tamird:fix-osx-notifications); r=nox
Since mach now puts everything into a virtualenv, we need to set the bundle identifier to allow sending notifications.

Source-Repo: https://github.com/servo/servo
Source-Revision: a1fb8cfbb0be8d0a73bc1e3b63eb704f48098b8f
2015-09-27 07:35:50 -06:00
Jayflux
d2c2d55b86 servo: Merge #7754 - changing test_union.html to union.html fixes #7744 (from Jayflux:#7744); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 599fd0094b1a5c43992092ae1ff20a2fa02db559
2015-09-27 06:25:42 -06:00
Anthony Ramine
d80fcc3c14 servo: Merge #7733 - Properly consider radio button groups (from nox:checked); r=Manishearth
Radio button groups with missing or empty names are always the only element of their respective radio button group.

Source-Repo: https://github.com/servo/servo
Source-Revision: 37ce248f316ba3cb5a2cfb0b4bb95918c1c45828
2015-09-26 11:21:11 -06:00
Eli Friedman
2910439f5d servo: Merge #7746 - Delete dead code (from eefriedman:debug-dead-code); r=nox
(#[cfg(debug)] is false in every normal servo configuration, and the
code in question doesn't compile.)

Source-Repo: https://github.com/servo/servo
Source-Revision: d4f5948294545860a88d6a266acaa4cf9b9ea1c6
2015-09-26 10:45:51 -06:00
Corey Farwell
57231e3b9a servo: Merge #7747 - Imlement 'bgcolor' IDL attrs for table elements (from frewsxcv:bgcolor); r=Ms2ger
The content attributes and presentational hints were implemented in
the #4289 pull request. This just implements the relevant IDL
attributes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 500d5098655032465bdca5c6167f681078df0fc3
2015-09-26 10:02:43 -06:00
Matt Brubeck
0839cfd14e servo: Merge #7742 - Update unicode-bidi to 0.2.2 (from mbrubeck:update-bidi); r=Manishearth
Fixes #7701 via servo/unicode-bidi#17.

Source-Repo: https://github.com/servo/servo
Source-Revision: d39c8546b6bf03c69b1cde925c72722dfd61e588
2015-09-25 14:23:50 -06:00
Ravi Shankar
2af24572c9 servo: Merge #7741 - fixed the deprecated as_slice warning (from Wafflespeanut:warning_fix); r=jdm
I've put its original implementation from [`core/option.rs`](http://doc.servo.org/src/core/option.rs.html#692) instead of the dear departed `as_slice`

Source-Repo: https://github.com/servo/servo
Source-Revision: b7c003f1584375ba37006fedd773141a3d32d99c
2015-09-25 13:47:37 -06:00
Prabhjyot Singh Sodhi
a6dad05d64 servo: Merge #7497 - tests for devtools integration with network requests/responses (from psdh:devtest7473); r=jdm
Fixes #7473

Source-Repo: https://github.com/servo/servo
Source-Revision: 8027777e2409705b1d45cdd4c781e499fd5a7f0d
2015-09-25 11:35:57 -06:00
Emilio Cobos Álvarez
c4b09b9cb7 servo: Merge #7682 - webgl: Support texImage2D with a canvas as an argument (from emilio:webgl-texture2d); r=jdm
This involved some refactoring of the 2d context code, which lead to some more test passed there.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f8c1b460100f226df954a3924598434f3dda9b2
2015-09-25 10:52:52 -06:00
James Graham
c18b23949d servo: Merge #7651 - Implement resettable and String-valued prefs (from jgraham:prefs_reset); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e04c2c78ee43ad81f2794d908a13744b6b976443
2015-09-25 08:18:06 -06:00
Bryan Bell
d2f7e5b8c7 servo: Merge #7685 - Replace twitter fail whale with redirect to archive.org version (from bjwbell:add-twitter-fail-whale-attribution); r=pcwalton
Sorry @pcwalton should have gotten the attribution approved first (https://twitter.com/subcide/status/645149674546966528)

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: b26fac3f783f9f67089875a697cc2bf835babbfa
2015-09-24 20:40:49 -06:00
Patrick Walton
79d75f2737 servo: Merge #7736 - Less ambitious optimize set property (from pcwalton:less-ambitious-optimize-set-property); r=Ms2ger
Splitting the parts that have r+ out of #6823.

Source-Repo: https://github.com/servo/servo
Source-Revision: d7b875170956f3a26b46e49d3d5c990fa4acc974
2015-09-24 19:57:40 -06:00
Bryan Bell
4bde6430b3 servo: Merge #7703 - gfx: Fix border-radius panic when a corner has 0px and >0px borders (from bjwbell:bugfix-0px-and-non-0px-border-widths); r=pcwalton
When one border is 0px and the other is >0px then the border corner
drawing code panics when computing the values to use in drawing the
border corner arcs.

This fixes that bug and makes the `draw_corner` function more robust
by explicitly passing an enum, `BorderCorner`, naming which corner is
being drawn e.g. `BorderCorner::TL`.

Add a ref test,
`border_radius_zero_sizes_a.html/border_radius_zero_sizes_ref.html`.

Fixes https://github.com/servo/servo/issues/7700.

r? @pcwalton or @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d1be2f56cd7a37c4c803ba12733fca55b57d4de
2015-09-24 18:18:07 -06:00
Ms2ger
fd768ef508 servo: Merge #7729 - Remove the now-stable append and result_expect feature gates from reftest (from Ms2ger:reftest-gates); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d811f2d1baac6dcb501f3588eb509086bd1b2a66
2015-09-24 12:33:46 -06:00
James Graham
9c0f257d81 servo: Merge #7675 - Prevent crash trying to freeze script task with no page (from jgraham:freeze_crash); r=metajack
This fixes a crash resulting from a race between loading an initial
document and navigating to a subsequent document. If the navigation
happens before the initial document has had a chance to create its
root page, we crash trying to unwrap a None. Note that the are likely
further similar timing issues with more complex sequences of navigation
and history manipulation.

Source-Repo: https://github.com/servo/servo
Source-Revision: 30ffd09eb3daf4b0bc55627c281016f8f246fd6f
2015-09-24 11:05:28 -06:00
Ms2ger
4ccbcec8e1 servo: Merge #7728 - Remove the now-stable box_raw feature gate from cef (from Ms2ger:box-raw); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 2d253cbf835df522595575fdd371e2068606271a
2015-09-24 10:37:40 -06:00
Manish Goregaokar
e487982661 servo: Merge #7719 - Various fixes to make github less error-prone (from Manishearth:ghfix); r=Ms2ger
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 2623f58a4b2b302c354257632e3ff67d1dfa72d9
2015-09-24 03:55:29 -06:00
Glenn Watson
9f372bf1d6 servo: Merge #7724 - Ensure that animations expire correctly and stop compositing occurring after they finish (from glennw:expire-anims); r=pcwalton
There were two problems here:

(1) The animation state update function was only called when nodes were dirty or there were new animations.
(2) When all animations for a node expired, the entry from the hash table was not removed.

The result was that once an animation began, the compositor would be running as fast as it can forever.

Fixes #7721.

Source-Repo: https://github.com/servo/servo
Source-Revision: b4b3cedc10cec47d95880bfbe55f2dbc37cd910e
2015-09-23 18:46:29 -06:00
Martin Robinson
2addce6653 servo: Merge #7710 - A few small bits of refactoring to prepare for more advanced DisplayList layerization (from mrobinson:small-dl-refactor); r=pcwalton
This will be useful when PaintLayers that contain DisplayLists instead
of StackingContexts need to draw themselves. This is a simple
preparatory refactoring and doesn't change any behavior.

Source-Repo: https://github.com/servo/servo
Source-Revision: 09b970af4aeba749146a9a9215e346653016672b
2015-09-23 17:22:31 -06:00
Ravi Shankar
7d512d50d1 servo: Merge #7698 - sorted the declarations in various files (from Wafflespeanut:sorting); r=frewsxcv
This is a direct extract from my abandoned PR for a lint (#7546), along with some rather clumsy modifications (only on `components/script/dom/mod.rs` and `components/style/lib.rs`), because I had to sort some of the files again to make peace with tidy, which hasn't been educated about sorting yet!

Source-Repo: https://github.com/servo/servo
Source-Revision: a7208869f2903e36f9b2f540b55b50283d7df466
2015-09-23 15:02:56 -06:00
Ms2ger
5afeb71b23 servo: Merge #7717 - Update dependencies (from servo:depup); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 705ad72aee58b4fc636bca3a2784c7643048336d
2015-09-23 10:57:55 -06:00
Ms2ger
0f8343ce37 servo: Merge #7716 - Fix a comparison that should be an assignment in host_triple() (from servo:host-triple-assign); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 83435d77650382d5901603170f028f5888ea82c1
2015-09-23 07:39:50 -06:00
Manish Goregaokar
a0f53e1f0e servo: Merge #7697 - Rust upgrade to rustc 1.5.0-dev (6217b002b 2015-09-21) (from servo:rustup_20150921); r=Ms2ger
Snapshot doesn't exist yet. Rust master+ should work.

Also https://github.com/serde-rs/aster/pull/33 hasn't merged yet.

r? @Ms2ger @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: f7f16870bebdc9359661544054259b37780f1331
2015-09-23 06:45:18 -06:00
Mathieu Rheaume
71039e1d1b servo: Merge #7692 - Raise max length error over 120 chars not at 120 chars. python/tidy.py (from ddrmanxbxfr:TidyMaxLineOver120); r=nox
This is a follow up of issue : Tidy has an off-by-one error #7686

It allows to raise the max length error when line is over than 120 not at 120 specifically.

Thanks for looking into it.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f1469eb08a437bcc6cfb510334be2b6430b4a8f
2015-09-23 04:17:16 -06:00
Lars Bergstrom
8c59634c70 servo: Merge #7713 - Update Cargo.lock files with linker updates for cleaner static linking (from larsbergstrom:update_linker_locks); r=glennw
r? @metajack @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: eca448363de576cf0108ac4d37fbbe1aeb659598
2015-09-22 19:37:22 -06:00
Corey Farwell
b53eb06d72 servo: Merge #7712 - Prefer element casting over mem::transmute (from frewsxcv:no-mem-transmute); r=saneyuki
None

Source-Repo: https://github.com/servo/servo
Source-Revision: b66dd621775f2277b2cd2424de8f4cb7d8efc9b6
2015-09-22 16:48:22 -06:00
Maciej Skrzypkowski
20c67c2367 servo: Merge #7707 - Add plugins for compositing and net crates #7699 (from mskrzypkows:compositing_net_plugins); r=jdm
Changed to_string calls to to_owned calls
where was a need.

Source-Repo: https://github.com/servo/servo
Source-Revision: d588ce8d8503bf0b340abfb13e2bd6a228cab900
2015-09-22 07:58:55 -06:00
Anthony Broad-Crawford
6c86215e3e servo: Merge #7678 - #7630 Adding better error messaging in mach bootstrap for missing virtualenv/pip dependencies (from AnthonyBroadCrawford:improved-error-messaging-mach-bootstrap); r=frewsxcv
This PR is in reference to #7630

I've added a simple try catch around our use of subprocess.check_all when trying to invoke and use python's

- virtualenv
- pip

Upon failure, I use sys.exit with an error message for the user.  Exit seemed appropriate as anything beneath those dependencies will fail to execute and result in a non friendly error message

Source-Repo: https://github.com/servo/servo
Source-Revision: 44de9173cc968957e4441c14f57014111a2b847e
2015-09-21 18:13:35 -06:00
Corey Farwell
9d1c1d282d servo: Merge #7702 - Remove unnecessary allow(dead_code) function attributes (from frewsxcv:no-dead-code); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 434e1fa07475000ed7bc0eeae6d0b0bb1339c4b8
2015-09-21 17:31:04 -06:00
Paul Rouget
aebe4430e8 servo: Merge #7064 - Implement location.reload() (from paulrouget:reload); r=Ms2ger
This is a naive implementation of `window.location.reload()`.
I'd appreciate any feedback.

I was wondering if it'd be better to implement `ConstellationMsg::Reload` instead of using  `load_url`.

Also, what kind of test should I write?

Source-Repo: https://github.com/servo/servo
Source-Revision: 4dc986bca35f986e2f15f1591f120e1cef2810da
2015-09-21 09:03:42 -06:00
Corey Farwell
91eafe9f20 servo: Merge #7691 - Remove deprecated 'creator' WebIDL attribute (from frewsxcv:rm-creator-webidl-attribute); r=nox
According to @Ms2ger, the 'creator' attribute was merged into 'setter'

Source-Repo: https://github.com/servo/servo
Source-Revision: 291fa888326e743a1e59aa7c06d5288a0643cbb7
2015-09-21 05:45:30 -06:00
Corey Farwell
7eef01d9ec servo: Merge #7690 - Minor DOM codegen cleanup (from frewsxcv:codegen-cleanup); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: ec9aa9ace024470363ff227b97fb442a400fe496
2015-09-21 01:53:56 -06:00
Corey Farwell
43dad6ecf9 servo: Merge #7689 - Add/update spec links for SupportedPropertyNames methods (from frewsxcv:supported-property-names-links); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 566f1eb6f6886ab87c2c1813ec13a34074cced8e
2015-09-20 10:21:22 -06:00
Ali Sabil
a77bcca98e servo: Merge #7611 - Cache the id attribute on Element (from nox:cache-element-id); r=frewsxcv
Thanks to @asabil for the original work, I only rebased it.

Fixes #6359 and #7040.

Source-Repo: https://github.com/servo/servo
Source-Revision: d1269294e6c602c91012397c7584e3c2077e21ac
2015-09-20 09:23:20 -06:00
Michael Howell
fac5f2cebf servo: Merge #7653 - Add transitions for CSS calc() (from notriddle:calc-transition); r=dzbarsky
Closes #7284

Source-Repo: https://github.com/servo/servo
Source-Revision: 5667283d1f50ad4f6bf9291dcbc5b6f659c4acc8
2015-09-20 00:22:13 -06:00