Anthony Ramine
cf15336a51
Simplify get_cursor
2019-01-14 16:51:28 +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
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
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
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
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
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
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Pyfisch
93abe795c6
Directly build WebRender LineDisplayItem
...
Remove unused SimpleMatrixDetection.
2018-10-28 22:23:36 +01:00
Pyfisch
d9b1950d74
Layout: Remove redundant deny unsafe and format
...
Add license to two files.
Bypass DisplayListBuilder for some items.
2018-10-22 16:15:48 +02:00
Pyfisch
2ff330a5c9
Split layout/background.rs file
...
Have background, border and gradient modules
for calculation functions.
Use shorter names for functions that are qualified
by the module name like `border::radii`.
Use push_item and push_iter to add items to WebRender.
2018-10-22 16:15:46 +02:00
Emilio Cobos Álvarez
856886c40d
Fix Servo build.
2018-10-19 01:01:27 +02:00
Josh Matthews
171469c27c
Update webrender to 923ee495bd9b0fda8a4a94c5a6cf42e2f0548731.
2018-10-09 18:23:19 -04:00
Pyfisch
d13172845c
Update Webrender
...
New version is
9156a4465f6ad715a0206cdd9a7e9a6f0385fbd6
2018-10-09 18:23:18 -04:00
Fernando Jiménez Moreno
8c40ef459b
Do not share entire FrameRenderer with layout, only current frame
2018-10-08 16:12:01 +02:00
Víctor Manuel Jáquez Leal
006bef5eb5
layout: set building information for media fragment
2018-10-08 16:12:01 +02:00
Pyfisch
60d0c8cd76
Layout: stylistic changes
...
Additionally if an image border can't be displayed show solid border.
Introduce build_display_list_for_border_image to display border images.
2018-09-28 22:33:02 +02:00
Pyfisch
fabb70f874
Improve border images
...
Respect CSS border-image-width.
Properly support gradients as a border-image-source.
Only emit a border item if the border-width is non-zero
for simple borders but still emit one if the item is
an image as paint worklet that are not drawn cause servo
to hang and fail tests.
Add a new test and mark 4 more as passing.
2018-09-15 09:48:03 +02:00
Pyfisch
349047b096
Rustfmt layout crate
2018-09-01 13:24:57 +02:00
Pyfisch
1c438ed82c
Do not emit DL items for zero images
...
Fixes wpt test failure.
2018-08-16 12:41:37 +02:00
Pyfisch
9e971f9d8f
Replace Servo DL items with WR ones
...
The Servo internal display list items are already pretty much
equivalent to the WebRender ones. Except that Servo items contain
base information and associated glyphs and gradient stops which are
stored implicitly in WebRender. Remove the display items for
rectangles, text, images, border, gradients and box shadow and
replace them with their WebRender counter parts.
2018-08-06 19:47:00 +02:00
Bastien Orivel
9e446971a8
Update euclid to 0.18
2018-07-18 09:27:24 +02:00
Glenn Watson
1881a06c40
Updates for WR gradient API change.
2018-07-16 10:57:10 +10:00
Emilio Cobos Álvarez
719209316c
Fix servo build.
2018-07-01 00:54:30 +02:00
bors-servo
e2fca1b228
Auto merge of #20892 - gw3583:update-wr, r=mbrubeck
...
Update WR (transaction API change)
<!-- 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/20892 )
<!-- Reviewable:end -->
2018-06-26 17:27:31 -04:00
Martin Robinson
7d672555be
Give stacking contexts the right reference frame id
...
Stacking contexts that create reference frames should be created with
the positioning node set to the reference frames that surround them.
2018-06-25 07:35:26 +10:00
Martin Robinson
253117ece6
New reference frames should create containing blocks
...
Transforms should always create containing blocks. This bug already
existed in Servo, but was covered up by the reference frame id
replacement feature in WebRender. Now that we create reference frames
manually we need to fix it.
2018-06-25 07:35:19 +10:00
Martin Robinson
d41c512e98
Allow inline elements to create reference frames
...
This is important so that transforms applied to elements actually apply
to the display items created for those elements.
2018-06-25 07:35:10 +10:00
Emilio Cobos Álvarez
895946bb18
layout: script: Fix build.
2018-06-23 20:34:10 +02:00
Martin Robinson
01c0e2aba0
Changes for separate reference frame PR ( #2756 )
2018-06-20 09:43:51 +10:00