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

Make the order of rules in DevTools be the specificity order. #18337

Conversation

@kuoe0
Copy link
Contributor

kuoe0 commented Sep 1, 2017

We insert rules with any important declaration into rule tree twice,
one for the normal level and another for the important level. And
when we fetch them from rule tree, we skip the important one to
make the order be the specificity order.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix Bug 1391198
  • There are tests for these changes OR
  • These changes do not require tests because test cases already in gecko

This change is Reviewable

…order.

We insert rules with any important declaration into rule tree twice,
one for normal level and another for important level. And when we fetch
them from rule tree, we skip the important one to make the order be

MozReview-Commit-ID: HewZG6jYVvv
@highfive
Copy link

highfive commented Sep 1, 2017

Heads up! This PR modifies the following files:

  • @bholley: components/style/rule_tree/mod.rs
  • @canaltinova: components/style/rule_tree/mod.rs
  • @emilio: ports/geckolib/glue.rs, components/style/rule_tree/mod.rs
@highfive
Copy link

highfive commented Sep 1, 2017

warning Warning warning

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

heycam commented Sep 1, 2017

@bors-servo delegate+

@bors-servo
Copy link
Contributor

bors-servo commented Sep 1, 2017

✌️ @kuoe0 can now approve this pull request

@kuoe0
Copy link
Contributor Author

kuoe0 commented Sep 1, 2017

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Sep 1, 2017

📌 Commit 1bacd01 has been approved by emilio

@highfive highfive assigned emilio and unassigned cbrewster Sep 1, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Sep 1, 2017

Testing commit 1bacd01 with merge a38045a29ac1a793e894fb445396a8375f94eae0...

@bors-servo
Copy link
Contributor

bors-servo commented Sep 1, 2017

💔 Test failed - mac-rel-wpt1

@heycam
Copy link
Member

heycam commented Sep 1, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Sep 1, 2017

Testing commit 1bacd01 with merge af52f53...

bors-servo added a commit that referenced this pull request Sep 1, 2017
…he-specificity-order, r=emilio

Make the order of rules in DevTools be the specificity order.

We insert rules with any important declaration into rule tree twice,
one for the normal level and another for the important level. And
when we fetch them from rule tree, we skip the important one to
make the order be the specificity order.

<!-- 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
- [X] These changes fix [Bug 1391198](https://bugzilla.mozilla.org/show_bug.cgi?id=1391198)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because test cases already in gecko

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

bors-servo commented Sep 1, 2017

@bors-servo bors-servo merged commit 1bacd01 into servo:master Sep 1, 2017
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
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

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