Bug 69106 - Universal attribute selectors disable style sharing
Summary: Universal attribute selectors disable style sharing
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2011-09-29 14:45 PDT by Antti Koivisto
Modified: 2012-06-06 15:12 PDT (History)
3 users (show)

See Also:

patch (20.07 KB, patch)
2011-09-29 15:00 PDT, Antti Koivisto
hyatt: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2011-09-29 14:45:32 PDT
Selectors of type [foo="bar"] will end up marking every element style with the affectedByUncommonAttributeSelectors bit, rendering style sharing inoperative. This happens on http://www.whatwg.org/specs/web-apps/current-work/ for example.
Comment 1 Antti Koivisto 2011-09-29 14:46:30 PDT
affectedByAttributeSelectors bit I mean
Comment 2 Antti Koivisto 2011-09-29 15:00:45 PDT
Created attachment 109209 [details]
Comment 3 Antti Koivisto 2011-09-29 15:01:18 PDT
This speeds up style matching and applying ~15% on full HTML5 spec (=~0.7s). Sharing percentage goes from 0% to ~30%. Increased sharing should also save a substantial amount of memory.
Comment 4 Dave Hyatt 2011-09-29 15:04:22 PDT
Comment on attachment 109209 [details]

Comment 5 WebKit Review Bot 2011-09-29 15:51:17 PDT
Comment on attachment 109209 [details]

Attachment 109209 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/9901202

New failing tests:
Comment 6 Antti Koivisto 2011-09-30 00:07:11 PDT
http://trac.webkit.org/changeset/96393 (with a fix to the crashing test)
Comment 7 Alexey Proskuryakov 2012-06-06 15:12:44 PDT
This has caused bug 88196.