no all DOM calls can be made on a select or an option with or without a frame
and the results will be correct
All the PresState info (for now) is kept in the select content, a couple of new
methods were added to nsISelectElement to make it easier for the option to
Get/Set its index
Bug 45760 r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@78137 18797224-902f-48f8-a5cc-f745e15eee43
this is where the block doesn't have any children and a text element gets
created for it.
b=36900, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@67179 18797224-902f-48f8-a5cc-f745e15eee43
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.
XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.
Also, xpconnect tests are reorganized and improved.
fixes bugs: 13419, 17736, 17746, 17952, 22086
r=vidur r=mccabe r=norris r=cbegle
a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56202 18797224-902f-48f8-a5cc-f745e15eee43
sends back a reflow hint. It also checks to see if the primary frame is a combobox
and asks it to refresh its display
r=kmcclusk bug 19373 (PDT+)
git-svn-id: svn://10.0.0.236/trunk@55659 18797224-902f-48f8-a5cc-f745e15eee43
Added nsIMutableStyleContext interface.
Made style rules work against nsIMutableStyleContext
r=troy
git-svn-id: svn://10.0.0.236/trunk@50919 18797224-902f-48f8-a5cc-f745e15eee43
those that aren't
This lets the style system optimize style contexts better.
git-svn-id: svn://10.0.0.236/trunk@38541 18797224-902f-48f8-a5cc-f745e15eee43
Also, remove a spurioius NS_RELEASE that was causing crashes in GetSelected()
git-svn-id: svn://10.0.0.236/trunk@29481 18797224-902f-48f8-a5cc-f745e15eee43
Added methods to GetWidgetRenderingMode and SetWidgetRenderingMode in nsPresContext
Removed NS_GFX_RENDER_FORM_ELEMENTS define, now it uses the GetWidgetRenderingMode
method on the rendering context.
Resurrected Rod's listbox frame-based widget code.
Added -moz-option-selected pseudo attribute to control the appearance of selected items for the listbox frame-based widget.
Added a style rule with attribute selector for -moz-option-selected to the ua.css style sheet.
Modifed nsView::SetVFlags to do a bitwise or instead of bitwise and to set flags.
Modified nsView::HandleEvent to compare mVFlags with NS_VIEW_FLAG_DONT_CHECK_CHILDREN
git-svn-id: svn://10.0.0.236/trunk@22614 18797224-902f-48f8-a5cc-f745e15eee43