Anthony Ramine
c2ed7c9632
Merge gfx and gfx_tests
2018-01-20 15:33:15 +01:00
Simon Sapin
d9a311963f
Make usage of simd in gfx optional
2017-10-13 11:10:58 +02:00
Simon Sapin
b77bdf1818
Remove usage the unstable Step trait
2017-10-04 10:10:04 +02: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
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
Manish Goregaokar
2230332f46
Update app_units to 0.4.1
2017-05-19 20:33:02 -07: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
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
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
Matt Brubeck
07f213cb87
Fix unused item warning on 32-bit platforms
2016-05-16 11:45:27 -07: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
Matt Brubeck
659305fe0a
Use byte indices instead of char indices for text runs
...
Replace character indices with UTF-8 byte offsets throughout the code dealing
with text shaping and breaking. This eliminates a lot of complexity when
converting from one to the other, and interoperates better with the rest of
the Rust ecosystem.
2016-04-28 14:32:14 -07:00
Matt Brubeck
dba878dfb2
Remove unneeded add_nonglyph_for_char_index
...
This is a no-op, since a "non-glyph" is simply `GlyphEntry(0)`. This is the
same as `GlyphEntry::initial()`, which all the entries are already initialized
to.
2016-04-28 08:07:13 -07:00
Zbynek Winkler
924d804583
Move '&&' to the end of the previous line.
...
Following https://github.com/servo/servo/issues/10692 this is just a
formating change to satisfy a new tidy requirement of not having '&&' at
the beginning of a line.
2016-04-22 14:28:18 +02:00
Guillaume Gomez
02095cf550
Remove util::vec::Comparator
2016-03-01 14:28:16 +01:00
Jonathan Schuster
205336bf2e
Move util::range into its own crate
2016-02-25 21:06:10 -05: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
Tetsuharu OHZEKI
e8c12c1c6d
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
2015-12-10 16:49:29 -05:00
bors-servo
ac448cacba
Auto merge of #7799 - mbrubeck:glyph-cleanup, r=pcwalton
...
Misc. code cleanup in gfx::text::glyph.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7799 )
<!-- Reviewable:end -->
2015-09-30 17:44:02 -06:00
Glenn Watson
339a3f869b
Split Au type into separate crate, with minimal dependencies.
2015-10-01 07:16:11 +10:00
Matt Brubeck
5bacfe9db9
Remove unused CharIndex field from GlyphIterator::Item
2015-09-30 09:52:10 -07:00
Matt Brubeck
d3d1d15615
Remove unused is_missing flag
2015-09-30 09:45:24 -07:00
Matt Brubeck
fa85d5f312
Remove unneeded adapt_character_flags_of_entry
2015-09-30 09:41:53 -07:00
Matt Brubeck
4174c918ad
Make set_char_is_space mutate self in place
2015-09-30 09:38:12 -07:00
Matt Brubeck
e663005ce2
Simplify add_glyph_for_char_index
2015-09-30 09:36:01 -07:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Patrick Walton
757e2cf4e5
layout: Reformat some long lines and fix some whitespace issues.
2015-09-17 13:31:17 +02:00
Patrick Walton
af8fcdf073
gfx: Fix a minor typo.
2015-09-17 13:31:16 +02:00
Patrick Walton
c62d8292c7
gfx: Add a Debug
impl for GlyphStore
instances.
...
Gecko has a `Dump()` routine in a similar spirit.
2015-09-17 13:31:08 +02:00
bors-servo
b05f4aa3aa
Auto merge of #7559 - ddrmanxbxfr:RFC-0344-Work, r=nox
...
Remove 'get_*' on getters as per RFC 0344 on canevas, compositing, devtools, gfx, layout, net, profile, servo and webdriver_server
Hi guys,
I just gave a big pass of RFC-0344 as per issue #6224 .
Pretty much renamed all the get_* fn that were used to fetch values.
I hope I didn't rename too much.
As said in the issue discussion, I didn't touch at the scripts folder so we keep the unsafe ones pretty explicit.
I've ran the whole pass of test, everything seems to be still working right :).
Please give feedback on this PR.
Thanks for looking into it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7559 )
<!-- Reviewable:end -->
2015-09-12 18:29:56 -06:00
Mathieu Rheaume
7320433cca
Remove 'get_*' on getters as per RFC 0344 on various components
2015-09-12 20:14:01 -04:00
Bryan Bell
0c99b7e6a9
Add fast SIMD code path in advance_for_char_range
...
In advance_for_char_range add a SIMD code path for the the common
case of no detailed glyphs.
- gfx/Cargo.toml
Add simd dependency https://github.com/huonw/simd
- servo/Cargo.lock
Add simd dependency https://github.com/huonw/simd @
d9ad79d86eab50a8f36d45fe17aa9e3a533389ee.
- SIMD isn't used on non-x86_65/aarch64 architectures.
2015-09-09 15:20:20 -07:00
Matt Brubeck
5f126ff301
Remove unnecessary adapt_character_flags call
2015-08-28 11:14:52 -07:00
Matt Brubeck
4d32e8b20e
Rearrange remaining bits of GlyphEntry
2015-08-28 11:14:50 -07:00
Matt Brubeck
9d4f5880d3
Remove unused glyph flags
2015-08-28 11:14:49 -07:00
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Matt Brubeck
f8e92b2b01
Implement the unicode-bidi property
2015-08-03 14:12:33 -07:00
Patrick Walton
6eacb0c995
gfx: Make display lists serializable using serde
.
...
This commit introduces the `serde` dependency, which we will use to
serialize messages going between processes in multiprocess Servo.
This also adds a new debugging flag, `-Z print-display-list-json`,
allowing the output of display list serialization to be visualized.
This will be useful for our experiments with alternate rasterizers.
2015-07-15 19:04:17 -07:00
Matt Brubeck
e0d98acabc
Remove dead code from gfx/text
2015-07-14 14:32:45 -07:00
Ms2ger
ce4d442941
Move away from the repeat().take().collect() pattern.
...
This was the preferred pattern between the deprecation of Vec::from_elem and
the addition of the count argument to the vec![] macro.
2015-07-14 16:19:30 +02:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Manish Goregaokar
5447d2af3d
remove more heapsize ignores
2015-06-03 07:14:20 +05:30
Simon Sapin
8b522f2e7d
Rename Au methods with f32/f64 instead of frac32/frac/subpx
2015-05-05 18:23:29 +02:00