aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Auto merge of #16319 - canaltinova:element, r=upsuperbors-servo2017-04-101-0/+6
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stylo: Add -moz-element support Implemented -moz-element for background property. r=upsuper --- <!-- 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 #15443 and [Bug 1341761](https://bugzilla.mozilla.org/show_bug.cgi?id=1341761) <!-- 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/16319) <!-- Reviewable:end -->
| * | stylo: Add -moz-element supportNazım Can Altınova2017-04-091-0/+6
| | |
* | | stylo: Store font metrics provider in thread local style contextManish Goregaokar2017-04-092-1/+4
| | |
* | | Do the sequential traversal breadth-first.Bobby Holley2017-04-091-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | While we're at it, we also eliminate the 'unknown' dom depth for the bloom filter. Computing depth has negligible cost relative to the amount of work we do setting up the bloom filter at a given depth. Doing it once per traversal should be totally fine. I originally separated the elimination of unknown dom depth from the traversal changes, but I got bloom filter crashes on the intermediate patch, presumably because I didn't properly fix the sequential traversal for this case. Given that the final state is green, I just decided to squash and move on.
* | Update string-cache.Emilio Cobos Álvarez2017-04-071-1/+1
| |
* | Update cssparser in Cargo.toml.Xidorn Quan2017-04-071-1/+1
| |
* | Use real clips when generating scroll rootsMartin Robinson2017-04-062-11/+46
|/ | | | | | | | This is the first step toward removing inherited clips in favor of scroll roots for handling overflow and CSS clipping. This will allow us to more easily handle elements that should not be clipped. While we are still using inherited clips here, we now properly clip some types of content that wasn't clipped before.
* Update WR (more border fast paths, clip interface changes).Glenn Watson2017-04-051-0/+1
|
* Update to support new clipping coordinates changeMartin Robinson2017-04-052-10/+15
|
* Update WR (gradient features).Glenn Watson2017-04-051-6/+5
|
* Update WR (various optimizations, gradient improvements).Glenn Watson2017-04-031-2/+2
|
* Various cleanupsPu Xingyu2017-04-011-19/+24
| | | | Remove some hacks in layout, and unused function in style.
* Use empty pseudo to cascade only inheritable properties for textPu Xingyu2017-04-012-92/+55
| | | | | | Since for nested inline elements non-inheritable properties are properly stored in the inline context of an inline fragment, so get rid of them on the style.
* Use Servo-specific pseudo element for InlineAbsolute fragmentPu Xingyu2017-03-311-2/+3
|
* Use Servo-specific pseudo element for InlineBlock fragmentPu Xingyu2017-03-311-3/+5
|
* Auto merge of #16127 - jbendig:issue_14954, r=emiliobors-servo2017-03-281-30/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add full parsing/serialization for mask-repeat and background-repeat I implemented full parsing and serialization for the mask-repeat and background-repeat style properties. I think some more tests are required but I'm not what I'm missing. I'd appreciate some direction. I also had to modify some layout code to get my changes to compile. As a result, background-repeat should work individually in both directions now too. --- <!-- 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 #14954. <!-- Either: --> - [ ] There are tests for these changes <!-- 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/16127) <!-- Reviewable:end -->
| * Add full parsing/serialization for mask-repeat and background-repeatJames Bendig2017-03-271-30/+26
| |
* | Make image cache per-document rather than globalFernando Jiménez Moreno2017-03-273-10/+9
|/
* Auto merge of #16146 - mrobinson:containing-block-scrolling, r=glennwbors-servo2017-03-271-1/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix scroll root of absolutely positioned elements Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes #13530. <!-- 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: --> - [x] 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/16146) <!-- Reviewable:end -->
| * Fix scroll root of absolutely positioned elementsMartin Robinson2017-03-271-1/+22
| | | | | | | | | | | | | | | | | | Absolutely positioned elements should be given the scroll root of their containing block and not necessarily the scroll root of their parent. This fixes several CSS tests, though others are still failing pending a similar fix for inherited clipping rectangles. Fixes #13530.
* | style: Properly track whether <angle> or <time> values came from calc() ↵Emilio Cobos Álvarez2017-03-271-1/+1
|/ | | | expressions.
* Auto merge of #16113 - glennw:update-wr-opaque-opt, r=mrobinsonbors-servo2017-03-261-5/+0
|\ | | | | | | | | | | | | | | Update WR (opaque rect optimization, stacking context culling). <!-- 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/16113) <!-- Reviewable:end -->
| * Update WR (opaque rect optimization, stacking context culling).Glenn Watson2017-03-271-5/+0
| | | | | | | | | | | | | | | | | | Correct viewport test references These references were using an incorrect value for the expected container width. Now that WebRender is no longer clipping to stacking context boundaries the rendered width is correct (100% of viewport width = 240px).
* | Auto merge of #15905 - mephisto41:add-border-gradient, r=emiliobors-servo2017-03-262-27/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add gradient border support. webrender add gradient border support in https://github.com/servo/webrender/pull/953. This pr add support in servo. --- <!-- 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 <!-- Either: --> - [X] These changes do not require tests because it should be covered by wpt <!-- 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/15905) <!-- Reviewable:end -->
| * | Add gradient border support.Morris Tseng2017-03-132-27/+77
| | |
* | | Add support for -moz-image-rectNazım Can Altınova2017-03-251-0/+6
| | |
* | | Rename and move PercentageOrNumber to valuesNazım Can Altınova2017-03-251-4/+5
| |/ |/|
* | Auto merge of #16073 - glennw:update-wr-glfns, r=mrobinsonbors-servo2017-03-233-154/+160
|\ \ | | | | | | | | | | | | | | | | | | | | | Update WR (gl trait, scroll roots) <!-- 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/16073) <!-- Reviewable:end -->
| * | Stop splitting scroll rootsMartin Robinson2017-03-213-154/+160
| | | | | | | | | | | | | | | | | | | | | Now that WebRender can handle splitting scrolling layers on its own, we don't need to do any work to split up scroll roots. This should also make it possible to handle overflow:scroll and containing block scroll roots in the future.
* | | Update parking_lot_core and smallvecMatt Brubeck2017-03-221-1/+1
|/ /
* | Replace RwLock<StyleRule> with Locked<StyleRule>Simon Sapin2017-03-196-32/+33
| |
* | Switch column-count to use predefined integer typeXidorn Quan2017-03-171-2/+5
| |
* | Switch z-index to use predefined integer typeXidorn Quan2017-03-171-8/+8
| |
* | style: Kill SharedStyleContext::default_computed_values.Emilio Cobos Álvarez2017-03-141-4/+5
|/ | | | | | | Now that cascade() gets a Device, we can use the default computed values from there to avoid propagating that state all over the place. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #15913 - emilio:viewport-size, r=heycam,hirobors-servo2017-03-112-10/+10
|\ | | | | | | | | | | | | | | | | | | | | Use the proper viewport size for stylo Reviewed upstream at [bug 1303229](https://bugzil.la/1303229). <!-- 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/15913) <!-- Reviewable:end -->
| * Bug 1303229: Get the proper viewport size for stylo. r=heycamEmilio Cobos Álvarez2017-03-112-10/+10
| | | | | | | | | | | | | | | | | | | | At least until we support scrollbars properly, this size is going to be the correct one. I've left a TODO to grab the proper one once we support it. This allows to trivially test viewport units for now. MozReview-Commit-ID: JdaZ6WlZ2C6 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* | 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
|/
* Auto merge of #15879 - glennw:update-wr-scroll, r=mrobinsonbors-servo2017-03-081-1/+1
|\ | | | | | | | | | | | | | | Update WR (scroll root changes, border gradients, yuv updates). <!-- 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/15879) <!-- Reviewable:end -->
| * Update WR (scroll root changes, border gradients, yuv updates).Glenn Watson2017-03-091-1/+1
| |
* | Auto merge of #15861 - projektir:make-text-decoration-testable, r=Wafflespeanutbors-servo2017-03-081-6/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make text decoration testable and do not serialize initial text-decoration-style Servo now uses the same name for the text-decoration-line longhand property as Gecko. This was done to enable testing of the text-decoration shorthand. The text-decoration shorthand has been fixed to not serialize initial text-decoration-style. --- - [x ] `./mach build -d` does not report any errors - [x ] `./mach test-tidy` does not report any errors - [x ] These changes fix #15790 --- - [x ] There are tests for these changes <!-- 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/15861) <!-- Reviewable:end -->
| * Don't serialize initial text-decoration-style #15790projektir2017-03-091-6/+6
| |
* | Update WR (types updates, stacking context culling)Glenn Watson2017-03-091-17/+1
|/
* layout: Replace ConstructionResult::swap_out() with get()Patrick Walton2017-03-031-14/+9
| | | | | It only actually swaps out in nonincremental mode (which isn't suitable for real world use), so the name is confusing.
* Update WR (reference frames for fixed position elements).Glenn Watson2017-03-034-12/+24
|
* s/nodes_from_point/nodes_from_point_response and change test from reftest to ↵Fernando Jiménez Moreno2017-03-021-1/+1
| | | | regular test checking only the fixed crash
* Trigger reflow on document.elementsFromPointFernando Jiménez Moreno2017-03-022-30/+10
|
* Kill serde_codegen 💣Anthony Ramine2017-02-281-5/+1
|
* Update cssparser for https://github.com/servo/rust-cssparser/pull/123Simon Sapin2017-02-281-1/+1
|
* Update to cssparser 0.11Simon Sapin2017-02-261-1/+1
|