Patrick Walton
15d60d7ea4
layout: Implement filter
per CSS-FILTERS § 5.
...
`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.
2015-01-09 07:26:13 -08:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
d759b07299
Qualify libstyle enums.
2015-01-04 15:04:35 +01:00
Ms2ger
9068e62f2a
Qualify Azure enums.
2015-01-04 15:04:26 +01:00
Manish Goregaokar
e973213606
gfx: to_string() -> into_string()
2014-12-27 14:48:35 +01:00
Tetsuharu OHZEKI
f04c64f500
Replace almost "render" to "paint" words in gfx crate.
2014-12-08 14:55:30 +09:00
Tetsuharu OHZEKI
a9839fa18e
Rename RenderFontCacheEntry -> PaintFontCacheEntry.
2014-12-08 14:17:16 +09:00
Jack Moffitt
d1b433a3b3
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
2014-11-13 11:17:43 +10:00
Glenn Watson
b1c226778f
Cache last fontgroup. Style recalc on wikipedia/rust 66ms -> 41ms.
2014-10-24 08:25:10 +10:00
bors-servo
a6f0159cb8
auto merge of #3765 : pcwalton/servo/profiler-cleanups, r=cgaebel
...
The only real user-visible change this effects is to trim URLs to 30 characters so they don't make huge lines on the terminal.
r? @cgaebel
2014-10-22 14:45:35 -06:00
Patrick Walton
d2d012165f
util: Make some minor formatting cleanups to profiling and gfx
2014-10-22 07:49:56 -07:00
Patrick Walton
55222336b5
gfx: Paint in parallel in CPU painting mode
2014-10-22 07:47:47 -07:00
Glenn Watson
8331cfe089
Convert internal font code to store pt size as Au.
2014-10-22 13:49:41 +10:00
Patrick Walton
79f84a62fe
gfx: Make fonts that fail to match hit the cache too.
...
50%-100% layout perf improvement on CNN.
2014-10-20 22:05:38 -07:00
Glenn Watson
b816550a17
Remove render backend option as it doesn't work and confuses people.
2014-10-20 07:39:36 +10:00
Patrick Walton
a6fcec468f
layout: Remove FontStyle
in favor of using the font style struct
...
directly, and optimize `get_layout_font_group()` to use a small vector.
Seems to be a 38% layout win on a site I tested with a lot of text.
2014-10-15 22:17:57 -07:00
Glenn Watson
a70850c261
Fix selection of fallback fonts. Fixes monospace fonts in rust guide.
...
Previously, any font template that could not be found would return
an item from the last resort font family. Now, the last resort font
family is only searched if the entire list of supplied font families
is empty.
2014-10-13 15:39:53 +10:00
Glenn Watson
f7b7a96961
Add fixme comment for future work, make scale factor a constant.
2014-09-24 06:00:46 +10:00
Glenn Watson
0dd1b85739
Add support for small-caps font-variant.
...
Ref: 2554.
2014-09-23 14:21:41 +10:00
Keegan McAllister
dc86e83654
Eliminate warnings
2014-09-20 13:00:55 -07:00
Glenn Watson
d9662fc571
Fix font flickering due to missed check in font cache.
2014-09-16 14:35:22 +10:00
Glenn Watson
df48e33926
Fix comment and and reference to bug #3300
2014-09-12 14:00:55 +10:00
Glenn Watson
9ec3c9374d
Reduce number of font instances and shaper structures created.
...
The font cache previously kept weak references to the fonts,
however in layout these fonts are dropped before they are
referenced again, so no caching was being used.
For now, just hold a strong reference in the cache, which means
that fonts will never be thrown out (this will need to be fixed
in the future).
2014-09-12 13:17:44 +10:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00