Closed Bug 5993 Opened 25 years ago Closed 25 years ago

[BLOCKED] ender-nsHTMLInputElement has a pointer to nsIWidget

Categories

(Core :: Layout, defect, P1)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: kmcclusk)

Details

nsHTMLInputElement is a content class for text fields.  It has a reference to
nsIWidget, assuming that text fields are implemented using native widgets.  This
is wrong.  When frame-level interaction is required, nsHTMLInputElement should
go through the frame that is mapping the content, not directly to the widget.

Fixing this will enable us to replace native text widgets with Ender for text
input fields.  Kevin estimates the time to fix as approximately 2 days.  He has
done similar work for other content objects.
Priority: P3 → P1
Target Milestone: M6
optimistically setting milestone to M6.  I plan on starting implementation of
Ender text fields on 5/19 for inclusion in M7.
There is a second place where a widget is unfairly assumed.  nsFileControlFrame
holds onto a nsTextControlFrame* mTextFrame.  This is fine, except it calls
mTextFrame->GetWidget(&widget);, then does a QI to an nsITextWidget and makes
calls on that text widget.  It should just make calls on the text frame itself,
and let the frame decide how to deal with the underlying implementation.
Status: NEW → ASSIGNED
who is blocked on this, and why?
Summary: [BLOCKED] nsHTMLInputElement has a pointer to nsIWidget → [BLOCKED] ender-nsHTMLInputElement has a pointer to nsIWidget
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed in 5-13-99 5:03PM build. I removed all remaining references to nsIWidget
in the HTML form element content objects. I also removed the reference to
nsITextWidget in the file control.
Status: RESOLVED → VERIFIED
Fixed in 5/17 Build
URL: none
You need to log in before you can comment on or make changes to this bug.