Closed
Bug 1169514
Opened 10 years ago
Closed 10 years ago
maintain the preference style sheet in the style sheet cache
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: heycam, Assigned: heycam)
References
Details
Attachments
(3 files, 1 obsolete file)
11.15 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
11.52 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
31.88 KB,
patch
|
jwatt
:
review+
|
Details | Diff | Splinter Review |
There's no need for each pres shell to create its own preference style sheet. We should just have a single style sheet that's maintained by the nsLayoutStylesheetCache. This will help us cache more rule processors in bug 77999, too.
Assignee | ||
Comment 1•10 years ago
|
||
While most of the rules inserted into the preference style sheet are just based on preference values, there are a couple that aren't. The rule added in nsPresShell::SetPrefNoScriptRule is based on the document's "is script enabled" flag, and the rules added in nsPresShell::SetPrefNoFramesRule are based on whether the doc shell's GetAllowSubframes return value. These might be better handled as media queries, like we'll do for the quirks mode rules in bug 1169512.
Assignee | ||
Comment 2•10 years ago
|
||
Or separate style sheets that we add to the style set.
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8613391 -
Flags: review?(jwatt)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8613392 -
Flags: review?(jwatt)
Assignee | ||
Comment 6•10 years ago
|
||
Forgot to rev nsIPresShell's IID.
Attachment #8613392 -
Attachment is obsolete: true
Attachment #8613392 -
Flags: review?(jwatt)
Attachment #8613393 -
Flags: review?(jwatt)
Assignee | ||
Comment 7•10 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=49f8b3b9b044 (this has all three patches applied)
![]() |
||
Updated•10 years ago
|
Attachment #8613390 -
Flags: review?(jwatt) → review+
![]() |
||
Updated•10 years ago
|
Attachment #8613391 -
Flags: review?(jwatt) → review+
![]() |
||
Updated•10 years ago
|
Attachment #8613393 -
Flags: review?(jwatt) → review+
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/44e4a6479eb1
https://hg.mozilla.org/mozilla-central/rev/fca18f7bf521
https://hg.mozilla.org/mozilla-central/rev/8f69f20370b7
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•