aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/text/text_run.rs
Commit message (Collapse)AuthorAgeFilesLines
* remove `extern crate` (#30311)Samson2023-09-081-0/+2
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Try to `use` WebRender types moreMartin Robinson2023-07-101-1/+2
| | | | | The newer versions of WebRender move types around between `webrender` and `webrender_api` and this will reduce the churn during the upgrade.
* Remove unused code from gfx and layout cratesest312019-05-291-4/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-4/+5
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-4/+4
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-2/+2
|
* Format gfx text #21373kingdido9992018-09-071-60/+102
|
* Introduce a dedicated data structure for text queriesPyfisch2018-02-241-2/+2
| | | | | | 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.
* Use LayoutRects for bounds and overflow in display listsPyfisch2018-02-071-2/+2
| | | | | Convert text runs to glyphs in display list builder. Remove ComplexClippingRegion and use the WebRender type.
* Share line breaking state across text runsManish Goregaokar2018-01-241-9/+39
| | | | Fixes #874
* gfx: Use ? on Option more often.Emilio Cobos Álvarez2017-12-091-4/+1
|
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-3/+3
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-3/+3
| | | | | | 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
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-3/+3
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Update WR (font instance API).Glenn Watson2017-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-2/+2
|
* [gfx] [layout] [style] Upgrade unicode-bidi to 0.3Behnam Esfahbod2017-05-221-3/+4
|
* Position insertion point in input field with mouseFlorian Merz2017-01-111-0/+15
|
* Remove old rendering backend.Glenn Watson2016-10-181-1/+1
| | | | | | | | | | | | | | 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.
* Use word-break to decide how glyph runs should be createdFelipe2016-09-271-69/+5
|
* Implement `word-break: keep_all`Felipe2016-09-271-5/+72
|
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* Move util::str to styleAnthony Ramine2016-07-051-1/+1
|
* Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
|
* Make `text-align: justify` incremental layout safeUlf Nilsson2016-05-101-2/+4
|
* layout: Don't pretend inline fragment sizes are zero when placing themPatrick Walton2016-05-041-1/+8
| | | | between floats.
* Use xi-unicode for line breakingMatt Brubeck2016-04-301-59/+28
|
* Use byte indices instead of char indices for text runsMatt Brubeck2016-04-281-37/+44
| | | | | | | 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.
* Stop using deprecated `str::char_*` methodsMatt Brubeck2016-04-271-5/+2
| | | | Fixes deprecation warnings in the gfx crate.
* Remove util::vec::ComparatorGuillaume Gomez2016-03-011-11/+9
|
* Move util::range into its own crateJonathan Schuster2016-02-251-1/+1
|
* Add WebRender integration to Servo.Glenn Watson2016-02-181-0/+3
| | | | | | | | WebRender is an experimental GPU accelerated rendering backend for Servo. The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used). WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
* gfx: Cache the last result ofPatrick Walton2015-12-161-1/+38
| | | | | | `TextRun::index_of_first_glyph_run_containing` in TLS. This achieves a 40% or so hit rate on Wikipedia.
* Split Au type into separate crate, with minimal dependencies.Glenn Watson2015-10-011-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+3
| | | | This merges import blocks that were reported by tidy as unmerged.
* Fix match_refs and let_returns in layout, address review changesManish Goregaokar2015-09-041-3/+2
|
* Remove needless returnsManish Goregaokar2015-09-041-1/+1
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* Basic support for bidirectional textMatt Brubeck2015-07-231-8/+51
|
* gfx: Make display lists serializable using `serde`.Patrick Walton2015-07-151-2/+2
| | | | | | | | | 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.
* Remove dead code from gfx/textMatt Brubeck2015-07-141-74/+0
|
* Remove `get_` prefix on gettersCorey Farwell2015-06-021-1/+1
| | | | | | Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script`
* Replace Au-related free functions in util::geometry with Au methods.Simon Sapin2015-05-051-2/+2
|
* layout: Simplify and improve the correctness of whitespace stripping inPatrick Walton2015-04-081-1/+3
| | | | | | | | | text layout, and unify the inline layout paths for pre- and normally-formatted text. This fixes a lot of "jumpiness" and removes the `new_line_pos` stuff. Closes #2260.
* Remove int_uint feature from gfx.Josh Matthews2015-04-071-2/+2
|