Backed out changeset 59ae87416f96 (bug 488249 followup) to fix test orange.

--HG--
extra : rebase_source : 0108b501163d0114ef96a9059023fad69accd9e1
This commit is contained in:
Boris Zbarsky 2009-08-24 20:50:52 -04:00
parent 353b7f17b6
commit e47cf7870b
3 changed files with 4 additions and 3 deletions

View File

@ -3672,7 +3672,7 @@ nsCSSFrameConstructor::FindHTMLData(nsIContent* aContent,
aParentFrame->GetStyleContext()->GetPseudoType() !=
nsCSSAnonBoxes::fieldsetContent) ||
!aContent->GetParent() ||
!aContent->GetParent()->IsHTML() ||
!aContent->GetParent()->IsNodeOfType(nsINode::eHTML) ||
aContent->GetParent()->Tag() != nsGkAtoms::fieldset ||
aStyleContext->GetStyleDisplay()->IsFloating() ||
aStyleContext->GetStyleDisplay()->IsAbsolutelyPositioned())) {

View File

@ -169,7 +169,7 @@ void nsMenuBarX::ConstructNativeMenus()
nsIContent *menuContent = mContent->GetChildAt(i);
if (menuContent &&
menuContent->Tag() == nsWidgetAtoms::menu &&
menuContent->IsXUL()) {
menuContent->IsNodeOfType(nsINode::eXUL)) {
nsMenuX* newMenu = new nsMenuX();
if (newMenu) {
nsresult rv = newMenu->Create(this, this, menuContent);

View File

@ -1692,7 +1692,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
// XUL textboxes set the native appearance on the containing box, while
// concrete focus is set on the html:input element within it. We can
// though, check the focused attribute of xul textboxes in this case.
if (aFrame->GetContent()->IsXUL() && IsFocused(aFrame)) {
if (aFrame->GetContent()->IsNodeOfType(nsINode::eXUL) &&
IsFocused(aFrame)) {
eventState |= NS_EVENT_STATE_FOCUS;
}