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 upSupport z-index in geckolib #11176
Support z-index in geckolib #11176
Conversation
highfive
commented
May 13, 2016
| unsafe { *self.gecko.mZIndex.mValue.mInt.as_mut() = 0; } | ||
| } | ||
| longhands::z_index::computed_value::T::Number(n) => { | ||
| self.gecko.mZIndex.mUnit = nsStyleUnit::eStyleUnit_None; |
This comment has been minimized.
This comment has been minimized.
| fn set_z_index(&mut self, v: longhands::z_index::computed_value::T) { | ||
| use gecko_bindings::structs::nsStyleUnit; | ||
| match v { | ||
| longhands::z_index::computed_value::T::Auto => { |
This comment has been minimized.
This comment has been minimized.
|
r=me with those fixes. @heycam should give it a quick lookover, but no need to block landing on that. |
highfive
commented
May 13, 2016
|
New code was committed to pull request. |
|
@bors-servo r=bholley |
|
|
Support z-index in geckolib r? @bholley cc @heycam <!-- 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/11176) <!-- Reviewable:end -->
|
|
highfive
commented
May 13, 2016
|
|
@bors-servo retry |
|
|
|
|
|
LGTM. When we come to implement column-count in geckolib, we might want to factor out the handling of z-index and column-count into a new IntegerOrAutoOrNone type to avoid some duplication in components/style/properties/longhand/ and also so that we can handle this named value type in ports/geckolib/properties.mako.rs (by adding a ToGeckoStyleCoord impl for it). |
mbrubeck commentedMay 13, 2016
•
edited by larsbergstrom
r? @bholley
cc @heycam
This change is