DescriptionRefactor matched rule ranges.
For matched CSS rules we need to know where the UA rules end and the
author rules begin. This CL simplifies this by having a single index for
the last UA rule. -1 means there are no UA rules, otherwise it's the
index of the last UA rule in the array. Convenience methods are added to
return the first/last rule indices for UA and author rules.
The rule ranges used to be updated for every added rule. Now, just update
the last UA rule index when sorting and transferring UA rules. That means
we don't have to pass the ranges as parameters anymore.
R=timloh@chromium.org,esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196036
Patch Set 1 #
Total comments: 1
Messages
Total messages: 7 (1 generated)
|