aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
Commit message (Collapse)AuthorAgeFilesLines
* build(deps): bump bitflags from 1.3.2 to 2.3.1 (#30273)Martin Robinson2023-09-011-2/+3
| | | | | | Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.1)
* layout: Don't built stacking contexts or display lists for empty blocks.Josh Matthews2020-06-091-0/+5
|
* Servo build fixes.Emilio Cobos Álvarez2019-12-161-3/+3
|
* Upgrade to rustc 1.39.0-nightly (66bf391c3 2019-09-23)Simon Sapin2019-09-251-1/+3
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-2/+2
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* fmtSimon Sapin2019-07-221-3/+1
|
* layout: fix Servo build.Emilio Cobos Álvarez2019-05-071-11/+20
|
* Remove InlineFlowDisplayListBuildingAnthony Ramine2019-01-141-6/+93
| | | | | This lets us remove a few call indirections where a function just calls another function defined in another module.
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-4/+4
|
* Remove redundant `.clone()`sShotaro Yamada2018-12-111-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-6/+6
|
* Format remaining filesPyfisch2018-11-061-5/+10
|
* Sort `use` statementsSimon Sapin2018-11-061-6/+6
|
* `cargo fix --edition`Simon Sapin2018-11-061-18/+18
|
* Layout: Remove redundant deny unsafe and formatPyfisch2018-10-221-2/+0
| | | | | | Add license to two files. Bypass DisplayListBuilder for some items.
* Rustfmt layout cratePyfisch2018-09-011-462/+631
|
* layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-2/+2
|
* Pass Rect<Au> by value and not by referencePyfisch2018-05-051-1/+1
| | | | | | | Style change in display_list/builder.rs to reduce the number of & and * found in the code. Rect<Au> are basically 4 integers so there is no need to pass by reference.
* Move DL items from gfx to layoutPyfisch2018-04-221-1/+1
| | | | | | | | | Implement corner clipping. Remove PixelFormat from WebrenderImageInfo. Use WebRender text shadow. Remove MallocSizeOf and Deserialize for DL items. Closes #19649, #19680, #19802
* Workaround #20149 - presumed rustc bug on android.Josh Matthews2018-03-221-3/+3
|
* Add test for FontContext/FontGroup functionalityJon Leighton2018-02-221-4/+3
| | | | | | | | | | | | | | | | | | | | | | Unfortunately, this required quite a bit of changes to the non-test code. That's because FontContext depends on a FontCacheThread, which in turn depends on a CoreResourceThread and therefore lots of other data structures. It seemed like it would be very difficult to instantiate a FontContext as it was, and even if we could it seems like overkill to have all these data structures present for a relatively focused test. Therefore, I created a FontSource trait which represents the interface which FontContext uses to talk to FontCacheThread. FontCacheThread then implements FontSource. Then, in the test, we can create a dummy implementation of FontSource rather than using FontCacheThread. This actually has the advantage that we can make our dummy implementation behave in certain specific way which are useful for testing, for example it can count the number of times find_font_template() is called, which helps us verify that caching/lazy-loading is working as intended.
* Auto merge of #20096 - maekawatoshiki:master, r=emiliobors-servo2018-02-211-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix typo <!-- Please describe your changes on the following line: --> I found some typo, so I fixed them. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it's just a fix of typo. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20096) <!-- Reviewable:end -->
| * Fix typomaekawatoshiki2018-02-211-2/+2
| |
* | Change debug assertions to specific onesjanczer2018-02-071-1/+1
|/
* do not preserve suppress flag on second half of splitManish Goregaokar2018-01-241-2/+2
|
* Share line breaking state across text runsManish Goregaokar2018-01-241-2/+15
| | | | Fixes #874
* Do not leave space below baseline when it is not needed (i.e.there is no text)Fernando Jiménez Moreno2018-01-221-1/+5
|
* layout: Remove type parameter from PseudoElementType.Emilio Cobos Álvarez2018-01-141-1/+1
| | | | Everyone uses () now.
* Create own file for background calculations in layoutPyfisch2018-01-061-2/+2
| | | | | | | | | | Move display_list_builder.rs and webrender_helpers.rs along with the new file to components/layout/display_list/ Remove apparently unused IdType enum. Only variant used was OverflowClip. See #19676
* Turn flow::base and friends into methodsMatt Brubeck2017-12-141-7/+7
|
* style: Make all keywords CamelCase for consistency.Emilio Cobos Álvarez2017-12-061-38/+43
| | | | This prevents confusion and paves the ground for derive(Parse) of them.
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-15/+15
|
* style: Move text-overflow outside of makoConnor Brewster2017-10-271-4/+5
|
* Auto merge of #18968 - mbrubeck:try, r=emiliobors-servo2017-10-211-4/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Use try syntax for Option where appropriate - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they are refactoring only <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18968) <!-- Reviewable:end -->
| * Use try syntax for Option where appropriateMatt Brubeck2017-10-201-4/+1
| |
* | Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-15/+15
|/ | | | | | 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-15/+15
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.Simon Sapin2017-10-141-0/+4
|
* Auto merge of #18462 - mrobinson:cleanup-building-state, r=emiliobors-servo2017-09-151-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do some minor cleanups in display list building <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because they should not change behavior. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18462) <!-- Reviewable:end -->
| * Separate stacking context collection and display list building stateMartin Robinson2017-09-121-1/+2
| | | | | | | | | | | | | | These are two different passes during layout, but previously they shared a state object. While some of the members are the same, many are different so we separate them out into two separate objects. We also change the HashMaps of these state objects to use the FnvHashMap.
* | Implement `size_hint` for more iterators.Corey Farwell2017-09-131-0/+4
|/ | | | | | | | ``` implement size hint for more iterators because why not we like fast things ```
* Use generics for the vertical-align propertyAnthony Ramine2017-08-301-11/+12
|
* Remove border collapse argument from compute_border_and_paddingKeith Yeung2017-08-251-2/+1
|
* order derivable traits listsClément DAVID2017-08-231-4/+4
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Use the is_absolute_containing_block method everywhereMartin Robinson2017-08-161-1/+1
| | | | | | This is a better approach than relying on contains_positioned_fragments, because in the future other properties will create absolute containing blocks.
* Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)Simon Sapin2017-08-151-2/+2
|
* Allow CalculateStackingRelativePositions to short-circuitMatt Brubeck2017-08-081-3/+1
|
* Code organization: Move all generic traversal code to layout::traversalMatt Brubeck2017-08-081-4/+4
|