Closed
Bug 77287
Opened 23 years ago
Closed 13 years ago
investigate removing HTMLDocumentColorRule
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 655549
Future
People
(Reporter: dbaron, Unassigned)
Details
I should investigate whether we need the HTMLDocumentColorRule anymore (in nsHTMLStyleSheet.cpp). It might be obsolete now that BodyFixupRule exists. See the discussion in bug 70831.
Reporter | ||
Comment 1•23 years ago
|
||
From bug 70831: ------- Additional Comments From David Baron 2001-04-24 09:57 ------- OK -- I made the change that you suggested. I think the real fix is to split up the 3 uses for HTMLDocumentStyleColor: 1) We use it to implement document.fgColor and document.fgColor in HTML documents when we have no body element (i.e, if the script is running before the body element is created). (This issue is messy -- I'm also wondering if the code in the body element itself needs some fixing too, but that's another issue...) 2) We use it to match the HTML element in the attribute stylesheet (nsHTMLStyleSheet). I think this predates the BodyFixupRule and can be removed (and it may mess up user stylesheets in some cases). 3) We use it to apply to inner table contents in quirks mode. We should reexamine whether this is really the best way to handle this, but if it is, then perhaps the HTMLDocumentColorRule could be only for this and (1) could be handled by something else (or vice versa, although I think the solution in (1) probably doesn't get along with the BodyFixupRule).
Reporter | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → mozilla0.9.3
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Reporter | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.7 → Future
Comment 3•20 years ago
|
||
So use #1 seems to no longer exist (assuming this is the nsHTMLColorRule we're talking about). There is also no more body fixup rule....
Reporter | ||
Updated•17 years ago
|
Assignee: dbaron → nobody
Status: ASSIGNED → NEW
QA Contact: ian → style-system
Reporter | ||
Comment 5•13 years ago
|
||
And mDocumentColorRule was removed in https://hg.mozilla.org/mozilla-central/rev/9439ffe089a1
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•