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 upImplement asymmetric border colors #689
Conversation
|
This is great. I have two suggestions:
|
| @@ -7,6 +7,13 @@ use AzColor = azure::azure_hl::Color; | |||
|
|
|||
| pub type Color = AzColor; | |||
|
|
|||
| pub struct Colors{ | |||
This comment has been minimized.
This comment has been minimized.
| @@ -14,7 +14,7 @@ | |||
| /// They are therefore not exactly analogous to constructs like Skia pictures, which consist of | |||
| /// low-level drawing primitives. | |||
|
|
|||
| use color::Color; | |||
| use color::{Color,Colors}; | |||
This comment has been minimized.
This comment has been minimized.
| @@ -640,7 +641,12 @@ impl RenderBox { | |||
| extra: ExtraDisplayListData::new(*self), | |||
| }, | |||
| border: debug_border, | |||
| color: rgb(0, 0, 200).to_gfx_color(), | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
sammykim
Aug 8, 2013
Author
Contributor
I can't merge them to debug_color as same as debug_border.
Becuase their values are not same.
| @@ -907,6 +924,9 @@ impl RenderBox { | |||
|
|
|||
| // FIXME: all colors set to top color. this is obviously not right. | |||
This comment has been minimized.
This comment has been minimized.
| @@ -907,6 +924,9 @@ impl RenderBox { | |||
|
|
|||
| // FIXME: all colors set to top color. this is obviously not right. | |||
| let top_color = self.style().border_top_color(); | |||
| let bottom_color = self.style().border_bottom_color(); | |||
| let left_color = self.style().border_left_color(); | |||
| let right_color = self.style().border_right_color(); | |||
| let color = top_color.to_gfx_color(); | |||
This comment has been minimized.
This comment has been minimized.
|
@metajack I tried to use |
|
I sent servo/euclid#12. |
|
servo/euclid#12 is now merged so you can finish the conversion. |
|
To implement new_all_same, the type needs to implement Clone, so that requires another submodule changes. :( Please be patient, since I will be on a vacation in the next week. |
|
Those are both merged. You can now update this PR. |
|
r? @metajack |
This comment has been minimized.
This comment has been minimized.
metajack
commented on 858cd07
Aug 20, 2013
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from metajack |
This comment has been minimized.
This comment has been minimized.
|
merging sammykim/servo/Border-Color = 858cd07 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = e86b8e1 |
858cd07
into
servo:master
Test the steps for pausing a media element when removing from a document
wrench: Cleanup unstride() This switches to using an iterator and factors out the saving. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/689) <!-- Reviewable:end -->
sammykim commentedAug 8, 2013
No description provided.