Commit Graph

4713 Commits

Author SHA1 Message Date
Aidan Hobson Sayers
288627acdc servo: Merge #7633 - Remove SslProvider, fixes #7627 (from aidanhs:aphs-remove-sslprovider); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e107f112d87a4cac66e8aa1d5b2daf1e4bcdebc7
2015-09-14 14:57:55 -06:00
zmike
e9f92267ef servo: Merge #7629 - sync cef interfaces with upstream (from zmike:THE_RETURN_OF_EMBEDDING); r=larsbergstrom
@larsbergstrom I guess

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d420abe405275e673de8f3b8a6f33ca94fb7612
2015-09-14 14:24:18 -06:00
João Oliveira
d054140b6d servo: Merge #7549 - Move setting UserAgent header into http_loader::load, (from jxs:master); r=jdm
closes #7541

Source-Repo: https://github.com/servo/servo
Source-Revision: 35c30ab70df6821992769ff7a2b057cfe2f2673c
2015-09-14 08:57:42 -06:00
Ms2ger
ff563dd32f servo: Merge #7622 - Use static atoms in some places (from Ms2ger:atoms); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 97710f0739410e7b464591f482c2dc117e528bbe
2015-09-14 02:38:02 -06:00
Anthony Ramine
6953aa403a servo: Merge #7606 - Move the type_id fields to DOMClass (from nox:move-typeid); r=jdm
Cc @michaelwu.

Source-Repo: https://github.com/servo/servo
Source-Revision: d5ee58caf269779e86b2efc50ddf37d3e4eba9b9
2015-09-13 11:53:42 -06:00
Corey Farwell
48e3536edb servo: Merge #7615 - Add obsolete reflecting attributes on <a> and <link> (from frewsxcv:obsolete-link-anchor); r=nox
From my understanding, setting any of these will not affect any
presentational hints for the elements

Source-Repo: https://github.com/servo/servo
Source-Revision: 6a21bcd9c561d728bab5220bb5b9d5058c34e8c8
2015-09-13 10:47:32 -06:00
Ms2ger
788c16881b servo: Merge #7616 - Stop implementing Reflectable for JS<T> (from Ms2ger:js-reflector); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e10c5c74cc48a203aaeb7da3fd51b062c1311eac
2015-09-13 09:20:25 -06:00
Corey Farwell
e074261c2a servo: Merge #7614 - Fix a few incorrect Element interfaces (from frewsxcv:incorrect-element-interfaces); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: dbd614045b415640c0d466a68ea26cd94ece356c
2015-09-13 06:23:42 -06:00
Mathieu Rheaume
fe567c36c0 servo: Merge #7559 - Remove 'get_*' on getters as per RFC 0344 on canevas, compositing, devtools, gfx, layout, net, profile, servo and webdriver_server (from ddrmanxbxfr:RFC-0344-Work); r=nox
Hi guys,

I just gave a big pass of RFC-0344 as per issue #6224 .

Pretty much renamed all the get_* fn that were used to fetch values.

I hope I didn't rename too much.

As said in the issue discussion, I didn't touch at the scripts folder so we keep the unsafe ones pretty explicit.

I've ran the whole pass of test, everything seems to be still working right :).

Please give feedback on this PR.

Thanks for looking into it.

Source-Repo: https://github.com/servo/servo
Source-Revision: b05f4aa3aa3085e65cb75433ae37bf272216d033
2015-09-12 18:29:56 -06:00
Simon Sapin
4aaf262e20 servo: Merge #7610 - Replace reftest with a problematic file name with a unit test (from servo:filename-parsing); r=saneyuki
Fix #7609, "error: unable to create file tests/ref/hello_a?foo#bar.html (Invalid argument)" during git checkout on Windows.

Behavior change: passing an nonexistent file name on the command line now shows a blank page (like network errors) rather than exit with an error message.

