Closed Bug 363605 Opened 19 years ago Closed 19 years ago

[FIX]Make computed style use GetStyle* methods, not GetStyleData

Categories

(Core :: DOM: CSS Object Model, defect, P3)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file, 1 obsolete file)

See bug 360870 comments.
Attached patch Patch (obsolete) — Splinter Review
Sadly, this probably increases codesize some...
Attachment #248973 - Flags: superreview?(dbaron)
Attachment #248973 - Flags: review?(dbaron)
Priority: -- → P3
Summary: Make computed style use GetStyle* methods, not GetStyleData → [FIX]Make computed style use GetStyle* methods, not GetStyleData
Target Milestone: --- → mozilla1.9alpha
Should we actually bother? The existing methods aren't so bad -- I actually wasn't expecting you to do this; I'd forgotten about this case.
The only reason to really do this, imo, is to eliminate this use of nsIFrame::GetStyleData() (only use, iirc) and one of the two remaining uses of nsStyleContext::GetStyleData(). Though I think I'd be pretty happy to leave most of those changes in (because they improve readability and type-safety) and just define the GetStyle* functions to be inlines calling something like GetStyleData for the time being. Of course what I _really_ want to do somehow is make more of computed style table-driven... not sure how yet.
(In reply to comment #3) > Though I think I'd be pretty happy to leave most of those changes in (because > they improve readability and type-safety) and just define the GetStyle* > functions to be inlines calling something like GetStyleData for the time being. I think that sounds good.
Attachment #248973 - Attachment is obsolete: true
Attachment #249067 - Flags: superreview?(dbaron)
Attachment #249067 - Flags: review?(dbaron)
Attachment #248973 - Flags: superreview?(dbaron)
Attachment #248973 - Flags: review?(dbaron)
Comment on attachment 249067 [details] [diff] [review] Patch to that effect r+sr=dbaron
Attachment #249067 - Flags: superreview?(dbaron)
Attachment #249067 - Flags: superreview+
Attachment #249067 - Flags: review?(dbaron)
Attachment #249067 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: