Closed
Bug 18183
Opened 26 years ago
Closed 26 years ago
[blocker][sink]Need new method for select content to know when complete
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: rods, Assigned: rods)
References
Details
Vidur, I have decided to file a bug and mark it a blocker because I have two or
more blocker bugs depending on it and these could potentially hold M11.
Assignee | ||
Updated•26 years ago
|
Target Milestone: M11
Assignee | ||
Comment 1•26 years ago
|
||
Change milestone to M11
Comment 2•26 years ago
|
||
Question for you Rod: Can I call the notification method after all of the
options have been added to the select, but *before* I do content notification?
Specifically, is it OK to do this notification even if no frames yet exist for
this element?
Comment 3•26 years ago
|
||
If the answer is yes, this should do you, I think:
Index: content/public/nsISelectElement.h
===================================================================
RCS file: /cvsroot/mozilla/layout/html/content/public/nsISelectElement.h,v
retrieving revision 1.2
diff -r1.2 nsISelectElement.h
42c42,43
<
---
> NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISELECTELEMENT_IID)
>
53a55,60
>
> /**
> * Indicates that we're done adding child content
> * to the select during document loading.
> */
> NS_IMETHOD DoneAddingContent() = 0;
Index: content/src/nsHTMLSelectElement.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/html/content/src/nsHTMLSelectElement.cpp,v
retrieving revision 1.52
diff -r1.52 nsHTMLSelectElement.cpp
183a184
> NS_IMETHOD DoneAddingContent();
702a704,709
> }
>
> NS_IMETHODIMP
> nsHTMLSelectElement::DoneAddingContent()
> {
> // XXX rods to provide implementation
> return NS_OK;
Index: document/src/nsHTMLContentSink.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/html/document/src/nsHTMLContentSink.cpp,v
retrieving revision 3.265
diff -r3.265 nsHTMLContentSink.cpp
76a77
> #include "nsISelectElement.h"
1257,1258d1257
< NS_IF_RELEASE(content);
<
1280a1280,1289
> case eHTMLTag_select:
> {
> nsCOMPtr<nsISelectElement> select = do_QueryInterface(content, &result);
>
> if (NS_SUCCEEDED(result)) {
> result = select->DoneAddingContent();
> }
> }
> break;
>
1284a1294,1295
> NS_IF_RELEASE(content);
>
Updated•26 years ago
|
Assignee: vidur → rods
Comment 4•26 years ago
|
||
Reassigning to rods since he's going to check in the patch.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•26 years ago
|
||
Method added vidur and cheked in by me, it all now works - Fixed
Comment 6•26 years ago
|
||
Rod, not sure how I can verify thi since this was a code fix. Could you please
mark this as verified ?
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 7•26 years ago
|
||
Based on Rod's comments, marking verified fixed in the Nov 16th build.
You need to log in
before you can comment on or make changes to this bug.
Description
•