Closed Bug 312120 Opened 20 years ago Closed 19 years ago

[FIX]Should consider not parsing XUL display types when MOZ_XUL not defined

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

At the moment, we parse all the XUL display types no matter what, as far as I can tell. But for some of them we only create XUL boxes #ifdef MOZ_XUL. Which means we'll fall into ConstructFrameByDisplayType, assert, and crash if someone uses those display types in a build without MOZ_XUL. That said, do we still support building without MOZ_XUL?
No. Let's just ditch the ifdef.
Yes, we care about MOZ_XUL. Do NOT remove MOZ_XUL. XUL continues to be an option. It saves about 1mb RSS last I checked on linux arm.
OK. I wasn't sure what the state of minimo and XUL was, since you were working on a XUL front-end, Doug. So if we support this then we need to fix this issue... :(
Alternately, we could parse the -moz-* display types involved as "inline" or something if xul is disabled. Not sure which is better.
no worries. we shouldn't go out of our way to break MOZ_XUL; alot of time has gone into making sure that it does work. How hard is it to fix the problem? doug
Depends on how we want to fix it. If we want to just treat those display types as unknown in builds without MOZ_XUL, it's a matter of adding an ifdef in the table at http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSProps.cpp#509 to match whatever ifdefs nsCSSFrameConstructor::ConstructXULFrame has.
I would take that approach. It seams the safest, easiest, and most direct. Give me a patch and I can test.
Attached patch Like soSplinter Review
Attachment #218940 - Flags: superreview?(dbaron)
Attachment #218940 - Flags: review?(dbaron)
Assignee: dbaron → bzbarsky
Priority: -- → P3
Summary: Should consider not parsing XUL display types when MOZ_XUL not defined → [FIX]Should consider not parsing XUL display types when MOZ_XUL not defined
Target Milestone: --- → mozilla1.9alpha
Attachment #218940 - Flags: superreview?(dbaron)
Attachment #218940 - Flags: superreview+
Attachment #218940 - Flags: review?(dbaron)
Attachment #218940 - Flags: review+
Fixed.
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: