Commit graph

14856 commits

Author SHA1 Message Date
Corey Farwell
2cf29cbcdb Update Cargo.{lock,toml} to reference servo-egl instead of egl
The crate name was changed in this commit:

ebbd1cff89
2015-12-16 20:39:55 -05:00
bors-servo
d9bf1ba616 Auto merge of #8747 - KiChjang:form-interactive-validation, r=Manishearth
Implement basic framework for static and interactive validation on forms

This came along when I was trying to do #3648. I was about to do form validation as well, but then I saw it was actually intended to be a student project. Hopefully I didn't step on too many toes on this one; I did leave most of the important bits out (the fun bits I believe, e.g. interactive validation doesn't actually interactively validate anything right now).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8747)
<!-- Reviewable:end -->
2015-12-17 05:41:45 +05:30
Keith Yeung
5ed03a5466 Remove big blob of commented code 2015-12-16 10:36:13 -08:00
Matt Brubeck
40776b9492 Add queuing of pinch zoom events 2015-12-16 10:03:53 -08:00
Matt Brubeck
eb2a37d41c Refactor touch handling and add pinch zoom gesture 2015-12-16 10:03:49 -08:00
bors-servo
bc7158310c Auto merge of #8903 - KiChjang:layout-reporter-redirect, r=nox
fix for Layout memory reporter uses pre-redirect url

Rebase of #7612.

Fixes #6872.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8903)
<!-- Reviewable:end -->
2015-12-16 23:18:30 +05:30
Patrick Walton
520c561d3d gfx: Cache the last result of
`TextRun::index_of_first_glyph_run_containing` in TLS.

This achieves a 40% or so hit rate on Wikipedia.
2015-12-16 09:44:43 -08:00
bors-servo
39b205dacc Auto merge of #9000 - Ms2ger:update-tests, r=Ms2ger
Update tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9000)
<!-- Reviewable:end -->
2015-12-16 21:53:03 +05:30
Ms2ger
35ee95c203 Update CSS tests to revision b9afbd8c2c8ef5e824f276b0c3d44143c01d98aa 2015-12-16 16:58:04 +01:00
Ms2ger
cd00f312a3 Update web-platform-tests to revision 0bb3d73f26aa5a21326b6c1c7aaf35029222223f 2015-12-16 16:58:03 +01:00
bors-servo
d1ea209f0f Auto merge of #8996 - nox:rm-empty-modules, r=frewsxcv
Do not create modules from files with nothing to codegen (fixes #8711)

Fixes #8711.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8996)
<!-- Reviewable:end -->
2015-12-16 21:06:37 +05:30
bors-servo
54a608b65e Auto merge of #8999 - servo:rm-css2-props-py, r=Ms2ger
Delete GenerateCSS2PropertiesWebIDL.py

Fixes #8998.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8999)
<!-- Reviewable:end -->
2015-12-16 19:45:00 +05:30
Corey Farwell
1dee779d45 Delete GenerateCSS2PropertiesWebIDL.py 2015-12-16 09:12:56 -05:00
bors-servo
9c4ca39ebe Auto merge of #8055 - nox:rm-webidl-patches, r=Ms2ger
Remove all our patches to the WebIDL parser

All the tweaks we need can just be made through Configuration.py.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8055)
<!-- Reviewable:end -->
2015-12-16 15:19:25 +05:30
bors-servo
1695c0ad27 Auto merge of #8997 - dzbarsky:scissor, r=dzbarsky
Implement WebGL scissor method

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8997)
<!-- Reviewable:end -->
2015-12-16 11:05:32 +05:30
David Zbarsky
6a72d4dd12 Implement WebGL scissor method 2015-12-15 20:43:38 -08:00
Keith Yeung
3395e54585 Implement basic framework for static and interactive validation on forms 2015-12-15 16:34:42 -08:00
Anthony Ramine
2522cfe539 Do not create modules from files with nothing to codegen (fixes #8711) 2015-12-16 01:17:06 +01:00
bors-servo
59a3544279 Auto merge of #8991 - nox:clean-construct-hook, r=frewsxcv
Merge CGClassConstructHook and CGClassNameConstructHook (fixes #8934)

Fixes #8934.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8991)
<!-- Reviewable:end -->
2015-12-16 05:13:50 +05:30
Anthony Ramine
22d3213737 Mark CSS as [Abstract]
It is never instantiated.
2015-12-16 00:42:20 +01:00
Anthony Ramine
372da02a42 Link [Abstract] to the existing concrete descriptor field
This makes codegen not emit anything strictly related to the interface which
are never used in the case of abstract interfaces, such as the Wrap method
or the DOMJSClass.
2015-12-16 00:42:15 +01:00
Anthony Ramine
05e456d0d2 Do not export GetProtoObject if the interface has no descendants 2015-12-16 00:39:22 +01:00
bors-servo
85b43ea317 Auto merge of #8992 - asajeffrey:bump_string_cache_version, r=nox
Bump string_cache version to 0.2.5.

Atom::to_lower_case() now returns an Atom rather than a String,
so there are a few asserts that need a different collection of &s and *s.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8992)
<!-- Reviewable:end -->
2015-12-16 04:33:50 +05:30
Alan Jeffrey
348a68fe2c Bump string_cache version to 0.2.5.
Atom::to_lower_case() now returns an Atom rather than a String,
so there are a few asserts that need a different collection of &s and *s.
2015-12-15 17:00:36 -06:00
Anthony Ramine
561fdbb150 Merge CGClassConstructHook and CGClassNameConstructHook (fixes #8934) 2015-12-15 23:55:06 +01:00
Anthony Ramine
c1718a0b1f Update WebIDL parser 2015-12-15 23:24:16 +01:00
Anthony Ramine
06947965b1 Remove all our local patches to the WebIDL parser
All the tweaks we need can just be made through Configuration.py, and
[Abstract] is being submitted upstream by Ms2ger.
2015-12-15 23:06:35 +01:00
Patrick Walton
df93b1f194 gfx: Measure text shaping time in the time profiler. 2015-12-15 13:28:05 -08:00
Patrick Walton
85c73deb78 gfx: Cache the total advance of each glyph store.
The total advance is asked for over and over.
2015-12-15 11:24:36 -08:00
Patrick Walton
6f2aa54120 util: Inline trivial range constructors.
These were showing up in the profile.
2015-12-15 11:24:35 -08:00
bors-servo
072222e69e Auto merge of #8979 - frewsxcv:bump, r=nox
Upgrade some Rust dependencies

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8979)
<!-- Reviewable:end -->
2015-12-16 00:39:44 +05:30
Corey Farwell
4cb94975d9 Upgrade url: 0.5.0 -> 0.5.2
https://github.com/servo/rust-url/compare/v0.5.0...v0.5.2
2015-12-15 14:08:33 -05:00
Corey Farwell
5f8db66558 Upgrade brotli: 0.3.17 -> 0.3.20
ea4cb81aee...c243045b88
2015-12-15 14:08:33 -05:00
Corey Farwell
d1bf93b526 Upgrade aster: 0.9.0 -> 0.9.1
https://github.com/serde-rs/aster/compare/v0.9.0...v0.9.1
2015-12-15 14:08:33 -05:00
Corey Farwell
696776e4a8 Upgrade servo-glutin: 0.4.4 -> 0.4.5
https://github.com/servo/glutin/compare/1ff4aa78a82bcaebdf1ea3021557c04f5d36fd81...servo:18b3018662f54e23dd8cc9c7ffdd2e51134011cf
2015-12-15 14:08:33 -05:00
Corey Farwell
9efd6465c7 Upgrade httparse: 1.0.0 -> 1.1.0
https://github.com/seanmonstar/httparse/compare/v1.0.0...v1.1.0
2015-12-15 14:08:33 -05:00
Corey Farwell
bec75582b4 Upgrade core-graphics: 0.2.0 -> 0.2.1
https://github.com/servo/core-graphics-rs/compare/v0.2.0...v0.2.1
2015-12-15 14:08:33 -05:00
bors-servo
432087c0ea Auto merge of #8986 - GuillaumeGomez:patch-2, r=nox
Fix invalid returned value for dictionary types

part of #8882

cc @nox

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8986)
<!-- Reviewable:end -->
2015-12-15 22:57:58 +05:30
Guillaume Gomez
14a22953dd Fix invalid returned value for dictionary types 2015-12-15 18:26:35 +01:00
bors-servo
81282ba82a Auto merge of #8980 - Ms2ger:console, r=frewsxcv
Remove console.log call in iframe_hierarchy.html.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8980)
<!-- Reviewable:end -->
2015-12-15 18:51:37 +05:30
Ms2ger
ff3056339c Remove console.log call in iframe_hierarchy.html. 2015-12-15 12:07:55 +01:00
bors-servo
1d7689cb3f Auto merge of #8974 - pcwalton:simple-style-optzns, r=SimonSapin
Implement some trivial restyling optimizations.

