Closed Bug 93180 Opened 23 years ago Closed 23 years ago

Consolidate stack and bulletinboard

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: hyatt, Assigned: hyatt)

References

Details

(Whiteboard: [xul1.0-layout-stack])

Attachments

(4 files)

bulletinboard's functionality should be folded into stack.
Blocks: 70753
Status: NEW → ASSIGNED
Whiteboard: [xul1.0-layout-stack]
Target Milestone: --- → mozilla0.9.5
Could you elaborate a little on the implications of this. Does it mean 
bulletinboard will be obsolete?
No, I'll keep supporting the tag, but it will be deprecated.  Basically <stack>
and <bulletinboard> are the same widget, so you'll be able to just use a <stack>.
One thing missing from the diff... I change the rule for bulletinboard to be

bulletinboard {
  display: -moz-stack;
}

for backwards compatibility.

Ready for r/sr.
Looked over the patch.  With the addition hyatt put in a comment, looks good. 
For whatever it's worth, r=rjesup.  My only comment is that the surrounding
source in some of the functions appears to use tabs,  but as per various
discussions, this is fine so long as the patch doesn't and removed them from
changed lines, which it appears to.
Comment on attachment 47402 [details] [diff] [review]
Fold bulletinboard's functionality into stack and remove bulletin board files from the tree

nsStackLayout.cpp is an indentation nightmare (even before these changes), fix it if you wanto.

sr=jst
Attachment #47402 - Flags: superreview+
There are some minor issues with this patch.  I'm going to forget about the r/sr
and go back to the drawing board first.
Comment on attachment 48272 [details] [diff] [review]
Better patch.  Handles non-stretchy positioned elements within the stack.

It doesn't seem like AddOffset() needs to be virtual, so that could be removed, other than that, sr=jst
Attachment #48272 - Flags: superreview+
Patch that incorporates jst feedback and jag feedback.
Attached patch New patchSplinter Review
Would like another round of r/sr on the newest patch.
Attachment #48354 - Flags: superreview+
Comment on attachment 48354 [details] [diff] [review]
Patch with a perf optimization to avoid querying for left/top on unpositioned elts.

sr=jst
Fixed. 
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Note that a stacks test page link has been added to the XUL test suite in the 
Debug menu.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: