Skip to content

Commit

Permalink
servo: Merge #12263 - Make geckolib possible to build on stable Rust …
Browse files Browse the repository at this point in the history
…(from servo:stable-geckolib); r=nox

<!-- Please describe your changes on the following line: -->

More for servo/servo#11815

r? nox

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d557b6f25eb9dbd084cb53bbc9a9cf93bad825b

UltraBlame original commit: 0563b21dfecef0e2f3f04f56f4f108a5dcbe85ec
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 21bb7cd commit 3e3bba0
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 12 deletions.
84 changes: 84 additions & 0 deletions servo/components/style/keyframes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,22 @@ Copy
Clone
PartialEq
PartialOrd
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down Expand Up @@ -318,8 +332,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down Expand Up @@ -385,8 +413,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down Expand Up @@ -537,8 +579,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
enum
Expand All @@ -563,8 +619,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down Expand Up @@ -618,8 +688,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down
14 changes: 14 additions & 0 deletions servo/components/style/properties/helpers.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1575,8 +1575,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,22 @@ Copy
Clone
Debug
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
enum
Expand Down Expand Up @@ -753,8 +767,22 @@ derive
Clone
Debug
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
enum
Expand Down
42 changes: 42 additions & 0 deletions servo/components/style/properties/longhand/box.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4504,8 +4504,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down Expand Up @@ -4958,8 +4972,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
enum
Expand Down Expand Up @@ -5051,8 +5079,22 @@ derive
Debug
Clone
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
Expand Down
16 changes: 15 additions & 1 deletion servo/components/style/stylesheets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,24 @@ KeyframesRule
derive
(
Debug
HeapSizeOf
PartialEq
)
]
#
[
cfg_attr
(
feature
=
"
servo
"
derive
(
HeapSizeOf
)
)
]
pub
struct
KeyframesRule
Expand Down
16 changes: 5 additions & 11 deletions servo/ports/geckolib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ servo_features
heapsize
"
"
selectors
/
unstable
"
"
style
/
servo
Expand Down Expand Up @@ -255,22 +260,11 @@ num_cpus
"
selectors
=
{
version
=
"
0
.
6
"
features
=
[
"
unstable
"
]
}
smallvec
=
"
Expand Down

0 comments on commit 3e3bba0

Please sign in to comment.