Commit graph

16155 commits

Author SHA1 Message Date
Maciej Skrzypkowski
3f7f323556 Move PaintMsg enum to gfx_traits #8844 2015-12-18 08:33:32 +01:00
Paul Rouget
f0b25e16f7 delay page freeze/thaw until it's created 2015-12-18 08:27:01 +01:00
Paul Rouget
e7449d541f Freeze old pipeline in iframes 2015-12-18 08:26:57 +01:00
bors-servo
8dc4b8dcb9 Auto merge of #8993 - nox:small-codegen-slimming, r=Ms2ger
Slightly reduce the output of codegen

Interfaces which we know are never instantiated can generate less code.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8993)
<!-- Reviewable:end -->
2015-12-18 06:35:15 +05:30
bors-servo
44588cdc98 Auto merge of #8967 - jinwooahn:comments, r=jdm
preflight_fetch steps comments out of date with spec #8941

Fix comments. Resolves #8941

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8967)
<!-- Reviewable:end -->
2015-12-18 05:55:23 +05:30
bors-servo
63923bc7c9 Auto merge of #8825 - jmr0:master, r=jdm
adding initial support for websocket subprotocol negotation

Addresses #8177

I also noticed some bugs/gaps (and at least one of my TODO's can be an E-Easy)

cc @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8825)
<!-- Reviewable:end -->
2015-12-18 05:23:15 +05:30
bors-servo
82e73e7a5f Auto merge of #8723 - dzbarsky:origin_clean, r=dzbarsky
Add origin-clean flag tracking for canvas

The resulting failures are because we aren't doing origin-comparison correctly (I bet the image ends up with an empty hostname or something). We could probably hack around that if we care, but it should just go away when we get the origin checking right.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8723)
<!-- Reviewable:end -->
2015-12-18 04:26:59 +05:30
David Zbarsky
b8e9064fe6 Add origin-clean flag tracking for canvas 2015-12-17 11:40:38 -08:00
Ms2ger
50ff54c37c Silence warnings in htmlformelement.rs. 2015-12-17 16:03:22 +01:00
jmr0
7d0bede8ba adding initial support for websocket subprotocol negotation 2015-12-17 09:17:15 -05:00
bors-servo
9570b51565 Auto merge of #8618 - paulrouget:reload, r=jdm
Browser API: implement iframe.reload()

fixes #8575

The implementation is naive, and doesn't support the `hardreload` parameter.
And for the test, I'm not sure how else I can test the reload.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8618)
<!-- Reviewable:end -->
2015-12-17 19:45:44 +05:30
bors-servo
c6ae32abdd Auto merge of #8612 - glennw:pending-frames, r=jdm
Add test to constellation to avoid writing reftest image if there are pending frames.

This changes several tests that contain <iframe></iframe> from FAIL to TIMEOUT. This is correct
since there is a bug that prevents these iframes from ever rendering.

~~~There are also a few previous FAILs that changed to OK. These may be intermittents or they
may genuinely be fixed by this change.~~~

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8612)
<!-- Reviewable:end -->
2015-12-17 16:19:16 +05:30
jinwoo.ahn
316a619172 preflight_fetch steps comments out of date with spec #8941
Fixed the comments according to the spec.
2015-12-17 15:05:51 +09:00
bors-servo
338f66003e Auto merge of #8995 - pcwalton:measure-text-shaping, r=mbrubeck
gfx: Measure text shaping time in the time profiler.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8995)
<!-- Reviewable:end -->
2015-12-17 10:57:29 +05:30
bors-servo
67c3cb3707 Auto merge of #8990 - pcwalton:advance-for-range-optzns, r=mbrubeck
Optimize `TextRun::advance_for_range`.

The combined effects of these optimizations move `advance_for_range` from #1 in the layout profile on all sites I tested to #2, #3, or #4, depending on the site.

r? @mbrubeck

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8990)
<!-- Reviewable:end -->
2015-12-17 09:47:03 +05:30
bors-servo
0e4ae508e2 Auto merge of #8975 - mbrubeck:touch-refactor, r=glennw
Add pinch zoom gesture for touch-screen devices

r? @glennw

Notes:
* Our layer system doesn't yet support zooming `<iframe mozbrowser>` separately, so this can only zoom the root window.
* There are some issues that cause some tiles to disappear while zooming. I hope this will be fixed by WebRender.
* Sorry this is mostly in one giant commit. I did the refactoring and adding new functionality in tandem, and didn't really end up with logical or compilable intermediate commits. Hopefully the new code is easier to read than the old stuff.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8975)
<!-- Reviewable:end -->
2015-12-17 08:17:38 +05:30
Glenn Watson
b670430cb2 Add test to constellation to avoid writing reftest image if there are pending frames.
Also change when pipelines become active.

This makes the constellation activate a pipeline as the current frame
when it is ready to do initial reflow, rather than when it is ready
to paint.

This fixes a number of intermittent failures that could previously occur
if an iframe was not visible - which would mean it was never moved from
a pending frame in the constellation to an active frame.

(It happens that webrender exposes these intermittents as permanent failures).
2015-12-17 12:30:19 +10: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
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
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
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
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
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
Guillaume Gomez
14a22953dd Fix invalid returned value for dictionary types 2015-12-15 18:26:35 +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
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
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