Skip to content
Permalink
Browse files

Implement Rule Hash for Selector Matching.

+ Add index fields in Rule for parent StyleRule and parent Stylesheet to break
  ties while cascading.
  Sorting by (specificity, stylesheet index, rule index) removes the need to use stable sorts.
  • Loading branch information...
pradeep90 authored and pcwalton committed Oct 31, 2013
1 parent cbd34bc commit c4903298a440598277a335dfa617ced39dfac446
Showing with 322 additions and 53 deletions.
  1. +307 −50 src/components/style/selector_matching.rs
  2. +13 −3 src/components/style/selectors.rs
  3. +2 −0 src/components/style/stylesheets.rs
Oops, something went wrong.

0 comments on commit c490329

Please sign in to comment.
You can’t perform that action at this time.