Commit Graph

5051 Commits

Author SHA1 Message Date
Eli Friedman
fe0f123219 servo: Merge #7984 - Refactor resource loaders to use send_error utility (from eefriedman:net-send-error); r=jdm
No substantial functional change.

Source-Repo: https://github.com/servo/servo
Source-Revision: f35f809938792fbad61fd517187e46c1e009cd16
2015-10-14 13:28:14 -06:00
Anthony Ramine
d5038d123e servo: Merge #7873 - Generate the various TypeId enums in codegen (from nox:codegen-typeid); r=Ms2ger
This frees us forever from caring about maintaining these enums. The last commit removes their use from the initialisation of interface objects derived from Node.

Source-Repo: https://github.com/servo/servo
Source-Revision: 32daa17d5cbcad02db0713e21e52410cdc60480e
2015-10-14 12:47:48 -06:00
meh
cee450a1e9 servo: Merge #7552 - Add viewport configuration support to the compositor (from meh:viewport); r=glennw
This allows me to do stuff like this.

![this](https://cloud.githubusercontent.com/assets/40204/9701150/58d593ae-541d-11e5-9f57-8d379f5c9ceb.png)

Those are two compositors rendered on the same OpenGL context, I need this so I can split windows and render them without getting mad with textures and framebuffers, it will also allow me to render the proper parts of the chrome as different web pages without involving dozens of framebuffers and textures.

If I recall correctly I did talk to @glennw about this on IRC some time ago.

This pull request requires https://github.com/servo/gleam/pull/39 to be merged first tho.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8db8a86ab1e943b5102a05d6d31800579fdb7875
2015-10-14 10:29:45 -06:00
Eli Friedman
136cdea614 servo: Merge #7967 - MIMEClassifier::classify always succeeds; fix the type to reflect this (from eefriedman:mime-handling); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7308d0dd0d2f41e140434d5f992c5aa7ecc0ef71
2015-10-14 08:46:32 -06:00
Corey Farwell
8c8b2c6aab servo: Merge #7829 - Implement HTMLTableCellElement::CellIndex (from frewsxcv:htmltablecellelement-cellindex); r=Ms2ger
Extracted from #6936

Source-Repo: https://github.com/servo/servo
Source-Revision: 55769b2fbf24ed84ee0f8ea5fe856e5fd29d8e60
2015-10-14 07:39:24 -06:00
Glenn Watson
0e52e5830d servo: Merge #7989 - Update gleam 0.1.9 -> 0.1.13 (from glennw:update-gleam); r=frewsxcv
Update gleam 0.1.9 -> 0.1.11

Source-Repo: https://github.com/servo/servo
Source-Revision: dd2f8b6891f963a6c0cf42be9212e85a86a77df7
2015-10-13 19:15:39 -06:00
Prabhjyot Singh Sodhi
13eee003f0 servo: Merge #7871 - Send reason in the Websocket close handshake (from psdh:sendReason); r=jdm
Fixes #7862

Source-Repo: https://github.com/servo/servo
Source-Revision: 26902a9a9b9266d7ffe13e9e1eb2c70fb0b70ae9
2015-10-13 17:25:27 -06:00
David Raifaizen
02564b326f servo: Merge #8004 - Removed user agent parameter from being unnecessarily passed (from craftytrickster:user-agent/#7968); r=jdm
https://github.com/servo/servo/issues/7968

Source-Repo: https://github.com/servo/servo
Source-Revision: bc58cd2de05b371f641051eb1038cd29e36bbb01
2015-10-13 16:20:22 -06:00
Eli Friedman
9485a11014 servo: Merge #7997 - Link to the HTML multipage spec, not the single-page one (from eefriedman:html-spec-multipage); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 9fca41c7a7498cb6e27b914c45290dc4639d6f8b
2015-10-13 12:54:10 -06:00
Ms2ger
d28c6e55d4 servo: Merge #7991 - Update cssparser (from Ms2ger:update-selectors); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8cb3c5f6287146f8a5c351b72fb135de5b283b33
2015-10-13 11:39:43 -06:00
Connor Imes
5010e2b275 servo: Merge #7992 - Set a reasonable max count on open files and don't panic if set fails (from connorimes:platform-rlimit-nofailing); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 7babf4a3adb07823c49c25cf9b82bf18973a93d6
2015-10-13 08:49:56 -06:00
Dongie Agnir
a1c7fb0be8 servo: Merge #7990 - Add newline so code sample is parsed correctly (from dagnir:formatting-fix); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: efdaf5e7e5923d1078ed7b12b96325e2411cc3d2
2015-10-13 02:12:28 -06:00
Corey Farwell
7ef53c6ece servo: Merge #7987 - Fix issues found by rust-clippy (from frewsxcv:clippy); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: eb7039d04d4c83800ba9d92dc251222f79b83040
2015-10-12 18:33:30 -06:00
Matt Brubeck
fd3bcc3b9b servo: Merge #7933 - Replace libpng and stb_image with PistonDevelopers/image (from mbrubeck:piston-image); r=glennw
Fixes #3368. r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f597d389052500d9b76b9f9f89e873e6f809ab1
2015-10-12 15:06:31 -06:00
Simon Martin
3873b7794f servo: Merge #7957 - Issue #7905: Restore "headless" build on not Linux platforms (from simartin:ticket_7905); r=mbrubeck
Fix https://github.com/servo/servo/issues/7905 by implementing WindowMethods' native_display  in headless mode on "not Linux" platforms.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6303126e0c48e9c83aa7edd813079a6a360837b2
2015-10-12 12:02:43 -06:00
Glenn Watson
4bbac71ac7 servo: Merge #7921 - Update RemoveIFrame to use pipeline id rather than subpage (from glennw:subpage-fixes-2); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5ffeb3b95bfc90079622fa65fa7f6dc4fff25350
2015-10-12 07:49:26 -06:00
Corey Farwell
bdb575df39 servo: Merge #7976 - Cleanup code that was warned by rust-clippy (from frewsxcv:clippy); r=jdm
[whitespace agnostic diff](https://github.com/servo/servo/pull/7976/files?w=1)

Source-Repo: https://github.com/servo/servo
Source-Revision: ac1b595609a08c30d6c13dfe6e7705f061bbc010
2015-10-12 04:37:42 -06:00
Rahul Sharma
c2f189a984 servo: Merge #7973 - convert match to if let for location header check #7969 (from creativcoder:fix_issue_7969); r=jdm
@jdm Hi, very eager for my first pull request to Servo. Please review the changes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8dff3be956e7c4d8bc129491e1dfb5295c0027f1
2015-10-12 03:13:28 -06:00
Connor Imes
1145c446b0 servo: Merge #7961 - Update dependencies with fixes for native ARM builds (from connorimes:arm-crate-updates); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 71c5587856048708906cf3adb6952116f224d40e
2015-10-12 01:42:25 -06:00
Corey Farwell
6a9c0443a4 servo: Merge #7854 - Implement deleteRow and insertRow for table section elements (from frewsxcv:htmltablesectionelement-insertrow-deleterow); r=nox
Implement deleteRow and insertRow for <table> element

Continued from #6936

Source-Repo: https://github.com/servo/servo
Source-Revision: 292dbfe809ddf048065f790071ea2022406536d7
2015-10-11 16:44:13 -06:00
Corey Farwell
4eac942022 servo: Merge #7974 - Use Travis container-based infra for test-tidy (from frewsxcv:travis); r=jdm
I wasn't aware one could specify options like `sudo` and `services` on a per build-environment basis. Since the container-based builds are faster than normal builds, we should utilize it for test-tidy

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c1cb9f61e3d7a34fa49355d28d9edc236c0690f
2015-10-11 09:17:25 -06:00
Gökberk Yaltıraklı
7afd007050 servo: Merge #7971 - Use typed header API instead of set_raw in set_default_accept_encoding (from gkbrk:fix_7970); r=nox
Fixes #7970

Source-Repo: https://github.com/servo/servo
Source-Revision: 7b904ef6fb2147841366b4adf07327bc1cdbb1be
2015-10-11 03:20:14 -06:00
Corey Farwell
41ad1c9129 servo: Merge #7958 - Consolidate magic number representing max unsigned long (from frewsxcv:consolidate-magic-number); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: 02d889494580d2b387a42d3a94360e40dce96282
2015-10-10 15:00:39 -06:00
Corey Farwell
f5858ccd06 servo: Merge #7953 - Implement 'align' attribute for <div> elements (from frewsxcv:htmldivelement-align); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: babeed998d297d2d7badc06ba9c8f90e42239b4f
2015-10-10 14:11:33 -06:00
David Raifaizen
086a51ceaf servo: Merge #7949 - Making map+clone more succinct with cloned (from craftytrickster:map-clone-to-cloned); r=nox
https://github.com/servo/servo/issues/7906

Source-Repo: https://github.com/servo/servo
Source-Revision: 04266f237a807ed3abbb678cbda0f5a8439171c7
2015-10-10 13:18:56 -06:00
Anthony Ramine
eafe1e3613 servo: Merge #7918 - Derive PartialEq on the style Font structure (from nox:partialeq-font); r=mbrubeck
We check the hash first.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0f8493a5669d8c6c29d07881534e144bfc87b511
2015-10-10 12:26:07 -06:00
Corey Farwell
9db4f66ca0 servo: Merge #7955 - Add 'listing' alias for <pre> elements (from frewsxcv:listing-pre); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: b34b82537acfb7cd9bd8bcecd5eb49528020b1ab
2015-10-10 11:08:14 -06:00
Corey Farwell
795e875ef6 servo: Merge #7960 - Replace usage of old-style WHATWG spec links (from frewsxcv:update-spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4052a22a1c6826cb18f03de9d2f6aed82d809e71
2015-10-10 10:17:52 -06:00
Andriy Kunitsin
d8ffd6e1db servo: Merge #7948 - Changed dom_class type to Option<&'static DOMClass> to fix #7942 (from kunitsyn:master); r=Manishearth
I have a feeling that converting `Option<&T>` to `*const libc::c_void` could be less explicit.
Was there any way to do it shorter?

Source-Repo: https://github.com/servo/servo
Source-Revision: 9cccd98254191b1663dcaee9010eee63fa8074a3
2015-10-09 23:22:59 -06:00
Pierre Chevalier
eeac1823f4 servo: Merge #7945 - Refactor away unnecessary use of regex (from pierrechevalier83:fix_issue_7914); r=jdm
We don't need regex matching since ": &Vec<" doesn't
contain any special character.

New code reads better.

Fixes #7914.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1192efed505ca19a395f22cd5e5733e8c57a6e82
2015-10-09 21:22:06 -06:00
Avi Weinstock
5dcd1c9576 servo: Merge #7952 - Update clipboard to a version with chdir("/") removed (from aweinstock314:update-clipboard-20151009); r=mbrubeck
Relevant links:
http://logs.glob.uno/?c=mozilla%23servo&s=9+Oct+2015&e=10+Oct+2015#c279844
ef4cf77c9c

Source-Repo: https://github.com/servo/servo
Source-Revision: 28969f1f33cd0144fbdb9dc3cbd68dbb4b79352f
2015-10-09 19:52:13 -06:00
Martin Robinson
eb37118a1e servo: Merge #7891 - Properly size synthesized layers (from mrobinson:display-list-paint-layer); r=pcwalton
Layers that are composed of several stacking contexts that need to be
rendered on top of other layered content need synthesized layers.
Previously, these layers were placed into a stacking context that was
the same size as their parent. This patch creates a new type of
PaintLayer which simply holds a display list. The layer is sized to the
bounds of the DisplayList and its children are positioned relative to
the parent stacking context.

This will also be useful in the future, when items outside of
StackingContexts are given their own layer for render order purposes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d52bdf4ffd5479780df4a3fb0ff07bd7378720e
2015-10-09 17:00:21 -06:00
Louis Chan
87d5049829 servo: Merge #7939 - Use typed headers API instead of set_raw (from iawaknahc:issue-7924); r=Manishearth
fix https://github.com/servo/servo/issues/7924

Source-Repo: https://github.com/servo/servo
Source-Revision: 48887acff194047677f03d2be6cf151ecab3e2e3
2015-10-09 15:01:22 -06:00
Paul Rouget
f320ac97d4 servo: Merge #7909 - Snap to screen pixels instead of px (from paulrouget:subpixelPos); r=mbrubeck
Fixes #7904

Source-Repo: https://github.com/servo/servo
Source-Revision: 8ef8c53d2a3e8a54a2bfc98e7e1d71d609098f62
2015-10-09 14:10:44 -06:00
Alex Crichton
28e8a526a8 servo: Merge #7936 - Fix spurious rebuilds of the script crate (from alexcrichton:script-rebuild); r=jdm
The script crate currently has a build script, and Cargo will consider all files
in the script crate as inputs to the build script as it otherwise doesn't know
[what the input files are][cargo-1162]. This means that if any file in the
source tree of the script crate changes (or is created) then Cargo will think it
needs to re-run the build script and rebuild the crate.

[cargo-1162]: https://github.com/rust-lang/cargo/issues/1162

The build script of the script crate is invoking python, and consequently Python
is generating some bytecode files in the source tree. On the second build of
Servo, Cargo will see these new files, think that something has changed, and
will re-run the build script of the script crate.

This change passes the `-B` flag to python to avoid generating these bytecode
files, which should avoid tampering with the source tree and appease Cargo by
ensuring that it doesn't get rebuilt.

---

As a helpful tip to if this comes up again, this was discovered by using the
changes in rust-lang/cargo@c447e9d plus the change in rust-lang/cargo#2044. Once
`RUST_LOG` was set to `cargo::ops::cargo_rustc::fingerprint=info`, the second
run of `./mach build` printed out:

```
precalculated components have changed:
  1444364448.000000000s (/build/servo/components/script/dom/bindings/codegen/parser/WebIDL.pyc) !=
  1444364235.000000000s (/build/servo/components/script/document_loader.rs)
```

Which should help easily diagnose these kinds of problems in the future!

Source-Repo: https://github.com/servo/servo
Source-Revision: bc5444067f7614ab7e3c83d8e131800d0db817b2
2015-10-09 13:23:41 -06:00
Louis Chan
fd2d776494 servo: Merge #7835 - Implement a quota of 5MB per origin for localstorage and sessionstorage (from iawaknahc:webstorage-quota); r=jdm
PR for https://github.com/servo/servo/issues/6739

Source-Repo: https://github.com/servo/servo
Source-Revision: 06e0447e8289d723918a71e1ab39712c3af210d3
2015-10-09 12:36:47 -06:00
Antonio de Luna
d53caeab1e servo: Merge #7938 - removed clone from respond_with_headers fixes #7922 (from A-deLuna:remove-clone-from-respond_with_headers-fixes-#7922); r=Ms2ger
fixes #7922

Source-Repo: https://github.com/servo/servo
Source-Revision: ec10b1708ee4579886006b3248fdff7b21df4d0b
2015-10-09 11:40:33 -06:00
Ms2ger
1c3725c38e servo: Merge #7925 - Implement HTMLIFrameElement::pipeline_id on LayoutJS<HTMLIFrameElement> (from Ms2ger:iframe-pipeline-layout); r=glennw
Source-Repo: https://github.com/servo/servo
Source-Revision: 12139f73ef0be864bac00dc106832a9f45634cb2
2015-10-09 09:49:08 -06:00
Jim Berlage
f76cf699aa servo: Merge #7885 - Creates empty string when passed null (from jimberlage:7858/null-message); r=Ms2ger
This should fix #7858.  An empty `USVString` is now used when `data` is `None`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c81d9ab28132cff1d792b5c99e98bea6f7870bd
2015-10-09 09:02:45 -06:00
Corey Farwell
2157cac781 servo: Merge #7841 - Implement <body>'s "text" attribute (from frewsxcv:htmlbodyelement-text); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 1029feb55d004e4417dd6cfdcb864d18871ae74a
2015-10-09 06:11:46 -06:00
Pierre Chevalier
abc6fc4ff8 servo: Merge #7932 - Refactor away duplication of get_rooted functionality (from pierrechevalier83:fix_issue_7929); r=jdm
Refactor .get().map(Root::from_rooted)
and .get().map(|foo| foo.root())
to .get_rooted() on MutNullableHeap objects.

First part done mechanically with the following comand:
sed -i s/"get().map(Root::from_rooted)"/"get_rooted()"/g *.rs

Second part done manually after finding them with
git grep ".get().map("

Fixes #7929.

Source-Repo: https://github.com/servo/servo
Source-Revision: 96356a4b339af07831dec79e0084079328b43b53
2015-10-09 05:23:25 -06:00
Eli Friedman
115d4c54e5 servo: Merge #7825 - Fully implement the "align descendants" rule for div (from eefriedman:div-align); r=mbrubeck
This adds -servo-left and -servo-right to complement -servo-center.

~~This intentionally doesn't try to address issue #7301.~~  Commit added to address #7301.

Source-Repo: https://github.com/servo/servo
Source-Revision: ab42ca42967354cba08d1dca83aa99a637bd7a6b
2015-10-08 12:20:55 -06:00
Martin Robinson
1ba26da0e3 servo: Merge #7928 - Add the dump-layer-tree option to the -Z help text (from mrobinson:layer-tree-fix); r=pcwalton
I accidentally omitted this when I added the dump-layer-tree option
initially.

Fixes #7926.

Source-Repo: https://github.com/servo/servo
Source-Revision: a8ad990c6d619bc199ee25edd5bfd12e9846eb33
2015-10-08 11:23:18 -06:00
Martin Robinson
33363637c0 servo: Merge #7917 - Record reference test stdout and stderr (from mrobinson:test-stderr); r=larsbergstrom
When reference tests crash it is difficult to debug the issue, because
the stacktrace and any other output is discarded by the test harness.
Instead of discarding it, write the output to text files in the test
results directory which will make it easier to debug crashing tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: d15ea83938059a5ba754796545834930a9c0df1a
2015-10-08 10:36:09 -06:00
Corey Farwell
c17a75ed5f servo: Merge #7915 - Build Servo on Travis (from frewsxcv:travis); r=larsbergstrom
Closes #6962

Source-Repo: https://github.com/servo/servo
Source-Revision: e5b46eb919461531b8bf5a79fc0c5e6e1ec94c75
2015-10-08 09:00:28 -06:00
Martin Robinson
2bdc604c66 servo: Merge #7913 - Simplify and unify compositor shutdown code paths (from mrobinson:compositor-shutdown); r=pcwalton
Unify all compositor shutdown code paths into two methods, one which
starts the shutdown and the other that finishes it. This simplifies the
way the compositor shuts down and prevents "leaking" pixmaps when
exiting in uncommon ways.

Source-Repo: https://github.com/servo/servo
Source-Revision: 26dd1233103eb75c2e94fcc2ba34c18fa4432afc
2015-10-07 21:28:39 -06:00
Glenn Watson
9a3c41dbd9 servo: Merge #7916 - Don't check for equal image size and all white pixels for flaky tests (from glennw:flaky-mac); r=jdm
Workaround for #7730.

Source-Repo: https://github.com/servo/servo
Source-Revision: b34e8b86b83ce4404ce180d634b88d8a7aaa7348
2015-10-07 19:59:04 -06:00
Glenn Watson
9272f395c5 servo: Merge #7899 - Remove constellation round trip for subpage mapping in compositor (from glennw:subpage-fixes-1); r=pcwalton
This makes use of the new functionality that allows iframes to generate their own pipeline IDs in order to remove any knowledge of subpage ids from the compositor.

(This is the first of several commits removing subpage from parts of servo).

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d617f332edd0036ca4cbc3890f1f44f57597906
2015-10-07 18:36:35 -06:00
James Graham
6148e472ce servo: Merge #7875 - Move code to exit servo after writing a screenshot out of composite_specific_target (from jgraham:composite_no_exit); r=glennw
The structure of this function was confusing, so move some parts out into the
caller where they seem like a more natural fit and add documentation of the
functions

Source-Repo: https://github.com/servo/servo
Source-Revision: e7f73fdfd822fc2f0d3c239a428c739232bdfd12
2015-10-07 17:50:23 -06:00
Emilio Cobos Álvarez
8ff28f34dd servo: Merge #7843 - webgl: Implement WebGLContextEvent and use it on context creation error (from emilio:webgl-context-event); r=jdm
spec: https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
Source-Repo: https://github.com/servo/servo
Source-Revision: 0b6cb92d786a438cf7d9b2ca5b199172052e29bd
2015-10-07 17:04:10 -06:00