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

style: Compute and store SVG unitless length as a factor number #17053

Merged
merged 1 commit into from May 26, 2017

Conversation

@chenpighead
Copy link
Contributor

chenpighead commented May 26, 2017

There are 3 SVG properties that accept SVG unitless length, stroke-width, stroke-dasharray, and stroke-dashoffset. We compute and store SVG unitless length as a factor number for stroke-dasharray, but not for stroke-width and stroke-dashoffset.

Servo-side changes from [bug 1367327] https://bugzilla.mozilla.org/show_bug.cgi?id=1367327.


This change is Reviewable

@highfive
Copy link

highfive commented May 26, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/properties/gecko.mako.rs, components/style/properties/longhand/inherited_svg.mako.rs
  • @emilio: components/style/properties/gecko.mako.rs, components/style/properties/longhand/inherited_svg.mako.rs
@highfive
Copy link

highfive commented May 26, 2017

warning Warning warning

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

chenpighead commented May 26, 2017

r? @heycam

@highfive highfive assigned heycam and unassigned cbrewster May 26, 2017
@heycam
Copy link
Member

heycam commented May 26, 2017

@bors-servo delegate+

@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

✌️ @chenpighead can now approve this pull request

@chenpighead
Copy link
Contributor Author

chenpighead commented May 26, 2017

@bors-servo r=heycam

@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

📌 Commit 800433a has been approved by heycam

@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

Testing commit 800433a with merge 7912c9484f5a487081c898da799e5cfad993031b...

@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

💔 Test failed - arm32

@chenpighead
Copy link
Contributor Author

chenpighead commented May 26, 2017

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

Testing commit 800433a with merge 7682de4...

bors-servo added a commit that referenced this pull request May 26, 2017
style: Compute and store SVG unitless length as a factor number

There are 3 SVG properties that accept SVG unitless length, stroke-width, stroke-dasharray, and stroke-dashoffset. We compute and store SVG unitless length as a factor number for stroke-dasharray, but not for stroke-width and stroke-dashoffset.

Servo-side changes from [bug 1367327] https://bugzilla.mozilla.org/show_bug.cgi?id=1367327.

<!-- 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/17053)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 26, 2017

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: heycam
Pushing 7682de4 to master...

@bors-servo bors-servo merged commit 800433a into servo:master May 26, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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

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