Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staticize CASCADE_PROPERTIES, (temporarily) fix stylo path for animations, and introduce the long-term path to follow #11972

Merged
merged 5 commits into from Jul 3, 2016

Conversation

@emilio
Copy link
Member

emilio commented Jun 30, 2016


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because refactoring + geckolib

@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 Reviewable

Why wasn't this done before?
@highfive
Copy link

highfive commented Jun 30, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/properties.mako.rs, components/style/animation.rs, components/style/properties/data.py
@highfive
Copy link

highfive commented Jun 30, 2016

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!
@bholley
Copy link
Contributor

bholley commented Jul 1, 2016

I don't understand why we introduce need_borrow and then remove it again?

@bholley
Copy link
Contributor

bholley commented Jul 1, 2016

(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)

@emilio
Copy link
Member Author

emilio commented Jul 1, 2016

Yup, I'm doing some changes, sorry for the early review request

@emilio
Copy link
Member Author

emilio commented Jul 1, 2016

Ok, now it should be ready for review.

r? @bholley

emilio added 2 commits Jun 30, 2016
With needs_borrow we will be able to remove this, though we'll have to implement
clone_ and borrow_ methods for a bunch of properties.
@emilio emilio force-pushed the emilio:style-thingies branch from 1a708cd to 8a6d5b9 Jul 1, 2016
<%helpers:longhand name="transition-timing-function" animatable="False">
<%helpers:longhand name="transition-timing-function"
need_index="True"
animatable="False">

This comment has been minimized.

@bholley

bholley Jul 1, 2016

Contributor

Nit - the order here isn't consistent.

</%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.

@bholley

bholley Jul 1, 2016

Contributor

This should be False, not None.

This comment has been minimized.

@emilio

emilio Jul 1, 2016

Author Member

Ack'd

@@ -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.

@bholley

bholley Jul 1, 2016

Contributor

Looks like this is a duplicate of the above - remove it?

This comment has been minimized.

@emilio

emilio Jul 1, 2016

Author Member

Same reason, my fault

<%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.

@bholley

bholley Jul 1, 2016

Contributor

Why are we removing the call to clear_color_flags?

This comment has been minimized.

@emilio

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.

@bholley

bholley Jul 1, 2016

Contributor

Might want to rename this to GeckoStyleCoordConversion, or some potentially-more-idiomatic name that reflects the bidirectional conversion.

@bholley
Copy link
Contributor

bholley commented Jul 1, 2016

r=me with those fixes.

@bors-servo delegate+

@bors-servo
Copy link
Contributor

bors-servo commented Jul 1, 2016

✌️ @emilio can now approve this pull request

@emilio emilio force-pushed the emilio:style-thingies branch from d55ffc3 to 808f5ab Jul 1, 2016
@emilio
Copy link
Member Author

emilio commented Jul 1, 2016

@bors-servo: r=bholley

@bors-servo
Copy link
Contributor

bors-servo commented Jul 1, 2016

📌 Commit 808f5ab has been approved by bholley

@bors-servo
Copy link
Contributor

bors-servo commented Jul 1, 2016

Testing commit 808f5ab with merge 540aeaa...

bors-servo added a commit that referenced this pull request Jul 1, 2016
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
Copy link
Contributor

bors-servo commented Jul 1, 2016

💔 Test failed - mac-rel-css

@emilio emilio force-pushed the emilio:style-thingies branch from 808f5ab to a49a519 Jul 1, 2016
bors-servo added a commit that referenced this pull request Jul 2, 2016
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
Copy link
Contributor

bors-servo commented Jul 2, 2016

💥 Test timed out

@cbrewster
Copy link
Member

cbrewster commented Jul 2, 2016

@bors-servo retry

  • timeout?
@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2016

Testing commit 30963dd with merge bdfad79...

bors-servo added a commit that referenced this pull request Jul 2, 2016
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
Copy link
Contributor

bors-servo commented Jul 2, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Jul 2, 2016

  ▶ FAIL [expected PASS] /css-transforms-1_dev/html/transform-table-007.htm
  └   → /css-transforms-1_dev/html/transform-table-007.htm a5c014b20ef1363bea6f24eda28c7efb7c45698a
/css-transforms-1_dev/html/refe</span><span class="stdout">rence/transform-blank-ref.htm fa6407b1acbbfea27e27061e7d1bdeca98e4a728
Testing a5c014b20ef1363bea6f24eda28c7efb7c45698a == fa6407b1acbbfea27e27061e7d1bdeca98e4a728
@cbrewster
Copy link
Member

cbrewster commented Jul 2, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 2, 2016

Testing commit 30963dd with merge a77cc99...

bors-servo added a commit that referenced this pull request Jul 2, 2016
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
Copy link
Contributor

bors-servo commented Jul 2, 2016

💔 Test failed - linux-rel

@cbrewster
Copy link
Member

cbrewster commented Jul 2, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2016

💔 Test failed - linux-rel

@jdm
Copy link
Member

jdm commented Jul 3, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 3, 2016

@bors-servo bors-servo merged commit 30963dd into servo:master Jul 3, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@emilio emilio deleted the emilio:style-thingies branch Jul 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.