Bastien Orivel
8bd2e91cdc
Update Webrender
...
Fixes #20609
2018-04-25 10:25:21 +02:00
Pyfisch
2d74bcfea5
Introduce a dedicated data structure for text queries
...
Add an IndexableText structure for text queries.
Instead of linear search for a node this now uses a HashMap.
Remove the now irrelevant fields from TextDisplayItem.
2018-02-24 10:36:10 +01:00
Pyfisch
46ada747b0
Use LayoutRects for bounds and overflow in display lists
...
Convert text runs to glyphs in display list builder.
Remove ComplexClippingRegion and use the WebRender type.
2018-02-07 12:21:08 +01:00
CYBAI
1a6154197b
Use specific assertion for gfx text shaping harfbuzz
2018-01-26 01:01:00 +08:00
Manish Goregaokar
f3c81fcda8
Share line breaking state across text runs
...
Fixes #874
2018-01-24 12:51:33 +05:30
Anthony Ramine
c2ed7c9632
Merge gfx and gfx_tests
2018-01-20 15:33:15 +01:00
Emilio Cobos Álvarez
eb00aa4164
gfx: Use ? on Option more often.
2017-12-09 20:27:16 +01:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/18809
2017-10-19 21:26:51 +00:00
Bastien Orivel
e8e2d0a4b2
Update bitflags to 1.0 in every servo crate
...
It still needs dependencies update to remove all the other bitflags
versions.
2017-10-19 15:01:17 +02:00
Simon Sapin
d9a311963f
Make usage of simd in gfx optional
2017-10-13 11:10:58 +02:00
Simon Sapin
aa5761a5fb
Remove usage of unstable box syntax, except in the script crate
...
… because there’s a lot of it,
and script still uses any other unstable features anyway.
2017-10-12 12:10:56 +02:00
Simon Sapin
a38df68e8a
Remove usage of unstable range_contains feature
2017-10-11 20:13:40 +02:00
Simon Sapin
b77bdf1818
Remove usage the unstable Step trait
2017-10-04 10:10:04 +02:00
Matt Brubeck
2795e5fa9c
Stop using unstable 'unique' feature
...
The `Unique` wrapper was only needed to provide the `Sync` trait.
2017-09-20 13:26:40 -07:00
Glenn Watson
b015e93dc5
Update WR (font instance API).
...
WR now has a concept of font templates and font instances. This
makes the WR font interfaces closer to Cairo and Gecko, and also
makes some future performance optimizations possible.
A font template is the font family, and data backing the font.
A font instance is a reference to a font template and per-instance
options, such as font size, anti-aliasing settings etc.
To update Servo in a minimally invasive way, I added a new font
cache call, that creates a font instance. This means that when
a font is created, and doesn't exist in the cache there are now
two calls to the font cache thread. We could refactor the font
cache to make this work in one call, which we should do in the
future. However, refactoring the font cache is a large chunk of
work by itself. The extra call is only when a font doesn't already
exist in the font context cache, so it should have minimal
performance impact.
2017-08-31 16:10:30 +10:00
Clément DAVID
c5fe235112
order derivable traits lists
...
Ignoring :
- **generated**.rs
- python/tidy/servo_tidy_tests/rust_tidy.rs
2017-08-23 21:38:44 +02:00
Simon Sapin
a205c82264
Upgrade to rustc 1.21.0-nightly (599be0d18 2017-07-26)
2017-07-27 02:21:01 +02:00
Martin Robinson
e58e8ab42e
Upgrade to the latest version of WebRender
2017-07-13 07:44:08 +10:00
Simon Sapin
316cd35767
Untry
2017-06-18 13:21:51 +02:00
Nicolas Silva
8617320500
Bump euclid to 0.14.
2017-06-14 16:00:59 +02:00
Behnam Esfahbod
14c524df4f
[gfx] [layout] [style] Upgrade unicode-bidi to 0.3
2017-05-22 20:06:19 -05:00
Manish Goregaokar
2230332f46
Update app_units to 0.4.1
2017-05-19 20:33:02 -07:00
Simon Sapin
02e1901bc1
Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)
2017-05-08 12:46:03 +02:00
Mátyás Mustoha
93f4ae9057
Use SIMD in gfx
when possible
2017-02-04 12:46:22 +01:00
Vee Satayamas
c69567406e
Fix #12193 Servo displays upper level Thai character in wrong place.
2017-02-01 14:28:15 -05:00
Florian Merz
b40db5b55d
Position insertion point in input field with mouse
2017-01-11 09:04:03 +01:00
Julien Levesy
b78979d692
replace match by if let statements if possible
2016-12-31 12:34:05 +01:00
Glenn Watson
acfdfd2fa9
Remove old rendering backend.
...
This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.
The use_webrender option has been removed, however I've left
the "-w" command line option in place so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.
Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.
2016-10-18 10:21:27 +10:00
Felipe
e0a48fe596
Use word-break to decide how glyph runs should be created
2016-09-27 11:25:21 +02:00
Felipe
d5669ead29
Implement word-break: keep_all
2016-09-27 11:25:21 +02:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Patrick Trottier
dd7daf2861
Fix GFX Warnings
...
Corrections to GFX Warnings Fix
2016-08-14 11:19:29 -04:00
Ravi Shankar
a04028eede
Prefer length and percentage for word spacing
2016-08-09 17:53:40 +05:30
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Ms2ger
e5cab36671
Move ByteIndex to gfx_traits.
2016-06-20 19:02:35 +02:00
Ms2ger
db5ddb561c
Reduce the scope of the allowed unsafe code in gfx::text.
2016-06-05 12:31:55 +02:00
Ms2ger
75ea39c709
Remove an obsolete comment in gfx::text.
2016-06-05 12:31:54 +02:00
Cullen Rhodes
40acd24e8f
Report use statements that use {} with only one entry
2016-05-27 10:18:44 +01:00
Matt Brubeck
43e12f7eba
Don't create HarfBuzz shaper if it isn't used
...
Move the fast shaping code out of the HarfBuzz shaper, and initialize the
shaper lazily to avoid creating any HarfBuzz objects.
2016-05-23 11:46:16 -07:00
Matt Brubeck
7bf6a41553
Remove unused FontShapingOptions field from Shaper
2016-05-23 11:26:39 -07:00
Matt Brubeck
5991afafa4
Add a fast path for shaping ASCII text
2016-05-20 16:47:01 -07:00
Matt Brubeck
7f6b1da85c
Allow creation of unboxed FontTables
2016-05-19 09:44:56 -07:00
Matt Brubeck
0010b448b8
Move hb_tag! macro and KERN into font module
2016-05-19 09:44:56 -07:00
Matt Brubeck
1eab6fbb2e
Simplify FontTableMethods::with_buffer
2016-05-19 09:44:56 -07:00
Matt Brubeck
07f213cb87
Fix unused item warning on 32-bit platforms
2016-05-16 11:45:27 -07:00
Per Lundberg
2f7ed1d73e
Removed unused imports
...
This fixes #11185 .
2016-05-15 22:24:26 +03:00
Ulf Nilsson
0f983cd11f
Make text-align: justify
incremental layout safe
2016-05-10 15:46:22 +02:00
Matt Brubeck
0f221521ab
Filter out whitespace glyphs from display list
...
Fixes #10244 .
2016-05-05 09:30:28 -07:00
Patrick Walton
8823f87276
layout: Don't pretend inline fragment sizes are zero when placing them
...
between floats.
2016-05-04 13:19:52 -07:00