Currently if we add a stylesheet with scoped selectors and matching scope element exist, we recalculate the entire document style. It is sufficient to invalidate the subtrees matching the scope only.
Created attachment 121629 [details] patch
Comment on attachment 121629 [details] patch Very cool, r=me
http://trac.webkit.org/changeset/104445
Nice!