Gecko Backout
b96d96d448
Backed out changeset b10e6ba9cbdb because gecko part had to be backed out. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/17796
2017-07-20 13:42:53 +00:00
bors-servo
7b71070c04
Auto merge of #17796 - heycam:calc-difference, r=emilio
...
style: pass old ComputedValues from Element data into Gecko_CalcStyleDifference
This is the Servo-side part of https://bugzilla.mozilla.org/show_bug.cgi?id=1380133 .
<!-- 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/17796 )
<!-- Reviewable:end -->
2017-07-20 03:39:15 -07:00
bors-servo
f594ae58a6
Auto merge of #17788 - emilio:clean-cascade, r=heycam
...
style: Cleanup the cascade a good bit.
Was about the time.
<!-- 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/17788 )
<!-- Reviewable:end -->
2017-07-20 02:36:15 -07:00
Emilio Cobos Álvarez
e374a54050
style: Cleanup the cascade a good bit.
2017-07-20 11:20:37 +02:00
Cameron McCormack
e12294b00a
style: Update Gecko bindings.
2017-07-20 13:10:11 +08:00
Cameron McCormack
914ba609c0
style: Pass old ComputedValues and old cached struct bits to Gecko_CalcStyleDifference.
2017-07-20 13:10:11 +08:00
Cameron McCormack
25dc352d7c
style: Pass a &ComputedValues (aka ServoStyleContext*) to Gecko_CalcStyleDifference.
2017-07-20 13:10:11 +08:00
Brian Birtles
ea2da6b07b
Update bindings
2017-07-20 13:23:10 +09:00
Hiroyuki Ikezoe
48851135e8
Call may_have_animations() for parent element in the case where the target is pseudo element.
...
In case of pseudo elements ElementHasAnimations is set on the parent element.
updating-animation-on-pseudo-element.html fails without this patch, succeeds
with this patch.
2017-07-20 12:52:12 +09:00
Michael Partheil
b07ebbae6b
Replace all uses of the style::stylearc alias with servo_arc.
...
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).
2017-07-19 09:29:05 +02:00
Emilio Cobos Álvarez
c482754658
style: Update bindings.
2017-07-18 17:36:01 +02:00
Emilio Cobos Álvarez
07e1c6e75a
stylo: Cleanup the Gecko bits.
...
MozReview-Commit-ID: dbVDy1u4vp
2017-07-18 17:35:44 +02:00
Emilio Cobos Álvarez
6b8649e012
stylo: Fix PseudoElement::pseudo_type.
...
MozReview-Commit-ID: DH2Pv52ankl
2017-07-18 17:34:42 +02:00
Hiroyuki Ikezoe
18cd7391fb
Update bindings.
2017-07-18 20:44:31 +09:00
Xidorn Quan
bae59d4520
Adjust display value for ::-moz-fieldset-content when parent is flex/grid.
2017-07-18 14:13:12 +10:00
Manish Goregaokar
8eafe6a3b7
Fix tidy
2017-07-17 19:43:57 -07:00
Manish Goregaokar
c33fa3effa
Update bindings
2017-07-17 18:41:47 -07:00
Manish Goregaokar
b280585cbb
stylo: Clean up GetContext, call it UpdateWithElementState
2017-07-17 18:05:08 -07:00
Manish Goregaokar
2a49a73f91
stylo: Stop using mStyleIfVisited in Servo
2017-07-17 18:04:46 -07:00
Manish Goregaokar
e78947f8b5
stylo: Remove FFI calls for fetching style structs from ServoComputedValues
2017-07-17 18:04:24 -07:00
Manish Goregaokar
ff4bc5a2c6
stylo: Flatten ServoComputedValues into ServoStyleContext
...
This patch also removes the duplication of style contexts during the
restyle, because otherwise pointer equality of ServoComputedValues stops
holding (and we assert on that in a few places)
2017-07-17 18:04:01 -07:00
Manish Goregaokar
cfad95bff0
stylo: Use ServoStyleContext in ServoStyleSet/ServoRestyleManager
2017-07-17 18:03:41 -07:00
Manish Goregaokar
89930e7565
stylo: Switch Gecko over to ServoStyleContext
2017-07-17 18:03:23 -07:00
Manish Goregaokar
74519cc1a7
stylo: Make Servo Arc types use ptr to T instead of ptr to ArcInner<T>
2017-07-17 18:03:09 -07:00
Manish Goregaokar
808b1f509b
stylo: Use ComputedValuesInner instead of ComputedValues when we don't need it
2017-07-17 18:02:25 -07:00
Manish Goregaokar
04b0ae64f2
stylo: Introduce ComputedValuesInner
2017-07-17 18:01:36 -07:00
Manish Goregaokar
5d78743037
stylo: Replace real ComputedValues with bindgenned ComputedValues2
2017-07-17 18:01:20 -07:00
Manish Goregaokar
d52f04d105
stylo: Use RawOffsetArc in ComputedValues
2017-07-17 18:01:01 -07:00
Manish Goregaokar
4c5cc89f39
stylo: Create C++-side ServoComputedValues
2017-07-17 18:00:31 -07:00
Manish Goregaokar
3343c829ca
Update bindings
2017-07-17 18:00:16 -07:00
Emilio Cobos Álvarez
f5bddd1465
style: Update bindings.
2017-07-17 22:51:18 +02:00
Emilio Cobos Álvarez
c606ec13e2
Bug 1377993: Make node slots less memory hungry in common cases.
2017-07-17 22:48:11 +02:00
bors-servo
2d37700cf8
Auto merge of #17731 - emilio:percentage-calc, r=nox
...
style: Respect calc for percentages.
<!-- 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/17731 )
<!-- Reviewable:end -->
2017-07-17 01:29:11 -07:00
Bobby Holley
b7de96e702
Pass a callback to recalc_style_at to avoid traversing children twice.
...
MozReview-Commit-ID: DIHXaVNzbFM
2017-07-15 14:45:51 -07:00
Emilio Cobos Álvarez
bf9369b29d
script: Move the layout_wrapper outside of script.
...
This allows us to have ensure_data() and clear_data() functions on the TElement
trait, instead of hacking around it adding methods in random traits.
This also allows us to do some further cleanup, which I'd rather do in a
followup.
2017-07-15 16:41:12 +02:00
Hiroyuki Ikezoe
0053efb154
Update bindings.
2017-07-15 11:54:43 +09:00
Jonathan Chan
c6a7f10182
Sync Servo / Gecko image-orientation rounding; pass as enum.
...
Make Servo's rounding of image-orientation values agree with Gecko's,
and pass orientations directly as an enum instead of as angles.
Depends on a Gecko change to be subsequently landed in m-c.
2017-07-14 14:44:23 -07:00
Emilio Cobos Álvarez
310be02ba8
style: Respect calc for percentages.
2017-07-14 13:43:27 +02:00
Cameron McCormack
69b839f22e
style: Update Gecko bindings.
2017-07-14 14:20:41 +08:00
Xidorn Quan
1362ba5f3c
Update binding file.
2017-07-14 10:54:00 +10:00
Xidorn Quan
5270b766c1
Skip parent-display-based display type fixup for all anonymous boxes.
2017-07-14 10:53:38 +10:00
Fernando Jiménez Moreno
6ae4bf6ee8
Implement serialization of linear-gradient the same ways as in Gecko
2017-07-13 12:20:30 +02:00
bors-servo
f9fad3d959
Auto merge of #17662 - servo:derive-all-the-things, r=emilio,SimonSapin
...
Improve derivation of ToCss again
<!-- 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/17662 )
<!-- Reviewable:end -->
2017-07-12 04:56:31 -07:00
bors-servo
ce52c16a8f
Auto merge of #17687 - upsuper:tree-pseudo, r=heycam
...
Support parsing ::-moz-tree-* pseudo-elements selector
This is the Servo side change of [bug 1348488](https://bugzilla.mozilla.org/show_bug.cgi?id=1348488 ).
<!-- 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/17687 )
<!-- Reviewable:end -->
2017-07-12 03:35:37 -07:00
Xidorn Quan
97b2b95f99
Update generated files.
2017-07-12 20:33:15 +10:00
Xidorn Quan
a307653581
Implement parsing of tree pseudo-elements.
2017-07-12 20:33:11 +10:00
Anthony Ramine
7bc9a95b46
Rename MinMax to Minmax
2017-07-12 11:45:17 +02:00
Anthony Ramine
907d629ca4
Rename ImageRect to MozImageRect
2017-07-12 11:45:15 +02:00
Emilio Cobos Álvarez
e24d81dbe7
stylo: Update bindings.
2017-07-12 09:27:00 +02:00
Xidorn Quan
832c4c4079
Add pseudo_element_variant helper function to simplify some code.
2017-07-12 15:07:30 +10:00