aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Auto merge of #14978 - shinglyu:inline-flex, r=notriddlebors-servo2017-01-221-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented display: inline-flex <!-- 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 - [x] These changes fix #14685 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes <!-- 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/14978) <!-- Reviewable:end -->
| * Implemented display: inline-flexShing Lyu2017-01-231-0/+2
| |
* | Preserve the un-truncated version of fragmentsMichael Howell2017-01-121-15/+10
| | | | | | | | Fixes #14952
* | Do not replace an ellipsis when reflowing a lineMichael Howell2017-01-121-0/+11
| | | | | | | | The ellipsis should be replaced, if needed, when the text itself is reflowed.
* | Rework the way scroll roots are collectedMartin Robinson2017-01-101-6/+3
|/ | | | | | | | | | | | Collect scroll roots during the collect_stacking_context phase instead of during display list construction. This will be useful in order to collect containing block scroll roots as well as to give scroll roots sequential ids in the future. This change also pulls stacking context children out of the StackingContext struct itself, which should reduce very slightly the memory used by the finished display list. This also simplifies the DisplayListBuilder because it no longer has to maintain a stack of ScrollRootIds and StackingContextIds and can instead just rely on the program stack.
* layout: Remove get_font_arc in favor of clone_font.Emilio Cobos Álvarez2016-12-311-2/+2
| | | | Since they do the same.
* Make the DomTraversalContext own the SharedStyleContext and share it ↵Bobby Holley2016-12-161-1/+1
| | | | | | | | | | immutably across the traversal. This allows us to get rid of a bunch of lifetimes and simplify a lot of code. It also lets us get rid of that nasty lifetime transmute, which is awesome. The situation with thread-local contexts is still suboptimal, but we fix that in subsequent patches.
* Remove unused replaced size calculation methodsPu Xingyu2016-12-121-3/+1
| | | | | Remove some fields and methods from SpecificFragmentInfo and change some function signatures.
* implemented string-valued text-overflowNikhil Shagrithaya2016-11-101-13/+24
|
* Stop using associated types for the concrete TRestyleDamage implementation.Bobby Holley2016-11-071-2/+1
| | | | MozReview-Commit-ID: LfaZFCVlIb1
* Migrated -Z trace-layout to serde_jsonShing Lyu2016-11-071-6/+6
|
* Make `FlowRef` a newtypeMichael Howell2016-11-041-6/+6
| | | | | | | | | | | | | This creates a sharp distinction between `Arc<Flow>`s, which may be owned by anyone, and `FlowRef`s, which may only be owned by the traversal code. By checking the reference count, we ensure that a `Flow` cannot be pointed to by `Arc`s and `FlowRef`s simultaneously. This is not a complete fix for #6503, though it is a necessary start (enforcing the no-aliasing rule of `FlowRef::deref_mut` will require far more work). Fixes #14014
* Use a new id type for tracking scrolling areasMartin Robinson2016-10-301-2/+5
| | | | | | This is a step in disassociating scrolling areas from stacking contexts. Now scroll areas are defined by unique ids, which means that in the future stacking context will be able to contain more than one.
* Remove old rendering backend.Glenn Watson2016-10-181-6/+0
| | | | | | | | | | | | | | 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.