Source-Repo: https://github.com/servo/servo
Source-Revision: 815e981c69f6fe09bcbf3c1937ed817f2cd38813
2015-09-12 09:10:37 -06:00
Corey Farwell
503d9bf6ec servo: Merge #7613 - Minor script::dom:🪟:Window cleanup (from frewsxcv:minor-window-cleanup); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: a63e2935ed7847442aae995237396da117a2c53b
2015-09-12 08:05:18 -06:00
Patrick Walton
3574beaa4c servo: Merge #7600 - layout: Allow the overflow area of the <body> to be scrolled (from pcwalton:body-overflow-scroll); r=mbrubeck
Fixes scrolling on Twitter.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 8d7ba12f28a873880c1f51b122d4fc185294c849

--HG--
rename : servo/tests/html/lipsum.html => servo/tests/html/percentage-body-height.html
2015-09-11 11:20:13 -06:00
Patrick Walton
2aaea3a168 servo: Merge #7550 - layout: Defend the block formatting context speculation against going wrong in the presence of blocks that overflow in the inline direction (from pcwalton:block-formatting-context-overflow); r=mbrubeck
Makes the Google search result links appear.

Closes #7298.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: c3f9e1813ac93d0e143397ea5df9d4e5bc452d73
2015-09-11 10:03:39 -06:00
João Oliveira
f684debdbb servo: Merge #7570 - ignore length on .lock files on tidy.py, (from jxs:ignore_length_tidy_script); r=Ms2ger
closes #7569

Source-Repo: https://github.com/servo/servo
Source-Revision: 3a97455a65a8eafab313bd583a6b1f811605168f
2015-09-11 03:07:34 -06:00
Bryan Bell
79253e9dd2 servo: Merge #7602 - Improve err msg when failing to output png (from bjwbell:improve_err_msg_when_writing_png); r=pcwalton
Before on at least Linux the following failure is hard to root cause:

    [~/servo] ./target/debug/servo -o tmp.png ./tests/html/lipsum.html
    thread '<main>' panicked at 'assertion failed: res.is_ok()', .../compositor.rs:1508
    thread '<main>' panicked at 'You should have disposed of the
    pixmap...', .../rust-layers/.../surface.rs:166

Now:

    [~/servo] ./target/debug/servo -o tmp.png ./tests/html/lipsum.html
    thread '<main>' panicked at 'Error writing png: Permission
    denied (os error 13)', .../compositor.rs:1508
    thread '<main>' panicked at 'You should have disposed of the pixmap
    properly with destroy()! This pixmap will leak!', .../rust-layers/.../surface.rs:166

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: eb556c1ce6ed52e2a71743a088860ac0e0df3e89
2015-09-10 23:55:41 -06:00
Connor Imes
0214babbfa servo: Merge #7595 - Refresh cef and gonk lock files; update heartbeats dependencies (from connorimes:update-hbs); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: f190ba360e41465d43972826b6715eb39e7b9822
2015-09-10 13:31:57 -06:00
Connor Imes
3a97e2f13e servo: Merge #7593 - Add documentation to profile crate on Heartbeats and energy-profiling (from connorimes:energy-profiling-doc); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 4e69f301e19e6f1d9a1b4f231e5a445888b03370
2015-09-10 11:29:29 -06:00
Jack Moffitt
ded3151517 servo: Merge #7594 - Fix compiler warnings (from metajack:embedding-warnings); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e6ed6250b795682c41a65a5cf536321fa1621315
2015-09-10 09:42:33 -06:00
Anthony Ramine
6d6557091f servo: Merge #7592 - Introduce NonElementParentNode (from nox:nonelementparentnode); r=jdm
This is the interface where Document.getElementById() belong.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4c64c870c63bc41728ccd371e19fc4246427aa2c
2015-09-10 07:29:47 -06:00
Corey Farwell
54e55fc66f servo: Merge #7591 - Link to Servo issue instead of Gecko bug (from frewsxcv:servo-issue); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d64331b7d27189e6620d7df61e82cf59e776a2ff
2015-09-10 02:56:11 -06:00
David Zbarsky
484d93a674 servo: Merge #7426 - Implement Range#surroundContents (from dzbarsky:surroundcontents); r=glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: c349b7b3a1f335a9b57e4f41998c28656cd1e5ef
2015-09-09 21:54:06 -06:00
Bryan Bell
6a96bf0eb9 servo: Merge #7527 - Use SIMD in fast path for advance_for_char_range (from bjwbell:simd_advance_for_char_range); r=metajack
In advance_for_char_range add a fast SIMD code path for the the common
case where there are no detailed glyphs.


