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)
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file)
3.55 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
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?
Comment 1•20 years ago
|
||
No. Let's just ditch the ifdef.
Comment 2•20 years ago
|
||
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.
![]() |
Assignee | |
Comment 3•20 years ago
|
||
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... :(
![]() |
Assignee | |
Comment 4•20 years ago
|
||
Alternately, we could parse the -moz-* display types involved as "inline" or
something if xul is disabled. Not sure which is better.
Comment 5•20 years ago
|
||
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
![]() |
Assignee | |
Comment 6•20 years ago
|
||
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.
Comment 7•20 years ago
|
||
I would take that approach. It seams the safest, easiest, and most direct.
Give me a patch and I can test.
![]() |
Assignee | |
Comment 8•19 years ago
|
||
Attachment #218940 -
Flags: superreview?(dbaron)
Attachment #218940 -
Flags: review?(dbaron)
![]() |
Assignee | |
Updated•19 years ago
|
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+
![]() |
Assignee | |
Comment 9•19 years ago
|
||
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.
Description
•