Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upStaticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow #11972
Conversation
Why wasn't this done before?
highfive
commented
Jun 30, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 30, 2016
|
I don't understand why we introduce need_borrow and then remove it again? |
|
(the reason I did clone instead of borrow is that borrowing will almost never be possible from geckolib, because we need to convert the types) |
|
Yup, I'm doing some changes, sorry for the early review request |
|
Ok, now it should be ready for review. r? @bholley |
| <%helpers:longhand name="transition-timing-function" animatable="False"> | ||
| <%helpers:longhand name="transition-timing-function" | ||
| need_index="True" | ||
| animatable="False"> |
This comment has been minimized.
This comment has been minimized.
| </%def> | ||
|
|
||
| <%def name="impl_color(ident, gecko_ffi_name, color_flags_ffi_name=None)"> | ||
| <%def name="impl_color(ident, gecko_ffi_name, color_flags_ffi_name=None, need_clone=None)"> |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -245,15 +246,42 @@ def set_gecko_property(ffi_name, expr): | |||
| } | |||
| </%def> | |||
|
|
|||
| <%def name="impl_color_setter(ident, gecko_ffi_name, color_flags_ffi_name=None)"> | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| <%def name="impl_color_copy(ident, gecko_ffi_name, color_flags_ffi_name=None)"> | ||
| fn copy_${ident}_from(&mut self, other: &Self) { | ||
| % if color_flags_ffi_name: | ||
| ${clear_color_flags(color_flags_ffi_name)} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
emilio
Jul 1, 2016
Author
Member
Whoops, good catch. At one point I wrote another version of these functions, but then backed it out, and this seems that it got lost in the meantime.
| } | ||
|
|
||
| pub trait ToGeckoStyleCoord { | ||
| pub trait ToGeckoStyleCoord : Sized { |
This comment has been minimized.
This comment has been minimized.
bholley
Jul 1, 2016
Contributor
Might want to rename this to GeckoStyleCoordConversion, or some potentially-more-idiomatic name that reflects the bidirectional conversion.
|
r=me with those fixes. @bors-servo delegate+ |
|
|
|
@bors-servo: r=bholley |
|
|
Staticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [x] These changes do not require tests because refactoring + geckolib <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> @bholley: I was going to do this "the good way", but that involves quite a few properties, so I thought I'd rather unlock stylo before :) r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11972) <!-- Reviewable:end -->
|
|
Staticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [x] These changes do not require tests because refactoring + geckolib <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> @bholley: I was going to do this "the good way", but that involves quite a few properties, so I thought I'd rather unlock stylo before :) r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11972) <!-- Reviewable:end -->
|
|
|
@bors-servo retry
|
Staticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [x] These changes do not require tests because refactoring + geckolib <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> @bholley: I was going to do this "the good way", but that involves quite a few properties, so I thought I'd rather unlock stylo before :) r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11972) <!-- Reviewable:end -->
|
|
highfive
commented
Jul 2, 2016
|
|
@bors-servo retry |
Staticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow <!-- Please describe your changes on the following line: --> --- <!-- 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 <!-- Either: --> - [x] These changes do not require tests because refactoring + geckolib <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> @bholley: I was going to do this "the good way", but that involves quite a few properties, so I thought I'd rather unlock stylo before :) r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11972) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo: retry |
|
|
|
|
emilio commentedJun 30, 2016
•
edited by larsbergstrom
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors@bholley: I was going to do this "the good way", but that involves quite a few properties, so I thought I'd rather unlock stylo before :)
r? @bholley
This change is