These were discovered during profiling.

r? @SimonSapin

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8974)
<!-- Reviewable:end -->
2015-12-15 08:12:19 +05:30
bors-servo
5ebfc9103f Auto merge of #8978 - jdm:iframeparent, r=glennw
Ensure that grandchild same-origin iframes are added to the children …

…of the child iframe of the root. Resolves #8973.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8978)
<!-- Reviewable:end -->
2015-12-15 05:33:22 +05:30
Josh Matthews
397d748f9d Ensure that grandchild same-origin iframes are added to the children of the child iframe of the root. Resolves #8973. 2015-12-14 18:59:03 -05:00
Corey Farwell
75d64d3b3f Print tidy errors as they happen instead of all-at-once 2015-12-14 18:07:11 -05:00
Patrick Walton
74d5170dda style: Stop cloning error reporters all the time during cascading, and
outline the custom property handler into a slow path.
2015-12-14 13:57:01 -08:00
Patrick Walton
eb3e93af0b style: Mark trivial CalcLengthOrPercentage accessors as inline.
These were showing up all over profiles in layout.
2015-12-14 13:19:40 -08:00
bors-servo
d11f96e270 Auto merge of #8971 - jdm:expose-css-errors-1, r=jdm
Add pipeline information to CSS error reporting.

Rebase of #8838.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8971)
<!-- Reviewable:end -->
2015-12-14 21:51:41 +05:30
GauriGNaik
fc81276c8e Add pipeline information to CSS error reporting. 2015-12-14 11:18:30 -05:00
bors-servo
6032f8225b Auto merge of #8963 - Aesthetikx:unforgeable-istrusted, r=jdm
Make Event's isTrusted attribute unforgeable

Three failure expectations were able to be removed from `tests/wpt/web-platform-tests/dom/interfaces.html`. This is my first commit to servo and my first time with rust, hopefully I didn't overlook anything.

Fixes #8956.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8963)
<!-- Reviewable:end -->
2015-12-14 17:43:15 +05:30