WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
77745
Shareable stylesheet data structures
https://bugs.webkit.org/show_bug.cgi?id=77745
Summary
Shareable stylesheet data structures
Antti Koivisto
Reported
2012-02-03 09:26:53 PST
To improve performance and save memory we should make stylesheet data structures cacheable in the memory cache and shareable between documents.
Attachments
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2012-02-03 09:41:00 PST
<
rdar://problem/10217321
>
Antti Koivisto
Comment 2
2012-02-03 09:43:01 PST
Related bunch of recent bugs towards this goal.
Eric Seidel (no email)
Comment 3
2012-04-15 21:03:49 PDT
Interesting. I'm attempting to "share" stylesheets between documents for <iframe seamless>:
https://github.com/eseidel/webkit/compare/master...seamless#L61R423
I wonder if I'm getting myself in trouble. :)
Antti Koivisto
Comment 4
2012-04-16 09:59:00 PDT
(In reply to
comment #3
)
> Interesting. I'm attempting to "share" stylesheets between documents for <iframe seamless>: >
https://github.com/eseidel/webkit/compare/master...seamless#L61R423
> > I wonder if I'm getting myself in trouble. :)
That is going to be bit tricky. Stylesheets can mutate, the style selectors in the sharing child frames will need to be reset too. They hold raw pointers so this must happen synchronously. Should still be doable.
Eric Seidel (no email)
Comment 5
2012-04-16 14:06:02 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > Interesting. I'm attempting to "share" stylesheets between documents for <iframe seamless>: > >
https://github.com/eseidel/webkit/compare/master...seamless#L61R423
> > > > I wonder if I'm getting myself in trouble. :) > > That is going to be bit tricky. Stylesheets can mutate, the style selectors in the sharing child frames will need to be reset too. They hold raw pointers so this must happen synchronously. > > Should still be doable.
Yes, I need to find wherver the CSSStyleSelector is reset on the parent(s) and make sure all seamless iframe documents also recalc their selectors at that time. If you have suggestions for specific methods I should hack into, I'm all ears (we can also discuss this on a different bug).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug