Skip to content

Cleanups in autoarray helper - #12458

Merged
bors-servo merged 4 commits into
servo:masterfrom
Manishearth:style-gecko-only
Jul 16, 2016
Merged

bors-servo merged 4 commits into
servo:masterfrom
Manishearth:style-gecko-only

Conversation

@Manishearth

@Manishearth Manishearth commented Jul 15, 2016 •

Copy link
Copy Markdown
Member

Addresses @emilio's comments from #11851

  • Replace gecko_autoarray_longhand with vector_longhand, make it configurable
  • Allow for empty vectors, use empty vector longhand in box-shadow

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/longhand/background.mako.rs, components/style/properties/helpers.mako.rs, components/style/properties/longhand/effects.mako.rs, components/style/properties/helpers/animated_properties.mako.rs

@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify style code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 15, 2016
@Manishearth

Copy link
Copy Markdown
Member Author

@bors-servo try

bors-servo pushed a commit that referenced this pull request Jul 15, 2016
Cleanups in autoarray helper

Addresses @emilio's comments from #11851

- Replace gecko_autoarray_longhand with vector_longhand, make it configurable
- Allow for empty vectors, use empty vector longhand in box-shadow

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12458)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit a37eb82 with merge 4a3cb31...

@Manishearth

Copy link
Copy Markdown
Member Author

r? @emilio

@highfive highfive assigned emilio and unassigned SimonSapin Jul 15, 2016
@emilio

emilio commented Jul 15, 2016

Copy link
Copy Markdown
Member

r=me with those panics added or at least an error!.

-S-awaiting-review +S-needs-code-changes


Reviewed 2 of 2 files at r1, 1 of 3 files at r3.
Review status: 2 of 4 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.


components/style/properties/helpers.mako.rs, line 78 [r3] (raw file):

                        % if allow_empty:
                            try!(dest.write_str("none"));
                        % endif

Should we panic! here or something in the allow_empty=False case?


components/style/properties/helpers.mako.rs, line 100 [r3] (raw file):

                        % if allow_empty:
                            try!(dest.write_str("none"));
                        % endif

ditto.


Comments from Reviewable

@emilio emilio added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 15, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💥 Test timed out

@Manishearth

Copy link
Copy Markdown
Member Author

@bors-servo retry

  • wat

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit a37eb82 with merge 7dbe6bd...

bors-servo pushed a commit that referenced this pull request Jul 16, 2016
Cleanups in autoarray helper

Addresses @emilio's comments from #11851

- Replace gecko_autoarray_longhand with vector_longhand, make it configurable
- Allow for empty vectors, use empty vector longhand in box-shadow

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12458)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jul 16, 2016
@Manishearth

Copy link
Copy Markdown
Member Author

@bors-servo r=emilio

Used error.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit e218280 has been approved by emilio

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 16, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit e218280 with merge a8a6d83...

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 16, 2016
bors-servo pushed a commit that referenced this pull request Jul 16, 2016
Cleanups in autoarray helper

Addresses @emilio's comments from #11851

- Replace gecko_autoarray_longhand with vector_longhand, make it configurable
- Allow for empty vectors, use empty vector longhand in box-shadow

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12458)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows

@bors-servo
bors-servo merged commit e218280 into servo:master Jul 16, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 16, 2016
@Manishearth
Manishearth deleted the style-gecko-only branch July 16, 2016 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants