Closed
Bug 341245
Opened 18 years ago
Closed 18 years ago
Remove some unused box object related interfaces
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
Details
Attachments
(1 file, 3 obsolete files)
66.66 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
There are some interfaces in layout/xul/base/public which aren't used at all. for example nsIBoxLayoutManager and nsIBoxPaintManager. I think those can be removed. nsIBrowserBoxObject, nsIIFrameBoxObject and nsIEditorBoxObject have all just one attribute, |readonly attribute nsIDocShell docShell| IMO, those could be merged to nsIDocShellContainer or whatever would be a good name.
Assignee | ||
Comment 1•18 years ago
|
||
Perhaps Neil has some comments to this :)
Assignee | ||
Comment 2•18 years ago
|
||
This was missing from the patch
Comment 3•18 years ago
|
||
Comment on attachment 225273 [details] [diff] [review] something like this After the mess of bug 340084 I don't feel qualified to review this. However, I'd name the class nsContainerBoxObject etc. I'd also use FORWARD_NSICONTAINERBOXOBJECT(nsBoxObject::)
Attachment #225273 -
Flags: review?(neil)
Comment 4•18 years ago
|
||
> one attribute, |readonly attribute nsIDocShell docShell|
Which I'd like to go away in favor of an nsIWebNavigation, frankly.... any time our chrome uses nsIDocShell, we have a bug, imo.
Assignee | ||
Comment 5•18 years ago
|
||
Comment on attachment 225273 [details] [diff] [review] something like this Boris, do you want to say something else about this. I agree with Neil that nsIContainerBoxObject would be a better name. Changing the attribute to nsIWebNavigation is a different bug. (But I'll investigate that too :) )
Attachment #225273 -
Flags: review?(bzbarsky)
Comment 6•18 years ago
|
||
smaug, I'm pretty totally swamped right now; I won't be able to do a detailed review of something like this probably until July. :(
Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 225273 [details] [diff] [review] something like this Ok, I'll try someone else...
Attachment #225273 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•18 years ago
|
Attachment #225273 -
Flags: review?(roc)
Assignee | ||
Comment 8•18 years ago
|
||
This contains both patches, uses name ContainerBoxObject and ::GetDocShell moved to ContainerBoxObject since it was not needed in nsBoxObject. The previous patch was also missing some deleted files; this one has quite good +/- ratio :) +261/-837 lines
Attachment #225273 -
Attachment is obsolete: true
Attachment #225276 -
Attachment is obsolete: true
Attachment #225416 -
Flags: review?(roc)
Attachment #225273 -
Flags: review?(roc)
This is actually a XUL API change. People who were using the old nsIEditorBoxObject etc interfaces will be broken. I suspect that's a bad idea. How about we define nsIEditorBoxObject, nsIBrowserBoxObject, and nsIIFrameBoxObject, make them all just inherit from nsIContainerBoxObject adding no new methods, and then implement them as tearoffs on nsContainerBoxObject?
Assignee | ||
Comment 10•18 years ago
|
||
Attachment #225416 -
Attachment is obsolete: true
Attachment #228998 -
Flags: review?(roc)
Attachment #225416 -
Flags: review?(roc)
Comment on attachment 228998 [details] [diff] [review] Keeping interfaces for browser, iframe and editor OK. Removing the layout and paint managers is technically an interface change, but since no objects implementing those interfaces ever existed, I think we'll be OK.
Attachment #228998 -
Flags: superreview+
Attachment #228998 -
Flags: review?(roc)
Attachment #228998 -
Flags: review+
Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•