[Webkit-unassigned] [Bug 9454] CSS2: Language not inherited from parent element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 6 06:08:49 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=9454





------- Comment #25 from sandfeld at kde.org  2007-10-06 06:08 PDT -------
I don't think it is serious performance problem. It is less expensive than a
descent selector where the first rule has matched. On sites like slashdot.org
they have 100 rules like ".class li" that matches most elements on the page,
and this is obviously not a big problem. 

I made a survey of webpages last year, to figure out if it would be worthwhile
to speed-up descent selectors, and it turned out webpages in general are very
flat.

The only issue that should be considered is the likelyhood of anyone combining
a descent and language selector in which case the runtime goes up to square
DOM-tree height. I consider it unlikely.

To move the language to RenderStyle means you will need a system for dirtying
and recalculating language subtrees whenever a node changes LANG. I really
really don't think it is worth it, unless you have a strong need for a
constant-time language result in text-layout.


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



More information about the webkit-unassigned mailing list