diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-21 16:54:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-21 16:54:34 -0500 |
commit | 1e0321f7dde5f33f7d26bbd4f088622fa3660477 (patch) | |
tree | 701f23bf14569e4f89d0e2eef745317e639665f4 /python/tidy/servo_tidy_tests | |
parent | f8eab2b1658e687de03d58beb5b87fd0719509ef (diff) | |
parent | f44e31aa58bcfd8554cfc60880943e52b3b43abc (diff) | |
download | servo-1e0321f7dde5f33f7d26bbd4f088622fa3660477.tar.gz servo-1e0321f7dde5f33f7d26bbd4f088622fa3660477.zip |
Auto merge of #12469 - emilio:stylo, r=bholley
style: Rewrite the restyle hints code to allow different kinds of element snapshots.
<!-- 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
<!-- Either: -->
- [x] These changes do not require tests because refactoring.
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This is a rewrite for how style interfaces with its consumers in order to allow
different representations for an element snapshot.
This also changes the requirements of an element snapshot, requiring them to
only implement MatchAttr, instead of MatchAttrGeneric. This is important for
stylo since implementing MatchAttrGeneric is way more difficult for us given the
atom limitations. This also allows for more performant implementations in the
Gecko side of things.
I don't want to get this merged just yet, mainly because the stylo part is not
implemented, but I'd like early feedback from @bholley and/or @heycam: How do
you see this approach? I don't think we'll have much problem to implement
MatchAttr for our element snapshots, but... worth checking.
r? @heycam
<!-- 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/12469)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy/servo_tidy_tests')
0 files changed, 0 insertions, 0 deletions