aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #23325 - emilio:gecko-sync, r=emiliobors-servo2019-05-085-72/+97
|\ | | | | | | | | | | | | | | | | | | | | style: Sync changes from mozilla-central. See each individual commit for details. <!-- 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/23325) <!-- Reviewable:end -->
| * layout: fix Servo build.Emilio Cobos Álvarez2019-05-075-72/+97
| |
* | Update harfbuzz to 0.3Bastien Orivel2019-05-071-1/+1
|/ | | | | | `hb_font_funcs_set_glyph_h_kerning_func` is gone but I couldn't find any replacement. Kerning tests are passing and kerning seems fine on my computer so I guess it's useless now ?
* Add is_connected flag to node and use it to replace most uses of is_in_docFernando Jiménez Moreno2019-04-261-1/+1
|
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-121-4/+7
|
* WR update: APIs updatePaul Rouget2019-03-222-8/+28
|
* layout: Fix servo build.Emilio Cobos Álvarez2019-03-134-23/+26
|
* ReformatSimon Sapin2019-02-261-1/+3
|
* Fix servo build.Emilio Cobos Álvarez2019-02-234-35/+23
|
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-1211-119/+94
| | | | | | | | | | | | | MozLength is not a very descriptive name. If we're going to use it in both Gecko and Servo we may as well name it something more accurate. I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence of box-sizing. I don't have better ideas than `Size`, given that. [1]: https://drafts.csswg.org/css2/visudet.html#propdef-width [2]: https://drafts.csswg.org/css2/box.html#content-width Differential Revision: https://phabricator.services.mozilla.com/D19280
* Fix servo build.Emilio Cobos Álvarez2019-02-1014-135/+164
|
* Auto merge of #22839 - jdm:overflow-hit-test-fix, r=pcwaltonbors-servo2019-02-061-3/+22
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure transparent hit test region is sized and positioned correctly. This addresses some edge cases that were missed by #22156. Specifically, in some cases the transparent region was being placed in the display list in front of the scrollable content, rather than behind it, and the size of the region did not account for parent stacking context. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22073 and fix #22216. - [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/22839) <!-- Reviewable:end -->
| * Ensure transparent hit test region is sized and positioned correctly.Josh Matthews2019-02-061-3/+22
| |
* | Implemented fullscreen top layerAlan Jeffrey2019-02-062-0/+18
|/
* Fix deprecation warningsSimon Sapin2019-01-281-2/+2
|
* Fix servo build and rustfmt recent changes.Emilio Cobos Álvarez2019-01-202-21/+59
| | | | | We need to introduce another Cursor enum that is specific to embedder_traits and that layout converts to to avoid dependency hell.
* Update webrender.Josh Matthews2019-01-171-87/+155
|
* Auto merge of #22396 - jdm:no-spam-iframe-size, r=asajeffreybors-servo2019-01-141-6/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce unnecessary iframe size messages This should be an improvement on pages that include iframes, since we currently run two layout jobs for every display-oriented layout request. When building the display list, we send a message to the constellation that includes the sizes of all iframes present, and the constellation sends resize messages to the script thread. This results in a mouse event on the outer page causing all frames to be re-laid out even if no changes occurred to the iframe sizes, which is ridiculous. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22394 - [x] These changes do not require tests because there is no way to test this internal detail. <!-- 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/22396) <!-- Reviewable:end -->
| * Suppress iframe size messages from layout that include unchanged sizes.Josh Matthews2019-01-141-6/+7
| |
* | Simplify get_cursorAnthony Ramine2019-01-141-15/+8
| |
* | Remove ObjectElementAnthony Ramine2019-01-141-40/+19
| |
* | Remove ComputedValueUtilsAnthony Ramine2019-01-141-21/+14
| |
* | Remove ComputedValuesCursorUtilityAnthony Ramine2019-01-141-41/+33
| |
* | Remove CompletelyEnclosesAnthony Ramine2019-01-141-34/+28
| |
* | Remove LayoutDamageComputationAnthony Ramine2019-01-141-8/+3
| |
* | Remove FlowConstructionUtilsAnthony Ramine2019-01-141-17/+1
| |
* | Remove FlexFlowDisplayListBuildingAnthony Ramine2019-01-143-17/+6
| |
* | Kill RgbColorAnthony Ramine2019-01-141-22/+9
| |
* | Remove ListItemFlowDisplayListBuildingAnthony Ramine2019-01-143-33/+23
| |
* | Remove InlineFlowDisplayListBuildingAnthony Ramine2019-01-143-117/+98
| | | | | | | | | | This lets us remove a few call indirections where a function just calls another function defined in another module.
* | Kill establishes_containing_block_for_absoluteAnthony Ramine2019-01-141-23/+7
| | | | | | | | We inline the related tests at the two call sites.
* | Remove FragmentDisplayListBuildingAnthony Ramine2019-01-141-225/+46
| |
* | Remove BaseFlowDisplayListBuildingAnthony Ramine2019-01-141-9/+1
| |
* | Remove BlockFlowDisplayListBuildingAnthony Ramine2019-01-149-97/+24
|/ | | | Replaced by inherent methods on BlockFlow, the only implementor of that trait.
* Make a bunch of layout queries morally saferAnthony Ramine2019-01-091-15/+15
|
* Move is_image_data to the layout crateAnthony Ramine2019-01-091-1/+7
| | | | It's only used there.
* Rustfmt recent changes.Emilio Cobos Álvarez2019-01-086-42/+34
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-0813-97/+97
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-089-202/+156
| | | | | | This also fixes a bunch of calc handling issues and such. Also remove tests that no longer compile and are covered by WPT.
* Fix Servo build.Emilio Cobos Álvarez2019-01-071-4/+5
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-2830-157/+162
|
* Remove redundant `.clone()`sShotaro Yamada2018-12-113-3/+3
|
* Cancel animations that affect nodes that do not participate in layout.Josh Matthews2018-12-101-5/+21
|
* Fix servo build.Emilio Cobos Álvarez2018-12-021-2/+5
|
* Update webrenderManish Goregaokar2018-11-273-17/+23
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-1944-44/+44
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-182-3/+3
|
* Auto merge of #22167 - emilio:gecko-sync, r=emiliobors-servo2018-11-102-0/+2
|\ | | | | | | | | | | | | | | | | | | | | style: Sync changes from mozilla-central. See each individual commit for details. <!-- 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/22167) <!-- Reviewable:end -->
| * layout: Fix servo build.Emilio Cobos Álvarez2018-11-102-0/+2
| | | | | | | | TextAlign now implements FromPrimitive instead of an ad-hoc method.
* | Use GradientBuilder::into_stopsPyfisch2018-11-101-2/+2
|/ | | | Avoid cloning gradient stops.