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 PropertyDeclarationBlock store a single vector of declarations #3869

Closed
wants to merge 2 commits into from

Conversation

@gilles-leblanc
Copy link
Contributor

gilles-leblanc commented Nov 2, 2014

Changes PropertyDeclarationBlock to store a single vector instead of the
current two vectors; normal, important.

Fixes #3426

Changes PropertyDeclarationBlock to store a single vector instead of the
current two vectors; normal, important.

Fixes #3426
@hoppipolla-critic-bot
Copy link

hoppipolla-critic-bot commented Nov 2, 2014

Critic review: https://critic.hoppipolla.co.uk/r/3055

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@@ -486,16 +457,14 @@ impl Stylist {
}

struct PerOriginSelectorMap {

This comment has been minimized.

@cgaebel

cgaebel Nov 4, 2014

Contributor

I think this struct is useless now.

This comment has been minimized.

@gilles-leblanc

gilles-leblanc Nov 4, 2014

Author Contributor

Yeah makes sense. It should probably be deleted.

I'll add it to the list of things to modify on this pull request.

This comment has been minimized.

@SimonSapin

SimonSapin Nov 6, 2014

Member

@cgaebel, please use Critic :)

@SimonSapin
Copy link
Member

SimonSapin commented Nov 6, 2014

Reviewed on Critic. Please see https://critic.hoppipolla.co.uk/showcomment?chain=8473 in particular.

@gilles-leblanc
Copy link
Contributor Author

gilles-leblanc commented Nov 13, 2014

@SimonSapin I've made another commit which corrects the The listandseenvariables are not needed anymore. Please remove them and use&mut foo inline. problem and also @cgaebel suggestion to remove PerOriginSelectorMap.

I haven't found what to do for This is incorrect, we need to preserve the order of (origin, importance).

Since the applicable_declarations are VecLike<DeclarationBlock> all I can see is implementing some form of iterator on VecLike.

If you can think of something I could implement I will wait your suggestion, if you would rather take it from now (as suggested in OperaCritic) that might also be a good idea since my time is severely limited for the next week and won't be able to put much time on this until next week.

Implementing an iterator has got me thinking will iterating and filtering the fields incur a (even if small) performance cost? I remember reading that the selector_matching was somewhere performance needed to be good.

@jdm
Copy link
Member

jdm commented Dec 11, 2014

@SimonSapin Is this something you're working on? Is it worth leaving this pull request open?

@SimonSapin
Copy link
Member

SimonSapin commented Dec 11, 2014

It is in my queue but not at the top and I haven’t started yet. I don’t mind closing the PR (I just copied the branch) but is there a downside with leaving it open?

@metajack
Copy link
Contributor

metajack commented Dec 22, 2014

I'm closing this as it is breaking bors. Apparently the original repo no longer exists.

@metajack metajack closed this Dec 22, 2014
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.

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