bors-servo
ebf4ce8288
Auto merge of #9070 - antrik:debug-fonts, r=nox
...
Derive Debug for more font-related types
Needs to pull in newer ipc-channel and azure.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9070 )
<!-- Reviewable:end -->
2016-01-03 08:11:57 +05:30
Olaf Buddenhagen
3c5a3ca4ff
Derive Debug for more font-related types
2016-01-03 02:54:55 +01:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
Josh Matthews
20668da061
Accept all Content-Type values for fonts if sniffing is disabled. Restore the status quo.
2015-12-31 09:12:59 -05:00
Josh Matthews
afb4d90ad3
Send a response to font load initiators even when a font is ignored.
2015-12-31 07:45:50 -05:00
Josh Matthews
e17e553f04
Restrict font loads to known MIME types.
2015-12-31 07:45:48 -05:00
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
bors-servo
66c8aa8cda
Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=glennw
...
Enabled use of FontFamily enum type
https://github.com/servo/servo/issues/8371
In addition to replacing loose strings with the FontFamily enum in `font_cache_task.rs`, I also centralized the add_generic_font calls into one single function. If centralizing into one function is not desired or if anything else needs to be changed, please let me know.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8420 )
<!-- Reviewable:end -->
2015-12-31 16:49:48 +05:30
David Raifaizen
d942bfb474
Enabled use of FontFamily enum type and replaced plain string parameters with enum
2015-12-30 18:21:37 -05:00
Bobby Holley
47059d2d26
Separate style+layout and layout-specific wrapper functionality.
...
This patch does a number of things, unfortunately all at once:
* Hoists a large subset of the layout wrapper functionality into the style system.
* Merges TElementAttributes into the newly-created TElement.
* Reorganizes LayoutData by style vs layout, and removes LayoutDataShared.
* Simplifies the API for borrowing style/layout data.
There's still more to do to make the style system usable standalone, but
this is a good start.
2015-12-29 11:50:03 -08:00
bors-servo
f77c792886
Auto merge of #9055 - simartin:issue_9042, r=Wafflespeanut
...
Issue #9042 : Report incorrect number of spaces around => in the style checker
Fixes https://github.com/servo/servo/issues/9042
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9055 )
<!-- Reviewable:end -->
2015-12-24 10:55:48 +05:30
Simon Martin
cec661fa86
Issue #9042 : Report incorrect number of spaces around => in the style checker.
2015-12-23 20:54:26 +01:00
Brandon Fairchild
637afecec9
Move LayerKind and ScrollPolicy enums to gfx_traits
...
This also moves LayerId and LayerProperties to gfx_traits.
Fixes #8836 .
2015-12-20 20:43:31 -05:00
bors-servo
95eabdb4db
Auto merge of #9022 - mskrzypkows:PaintMsg_refactoring, r=jdm
...
Move PaintMsg enum to gfx_traits #8844
re-PR of https://github.com/servo/servo/pull/9007 , because homu seems stuck
Fixes #8844 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9022 )
<!-- Reviewable:end -->
2015-12-20 01:34:26 +05:30
Mathieu Agopian
11234f5370
Use Url.join instead of UrlParser.base_url(...).parse ( #9002 )
2015-12-18 17:02:41 +01:00
bors-servo
6490d1e1c5
Auto merge of #9013 - antrik:debug-fontgroup, r=Ms2ger
...
Derive Debug for FontGroup and Homu is a bully
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9013 )
<!-- Reviewable:end -->
2015-12-18 14:23:15 +05:30
Maciej Skrzypkowski
3f7f323556
Move PaintMsg enum to gfx_traits #8844
2015-12-18 08:33:32 +01:00
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
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
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
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
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
Olaf Buddenhagen
c5ede5851e
Derive Debug on FontGroup and its components
2015-12-12 10:04:33 +01:00
bors-servo
23b220644c
Auto merge of #8947 - Ms2ger:core-text, r=jdm
...
Use core-text from crates.io.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8947 )
<!-- Reviewable:end -->
2015-12-12 13:27:45 +05:30
Ms2ger
5440a90a48
Use core-text from crates.io.
2015-12-12 02:19:24 -05:00
Ms2ger
70653bfe08
Remove unused imports.
2015-12-12 02:13:59 -05:00
bors-servo
9f0c6d75d1
Auto merge of #8939 - cnaj:msg_refactoring, r=Ms2ger
...
Move PaintListener to gfx_traits, Fixes #8834
Adding layers and msg dependency to gfx_traits.
Fixes #8834 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8939 )
<!-- Reviewable:end -->
2015-12-12 04:27:55 +05:30
Patrick Walton
b31a3b3883
Cache font style struct addresses in a separate font group cache.
...
On http://en.wikipedia.org/wiki/Spotted_hyena , I was seeing a 100% miss
rate in the first fast cache lookup and 45% of total layout time in this
function. After making this change, the first cache lookup almost always
succeeds, and the time spent in this function drops to 8%.
2015-12-11 15:43:32 -05:00
Tomas Cernaj
701aebee48
Move PaintListener to gfx_traits, Fixes #8834
...
Adding layers and msg dependency to gfx_traits.
2015-12-11 18:43:10 +01:00
Tetsuharu OHZEKI
e8c12c1c6d
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
2015-12-10 16:49:29 -05:00
Ms2ger
208c05f944
Fix warnings.
2015-12-04 10:31:19 +01:00
bors-servo
2dbc314e2d
Auto merge of #8796 - cheba:zero-point, r=SimonSapin
...
Replaced ZERO_POINT with Point2D::zero()
This is a proposed in servo/servo#8792 clean up.
Fixes #8792 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8796 )
<!-- Reviewable:end -->
2015-12-04 11:09:59 +05:30
bors-servo
68922e0ac2
Auto merge of #8797 - cheba:rect-contains, r=Manishearth
...
Replaced rect_contains_point with Rect.contains()
This is a proposed in servo/servo#8791 clean up.
Fixes #8791 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8797 )
<!-- Reviewable:end -->
2015-12-04 04:01:44 +05:30
Alexander Mankuta
ee746e252c
Replaced ZERO_POINT with Point2D::zero()
2015-12-03 19:46:45 +02:00
Alexander Mankuta
96a8b442b8
Replaced rect_contains_point with Rect.contains()
2015-12-03 16:15:34 +02:00
Alexander Mankuta
546d2f564f
Replaced ZERO_RECT with Rect::zero()
2015-12-03 15:39:30 +02:00
bors-servo
8b95d7b8d8
Auto merge of #8757 - servo:skia, r=mbrubeck
...
Use skia and deps from crates.io.
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687 .
Fix https://github.com/servo/skia/issues/70
This builds, but the at the moment causes a number of tidy errors for duplicated crates.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757 )
<!-- Reviewable:end -->
2015-12-03 12:58:29 +05:30
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
bors-servo
dbff1ab336
Auto merge of #8692 - GuillaumeGomez:patch-1, r=Wafflespeanut
...
Ensure crate are alphabetically sorted
cc @nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8692 )
<!-- Reviewable:end -->
2015-11-28 19:34:11 +05:30
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
Manish Goregaokar
dc0e467945
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
...
… and libc 0.2 and many other dependencies
2015-11-27 00:15:29 -05:00
bors-servo
5e7306bf19
Auto merge of #8598 - g-k:split-scriptmsg, r=KiChjang
...
Split paint task messages from ScriptMsg
Refs: https://github.com/servo/servo/issues/8592
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8598 )
<!-- Reviewable:end -->
2015-11-26 03:02:47 +05:30
Greg Guthe
7668fd0503
Split paint task messages from ScriptMsg
...
Refs: https://github.com/servo/servo/issues/8592
2015-11-25 14:35:52 -05:00
Alan Jeffrey
3dec6edd10
Update string_cache to 0.2.
...
Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock.
Removed references to string_cache_plugin.
Import atom! and ns! from string_cache.
Replaced ns!("") by ns!().
Replaced ns!(XML) and co by ns!(xml) and co.
Replaced atom!(foo) by atom!("foo").
Replaced Atom::from_slice by Atom::from.
Replaced atom.as_slice() by &*atom.
2015-11-25 10:13:21 -06:00
Patrick Walton
2843000810
Update ipc-channel
to pick up the improved error reporting.
...
Intended to help diagnose intermittent failures.
2015-11-23 16:38:39 -08:00
Patrick Walton
1c130819ca
compositing: Split Servo up into multiple sandboxed processes.
...
Multiprocess mode is enabled with the `-M` switch, and sandboxing is
enabled with the `-S` switch.
2015-11-19 16:38:04 -05:00
bors-servo
acbe413052
Auto merge of #8530 - KiChjang:split-constellation-msg, r=jdm
...
Split ConstellationMsg into ScriptMsg and CompositorMsg
Fixes #8356 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8530 )
<!-- Reviewable:end -->
2015-11-19 04:39:20 +05:30
Keith Yeung
19294db6e5
Split ConstellationMsg into ScriptMsg and CompositorMsg
2015-11-16 23:10:53 -08:00
Michael Wu
7cbef87b00
Avoid overflow in freetype/font_context.rs
2015-11-16 13:07:56 -05:00