RESOLVED INVALID 72482
<style scoped>: rename matchRules() to matchRulesGlobally() to indicate that no scope is used
https://bugs.webkit.org/show_bug.cgi?id=72482
Summary <style scoped>: rename matchRules() to matchRulesGlobally() to indicate that ...
Roland Steiner
Reported 2011-11-16 02:11:02 PST
The implementation of style scoped passes the scope to be used for selector matching into the matching functions. matchRules() does not use a scope, so should be renamed to indicate this.
Attachments
Patch (6.73 KB, patch)
2011-11-16 02:13 PST, Roland Steiner
no flags
patch, matchRulesInGlobalScope (6.79 KB, patch)
2011-11-16 20:56 PST, Roland Steiner
koivisto: review-
koivisto: commit-queue-
Roland Steiner
Comment 1 2011-11-16 02:13:23 PST
Antti Koivisto
Comment 2 2011-11-16 06:12:26 PST
Comment on attachment 115350 [details] Patch I suprised scoped matching would use a different matching function on this level. Why? (please cc me to all these)
Alexey Proskuryakov
Comment 3 2011-11-16 14:23:22 PST
This feels like a name that could be confusing when you are not actively working on scoped stye code. Perhaps "...InGlobalScope" would be more clear?
Roland Steiner
Comment 4 2011-11-16 20:56:34 PST
Created attachment 115516 [details] patch, matchRulesInGlobalScope I like matchRulesInGlobalScope()! New patch with this name uploaded.
Roland Steiner
Comment 5 2011-11-16 21:00:51 PST
(In reply to comment #2) > (From update of attachment 115350 [details]) > I suprised scoped matching would use a different matching function on this level. Why? (please cc me to all these) matching Author rules will be done both globally and scoped, while other rules are matched globally only. With the rules themselves not carrying the scope, I feel the function name should make it explicit that no scoping will take place.
Antti Koivisto
Comment 6 2011-11-21 11:30:08 PST
Comment on attachment 115516 [details] patch, matchRulesInGlobalScope I added some comments to bug 67720. I'd like to see a more narrowly focused full patch before doing any code changes for this feature.
Roland Steiner
Comment 7 2011-11-27 23:42:52 PST
It's probably better to do the renaming after the functionality has landed, to avoid confusion. Marking this as invalid for now.
Note You need to log in before you can comment on or make changes to this bug.