[Webkit-unassigned] [Bug 100451] [Shadow DOM][Meta] Changing attribute does not cause distribution.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 30 18:14:58 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=100451





--- Comment #6 from Shinya Kawanaka <shinyak at chromium.org>  2012-10-30 18:16:16 PST ---
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Hmm... it seems changing attribute does not reflect immediately at all.
> > > Let's use this as a meta bug and fix them one by one.
> > 
> > Right. we need to address this.
> > On the other hand, it is bad idea to re-run distribution algorithm for each attribute change
> > from a performance perspective.
> 
> It may sound pretty bad, but it's something CSS does anyway, right?
> 
> > Can we do something more efficient like examining @select attribute values before
> > invalidating the distribution?
> 
> This sounds like an interesting optimization:
> 1) determine effects of the select as some subset of DOM changes
> 2) act only on DOM changes that are in this subset.
> 
> Also sounds:
> 1) incredibly complex
> 2) something that could be shared with general CSS rule matching

Seeing Element::attributeChanged, Element checks CSS Selector to decide whether we should recalculate style. So maybe we can do this? It's complex though...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list