Simon Sapin
4464354e2e
Reformat
2019-02-26 08:18:33 +01:00
Emilio Cobos Álvarez
44ae191e72
Fix servo build.
2019-02-23 21:05:34 -08:00
Emilio Cobos Álvarez
c2819365f0
style: Rename MozLength to Size, and MaxLength to MaxSize.
...
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
2019-02-12 02:28:00 +01:00
Emilio Cobos Álvarez
6daebcc5df
Fix servo build.
2019-02-10 07:23:51 +01:00
bors-servo
d81ff5704e
Auto merge of #22839 - jdm:overflow-hit-test-fix, r=pcwalton
...
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 -->
2019-02-06 18:14:20 -05:00
Josh Matthews
f59e95ee3d
Ensure transparent hit test region is sized and positioned correctly.
2019-02-06 15:19:03 -05:00
Alan Jeffrey
386c0f80ed
Implemented fullscreen top layer
2019-02-06 13:23:52 -06:00
Simon Sapin
7cf98f6b01
Fix deprecation warnings
2019-01-28 11:32:40 +01:00
Emilio Cobos Álvarez
90c0ec0cf7
Fix servo build and rustfmt recent changes.
...
We need to introduce another Cursor enum that is specific to embedder_traits and
that layout converts to to avoid dependency hell.
2019-01-20 16:31:01 +01:00
Josh Matthews
9f855ae847
Update webrender.
2019-01-17 17:52:35 -05:00
bors-servo
2e439fa7cb
Auto merge of #22396 - jdm:no-spam-iframe-size, r=asajeffrey
...
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 -->
2019-01-14 19:12:59 -05:00
Josh Matthews
49a100ca8b
Suppress iframe size messages from layout that include unchanged sizes.
2019-01-14 18:17:45 -05:00
Anthony Ramine
cf15336a51
Simplify get_cursor
2019-01-14 16:51:28 +01:00
Anthony Ramine
887cc62556
Remove ObjectElement
2019-01-14 16:10:27 +01:00
Anthony Ramine
059c9f4f78
Remove ComputedValueUtils
2019-01-14 16:10:27 +01:00
Anthony Ramine
b9b70445cb
Remove ComputedValuesCursorUtility
2019-01-14 16:10:26 +01:00
Anthony Ramine
9825b85acd
Remove CompletelyEncloses
2019-01-14 16:10:26 +01:00
Anthony Ramine
495a0dd41a
Remove LayoutDamageComputation
2019-01-14 16:10:26 +01:00
Anthony Ramine
aacaf1bd70
Remove FlowConstructionUtils
2019-01-14 16:10:26 +01:00
Anthony Ramine
a92dd09fc9
Remove FlexFlowDisplayListBuilding
2019-01-14 16:10:26 +01:00
Anthony Ramine
21cca5bb53
Kill RgbColor
2019-01-14 16:10:26 +01:00
Anthony Ramine
f75578cbf1
Remove ListItemFlowDisplayListBuilding
2019-01-14 16:10:26 +01:00
Anthony Ramine
7d57c9b3ab
Remove InlineFlowDisplayListBuilding
...
This lets us remove a few call indirections where a function just calls
another function defined in another module.
2019-01-14 16:10:25 +01:00
Anthony Ramine
7a704d2f04
Kill establishes_containing_block_for_absolute
...
We inline the related tests at the two call sites.
2019-01-14 15:46:04 +01:00
Anthony Ramine
6e0a7dc3b2
Remove FragmentDisplayListBuilding
2019-01-14 11:04:39 +01:00
Anthony Ramine
f8c4a87a30
Remove BaseFlowDisplayListBuilding
2019-01-14 10:54:23 +01:00
Anthony Ramine
fc75719ff2
Remove BlockFlowDisplayListBuilding
...
Replaced by inherent methods on BlockFlow, the only implementor of that trait.
2019-01-14 10:37:41 +01:00
Anthony Ramine
3ccda7f90c
Make a bunch of layout queries morally safer
2019-01-09 14:12:54 +01:00
Anthony Ramine
ddef6211b3
Move is_image_data to the layout crate
...
It's only used there.
2019-01-09 13:15:04 +01:00
Emilio Cobos Álvarez
2a6cdaa30a
Rustfmt recent changes.
2019-01-08 12:01:28 +01:00
Emilio Cobos Álvarez
c7f30ad0df
style: Fix servo build.
2019-01-08 12:01:11 +01:00
Emilio Cobos Álvarez
4a31509215
style: Fix servo build.
...
This also fixes a bunch of calc handling issues and such.
Also remove tests that no longer compile and are covered by WPT.
2019-01-08 12:00:42 +01:00
Emilio Cobos Álvarez
97bd8fc280
Fix Servo build.
2019-01-07 00:59:30 +01:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Shotaro Yamada
c44a2febe6
Remove redundant .clone()
s
2018-12-11 10:43:51 +09:00
Josh Matthews
ed74b898a5
Cancel animations that affect nodes that do not participate in layout.
2018-12-10 08:59:17 -05:00
Emilio Cobos Álvarez
c6dfe53483
Fix servo build.
2018-12-02 14:17:29 -05:00
Manish Goregaokar
5413328be2
Update webrender
2018-11-27 17:33:13 -08:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Bastien Orivel
9a7eeb349a
Update crossbeam-channel to 0.3
2018-11-18 19:33:19 +01:00
bors-servo
19b4f35de1
Auto merge of #22167 - emilio:gecko-sync, r=emilio
...
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 -->
2018-11-10 15:43:20 -05:00
Emilio Cobos Álvarez
48ce20b6fe
layout: Fix servo build.
...
TextAlign now implements FromPrimitive instead of an ad-hoc method.
2018-11-10 21:11:47 +01:00
Pyfisch
0e4c4971be
Use GradientBuilder::into_stops
...
Avoid cloning gradient stops.
2018-11-10 12:43:18 +01:00
Josh Matthews
1eee3c73eb
Add a transparent hit-testing rectangle for scrollable block content.
2018-11-09 14:08:46 -05:00
Emilio Cobos Álvarez
2ea4af1171
Fix Servo build.
2018-11-08 15:22:30 +01:00
Simon Sapin
9f977c5287
Remove useless use crate_name;
imports.
...
A `crate_name::foo` path always works in 2018
2018-11-08 09:29:52 +01:00
Simon Sapin
2012be4a8b
cargo fix --edition-idioms
2018-11-08 09:28:00 +01:00
bors-servo
da2d9b2228
Auto merge of #22126 - pyfisch:autoformat, r=jdm
...
Enforce rustfmt on CI
<!-- 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/22126 )
<!-- Reviewable:end -->
2018-11-07 08:47:57 -05:00
bors-servo
618a790050
Auto merge of #22074 - jdm:wrup, r=nox
...
Update webrender.
Fixes #22114 .
<!-- 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/22074 )
<!-- Reviewable:end -->
2018-11-07 00:40:42 -05:00
Josh Matthews
1c5e4b3067
Update webrender to 790b76f1547453615262c3037e1fb04bda22fbc8.
2018-11-06 16:51:58 -05:00