Bug 75834 - Subtree invalidation on stylesheet change
Summary: Subtree invalidation on stylesheet change
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 00:56 PST by Antti Koivisto
Modified: 2012-01-10 00:13 PST (History)
3 users (show)

See Also:


Attachments
patch (7.54 KB, patch)
2012-01-09 01:12 PST, Antti Koivisto
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2012-01-09 00:56:03 PST
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.
Comment 1 Antti Koivisto 2012-01-09 01:12:31 PST
Created attachment 121629 [details]
patch
Comment 2 Andreas Kling 2012-01-09 01:19:52 PST
Comment on attachment 121629 [details]
patch

Very cool, r=me
Comment 3 Antti Koivisto 2012-01-09 02:01:15 PST
http://trac.webkit.org/changeset/104445
Comment 4 Ryosuke Niwa 2012-01-10 00:13:33 PST
Nice!