Re: [dev-servo] Selector matching in Rust

2013-06-28 Thread Boris Zbarsky
On 6/28/13 4:58 PM, Simon Sapin wrote: * Different rules can use the same selector. Map unique selectors each to a list of rules, so that identical selectors do not need to be matched more than once. That's an interesting idea; it's worth measuring how often this is useful in practice *

[dev-servo] Selector matching in Rust

2013-06-28 Thread Simon Sapin
Hi, With my CSS parser being mostly complete, the next part to replacing NetSurf’s LibCSS in Servo is selector matching. Part of that is doing it in a way that can meet our performance requirements. I’ve been going through Gecko’s nsCSSRuleProcessor.cpp source code and the Fast and Parallel