aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Rename compute_absolute_position to compute_stacking_relative_positionMatt Brubeck2017-08-081-1/+1
|
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-4/+4
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).
* stylo: Use ComputedValuesInner instead of ComputedValues when we don't need itManish Goregaokar2017-07-171-6/+6
|
* Removed unsused importHugh Gallagher2017-07-131-1/+1
|
* layout: Stop in-order on children of InlineFlowPu Xingyu2017-07-131-13/+2
| | | | | | No need to do in-order traversal for children of InlineFlow, since they are either inline-block or absolutely positioned elements, which are guaranteed to be block formatting context.
* Replace remaining usage of deprecated Range::step_bySimon Sapin2017-07-051-5/+21
| | | | … which is being removed in https://github.com/rust-lang/rust/pull/43012
* remove various things now that Rust 1.17 is requiredNathan Froyd2017-06-231-1/+1
| | | | | std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
* Make BaseFlow::stacking_relative_position a vector.Nicolas Silva2017-06-141-5/+5
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-3/+3
|
* Auto merge of #16999 - bzbarsky:fix-text-overflow-handling, r=Manishearthbors-servo2017-05-231-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix stylo's text-overflow handling to match gecko. A single value sets the text-overflow on the _end_ of the text, not both start and end. <!-- 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 - [ ] These changes do not require tests because _____ <!-- 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/16999) <!-- Reviewable:end -->
| * Fix stylo's text-overflow handling to match gecko.Boris Zbarsky2017-05-231-1/+1
| | | | | | | | A single value sets the text-overflow on the _end_ of the text, not both start and end.
* | [gfx] [layout] [style] Upgrade unicode-bidi to 0.3Behnam Esfahbod2017-05-221-12/+15
|/
* Update app_units to 0.4.1Manish Goregaokar2017-05-191-2/+2
|
* Fix up script and layout.Bobby Holley2017-05-021-5/+5
|
* layout: Merge inline nodes based on node address, not node style.Emilio Cobos Álvarez2017-03-111-1/+1
|
* layout: Reflow some code and comments in layout/inline.rsEmilio Cobos Álvarez2017-03-111-32/+53
|
* Remove cached thread local context from LayoutContextPu Xingyu2017-02-081-4/+3
| | | | | Remove cached thread local context from LayoutContext, use LayoutContext for assign_inline_sizes(), and simplify the parallel flow traversal code.