r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: c83825938346f794790bcd1343b7375e9e34f443
2015-09-09 16:55:16 -06:00
Connor Imes
a7948af624 servo: Merge #7581 - Add energy monitoring and characterization scripts (from connorimes:power-profiling); r=larsbergstrom
Add the energy-profiling feature.  Users can compile the proper (or their own) version of energymon libraries to capture power/energy data at runtime.  The results are accessed through heartbeats.

Additionally, there are a couple of python scripts to enable heartbeats for profiler categories and process the results into some visualizations to help understand how time and energy is being spent in Servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b6c341900a66d1177fdc3f46705e9fb07a5b1dc
2015-09-09 15:24:48 -06:00
Bryan Bell
754f4baf13 servo: Merge #7577 - gfx: Fix bug with 1px width borders disappearing (from bjwbell:borders_pixel_rounding_bug); r=mbrubeck
In to_nearest_azure_rect when rounding to pixel coordinates, maintain
the invariant of rect non-overlap (if before rounding two rects don't overlap).

The previous code rounded the rect top left corner to the nearest pixel with
the size rounded to the nearest pixel multiple which can violate the
non-overlap condition, e.g.
10px×9.60px at (0px,6.6px) & 10px×9.60px at (0px,16.2px)
would round to
10px×10.0px at (0px,7.0px) & 10px×10.0px at (0px,16.0px), which overlap.

Instead round each corner to the nearest pixel.

For rects that dont need to satify the non-overlap condition and with
width or height between 0.5px and 1px, rounding each rect corner to the
nearest pixel can yield an empty rect e.g.
10px×0.6px at 0px,28.56px -> 10px×0px at 0px,29px.

For this scenario a new function to_nearest_non_empty_azure_rect
rounds the rect top left corner to the nearest pixel and the rect size
to the nearest pixel multiple. It's possible for non-overlapping rects
after this rounding to overlap.

This should fix https://github.com/servo/servo/issues/7184 "rounding ...borders not to be visible", without breaking https://github.com/servo/servo/issues/7152 "Underlines less than 1px high sometimes invisible".

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: f29ddb4b5d5eed595df37fa989511d2cb3aa8dfd
2015-09-09 13:30:41 -06:00
Jack Moffitt
b137d4f8c3 servo: Merge #7583 - Fix some build warnings (from metajack:warning-police); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 50f5ae1d358cd5472ad3f7f72d05568e44ec8932
2015-09-09 12:53:21 -06:00
Martin Robinson
9546305f71 servo: Merge #7563 - Layerize StackingContexts that are on top of layers (from mrobinson:layerize-stacking-contexts); r=pcwalton
StackingContexts that should be painted on top of StackingContexts that
are already layerized should automatically get their own layer. This
will ensure proper painting order.

Source-Repo: https://github.com/servo/servo
Source-Revision: c0381c732569b9abe6282c6c750533bc271a2019
2015-09-09 10:52:56 -06:00
Akos Kiss
c05804b21a servo: Merge #7576 - Bump up skia and js packages to follow recent fixes (from akosthekiss:bump-skia-js); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 0d37e8f96b7f40d14bf4fbb0b66e42a01302a336
2015-09-09 04:37:08 -06:00
Eli Friedman
4875f833cb servo: Merge #7523 - Fix up some unnecessary uses of unsafe (from eefriedman:unnecessary-unsafe); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: be9a9ffda10fa2c50b13f79dabd49255f29f12f6
2015-09-09 00:05:17 -06:00
Corey Farwell
22eaaf37cf servo: Merge #7568 - Use OS-agnostic filesystem paths in Python (from frewsxcv:os-agnostic-paths); r=jdm
This will eventually need to be done for #1908

Source-Repo: https://github.com/servo/servo
Source-Revision: 83972196600f04e817ddb53fda18142778905307
2015-09-08 22:29:04 -06:00
Connor Imes
e0cb1601d6 servo: Merge #7567 - Add heartbeats for new script profiler categories (from connorimes:script-heartbeats); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 2c77776428105b68c1b7c86f4d6b4e0223db3185
2015-09-08 21:59:54 -06:00
Glenn Watson
05adb33d2b servo: Merge #7557 - Handle cases where the layout root is None. Fixes #6375 (from glennw:fix-layout-panic); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 4221b354cfc05e4857ba4c1a160298965e243330
2015-09-08 20:39:09 -06:00
Akos Kiss
6924f44968 servo: Merge #7565 - Make the use of gold linker configurable (from akosthekiss:config-gold); r=SimonSapin
Currently, ld.gold is always used for linking if found on the
system. There are some cases however when one may want to opt out
from using it. This patch adds the boolean field `rustc-with-gold`
to the `[tools]` section of `.servobuild`, which if set false,
disables the use of ld.gold.

Source-Repo: https://github.com/servo/servo
Source-Revision: 273306056428e0378ebf27a1573a783aad866b5f
2015-09-08 13:57:13 -06:00
Connor Imes
2ef2604ce5 servo: Merge #7547 - Combine script profiling with profile crates. Fixes #7514 (from connorimes:move_script_profiling); r=jdm
The script crate had its own built-in profiling which was basically doing the same thing as the profile crate.  This wraps the internal profiling around the main profile functionality.  Script-related tasks are now added to the ProfilerCategory enum.

Source-Repo: https://github.com/servo/servo
Source-Revision: ca36779a7e8298918b21ae243a43a71b1520119b
2015-09-08 09:32:56 -06:00
wilmoz
094717dc16 servo: Merge #7494 - Add a mach command to upgrade wptrunner (from wilcus:upgradeWptRunner); r=jdm
https://github.com/servo/servo/issues/7491

Source-Repo: https://github.com/servo/servo
Source-Revision: c44213219668d054ed267ac29a2513309b342e5f
2015-09-08 08:41:05 -06:00
Anthony Ramine
d078f1011a servo: Merge #7531 - Implement <template> (from nox:template); r=Ms2ger
All tests using iframes can't currently pass, same for innerHTML-related tests with <template> elements. The latter contradicts the spec, see the links below.

Apart from this, they work, AFAICT.

https://github.com/servo/html5ever/issues/164
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314

Source-Repo: https://github.com/servo/servo
Source-Revision: 5a0be12e43f92fc64b1d8f5d35f9dadaa4b53521
2015-09-08 02:29:00 -06:00
Mathieu Rheaume
ba172810f7 servo: Merge #7556 - Remove unnecessary mut on variables declared in components/layout/block.rs (from ddrmanxbxfr:MutabilityCleanup); r=Ms2ger
Small cleanup over mutable variables in components/layout/block.rs.

Thanks for looking into it!

Source-Repo: https://github.com/servo/servo
Source-Revision: 282f9ade931342e9cd1ae72fde9dd9f88cb5b34a
2015-09-08 00:28:42 -06:00
Michael Howell
baaf4b8258 servo: Merge #7560 - Include the overflow of the inline block itself (from notriddle:master); r=pcwalton
Closes #7372.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3fa5c9185cd699a5cad000923cd1ac8826dc819a
2015-09-07 21:40:03 -06:00
Patrick Walton
f6a4b6cc8c servo: Merge #7533 - layout: Use a special path that treats margin: auto as zero for inline-block inline size computation (from pcwalton:inline-block-margin-auto); r=mbrubeck
Places the search icon in the right place on the Google SERPs.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 0bc7ad9b08d3ae978be4a95687025f00cfcff312
2015-09-04 21:53:17 -06:00
wilmoz
b05007f610 servo: Merge #7337 - Documentation of inheritance in type ids (from wilcus:InheritanceDocumentation); r=mbrubeck
Aditional documentation about this issue https://github.com/servo/servo/issues/7205

Source-Repo: https://github.com/servo/servo
Source-Revision: da0b9d7c0185f0898fd47f5326e8e084d08a2fc0
2015-09-04 21:18:52 -06:00
Patrick Walton
710921416c servo: Merge #7534 - layout: Lay absolutely-positioned blocks with inline containing blocks out of flow (from pcwalton:inline-absolute-out-of-flow); r=mbrubeck
Removes the long space before the site-specific drop-down in the Google SERPs.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: aeb8dce2d914808e4cdb8589d19ee9968897ed94
2015-09-04 19:59:11 -06:00
Bryan Bell
26e99fe98c servo: Merge #7502 - gfx: Add elliptical border radius support (from bjwbell:elliptical-borders); r=pcwalton
TODO: Add code for parsing shorthand border-radius e.g. "border-radius: 10px 5% / 20px".

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 5bad6b1b6e149246e8949fd42059e777d1cbd9e3
2015-09-04 18:46:24 -06:00
Martin Robinson
f2bbff72b6 servo: Merge #7487 - Have PaintLayers own StackingContexts instead of the opposite (from mrobinson:paint-layer-upgrade); r=pcwalton
Previously, StackingContexts might have a PaintLayer. We switch the
ownership, for several reasons:

   * We want PaintLayers to potentially contain something other
     than a StackingContext soon.
   * We want to delay the creation of PaintLayers until the last
     minute, so that we can synthesize new layers for sandwiched
     content.

This commit also implements the second goal. Instead of creating
PaintLayers during layout itself, wait until we are sorting and
layerizing a completed DisplayList.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8e0b010117889550effa3ad793e7ee8f9b692b40
2015-09-04 17:31:54 -06:00
Patrick Walton
be44947a8d servo: Merge #7544 - layout: Stop double-counting position: relative offsets for stacking contexts (from pcwalton:stacking-context-relative-offset); r=mbrubeck
Fixes the location of the gear menu on the Google SERPs.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 7df4ff7572bf131aca3643d078dfe7823b3fc347
2015-09-04 12:55:04 -06:00
James Graham
fbe716c4c1 servo: Merge #7545 - Update prefs API to return an Option<bool> (from jgraham:get_pref_option); r=jdm
This allows for situations where there is no reasonable default
to apply for the pref value e.g. when we are just listing values

Source-Repo: https://github.com/servo/servo
Source-Revision: 9d4217990060b3d2c93a4b39fe391985f01a5979
2015-09-04 11:02:12 -06:00
Matt Brubeck
e9926732de servo: Merge #7543 - Update glutin (from mbrubeck:glutin-up); r=pcwalton
To servo/glutin#46

Source-Repo: https://github.com/servo/servo
Source-Revision: f8ba9a81116e11249845189c6af8978df1693c4b
2015-09-04 10:23:58 -06:00
Manish Goregaokar
cf0446c9f9 servo: Merge #7536 - More clippy fixes (from Manishearth:clippyfix); r=Ms2ger
Elided almost all the lifetimes and removed needless returns. Mostly done by sed + manual fixes.

r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: c2c2646d37614ece5869af861993c3d619f6e003
2015-09-04 07:59:04 -06:00
João Oliveira
360ac1d5bf servo: Merge #7508 - Add style_traits crate to improve crate separation, (from jxs:master); r=SimonSapin
closes #7353

Source-Repo: https://github.com/servo/servo
Source-Revision: cc1eb3f741554b3f1711cd1938d1c16b6b7d2879
2015-09-04 06:46:11 -06:00
Tetsuharu OHZEKI
7a67b445e9 servo: Merge #7538 - script: change requestAnimationFrame returns the unsigned long type (from saneyuki:requestAnimationFrame); r=Ms2ger
By https://github.com/whatwg/html/pull/97, the returned type of`requestAnimationFrame()` and the argument type of `cancelAnimationFrame()` are changed to `unsigned long` WebIDL type.

Source-Repo: https://github.com/servo/servo
Source-Revision: 43e7cd5faed53802a9c2ffcac2c171f29f460cff
2015-09-04 02:49:16 -06:00
Simon Sapin
5d9da13fa8 servo: Merge #7539 - Fix or silence some warnings (from servo:warnings); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 8d21a7924676454d954a3e649bb649d46968b5d3
2015-09-04 02:15:10 -06:00
Simon Sapin
1b93452113 servo: Merge #7518 - Initial support for CSS Custom Properties (from servo:custom-properties); r=pcwalton
https://drafts.csswg.org/css-variables/

Missing:

* `var()` in shorthand property declarations.
* Correct handling of EOF in custom property declarations.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 05deb3dcc8be9a0a623536467628aa68ae754918
2015-09-03 16:09:02 -06:00