mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This now means that using a class/id/attribute selector in one scope will not cause style recalcs in other scopes in the page when something with that feature changes. It also removes an iteration over all the scopes that used to collect features. I also removed all the extra cases around adding/removing classes since the general case can handle them. In addition I removed the check for classStringHasClassName which looked to see if the string was all whitespace. This check dated way back to fixing an assert in code we don't even have anymore. Assertion fix aside all the extra check optimized for was if you wrote class=" " with no names, which will now cause an extra malloc of the SpaceSplitString::Data. This seems super rare, it makes more sense to not scan the class string every time the list of classes changes which is far more common than setting a string of only whitespace. R=ojan@chromium.org Review URL: https://codereview.chromium.org/837883002