зеркало из https://github.com/mozilla/pjs.git
Backed out changeset 59ae87416f96 (bug 488249 followup) to fix test orange.
--HG-- extra : rebase_source : 0108b501163d0114ef96a9059023fad69accd9e1
This commit is contained in:
Родитель
c76e02cd0a
Коммит
d15fec2073
|
@ -3672,7 +3672,7 @@ nsCSSFrameConstructor::FindHTMLData(nsIContent* aContent,
|
||||||
aParentFrame->GetStyleContext()->GetPseudoType() !=
|
aParentFrame->GetStyleContext()->GetPseudoType() !=
|
||||||
nsCSSAnonBoxes::fieldsetContent) ||
|
nsCSSAnonBoxes::fieldsetContent) ||
|
||||||
!aContent->GetParent() ||
|
!aContent->GetParent() ||
|
||||||
!aContent->GetParent()->IsHTML() ||
|
!aContent->GetParent()->IsNodeOfType(nsINode::eHTML) ||
|
||||||
aContent->GetParent()->Tag() != nsGkAtoms::fieldset ||
|
aContent->GetParent()->Tag() != nsGkAtoms::fieldset ||
|
||||||
aStyleContext->GetStyleDisplay()->IsFloating() ||
|
aStyleContext->GetStyleDisplay()->IsFloating() ||
|
||||||
aStyleContext->GetStyleDisplay()->IsAbsolutelyPositioned())) {
|
aStyleContext->GetStyleDisplay()->IsAbsolutelyPositioned())) {
|
||||||
|
|
|
@ -169,7 +169,7 @@ void nsMenuBarX::ConstructNativeMenus()
|
||||||
nsIContent *menuContent = mContent->GetChildAt(i);
|
nsIContent *menuContent = mContent->GetChildAt(i);
|
||||||
if (menuContent &&
|
if (menuContent &&
|
||||||
menuContent->Tag() == nsWidgetAtoms::menu &&
|
menuContent->Tag() == nsWidgetAtoms::menu &&
|
||||||
menuContent->IsXUL()) {
|
menuContent->IsNodeOfType(nsINode::eXUL)) {
|
||||||
nsMenuX* newMenu = new nsMenuX();
|
nsMenuX* newMenu = new nsMenuX();
|
||||||
if (newMenu) {
|
if (newMenu) {
|
||||||
nsresult rv = newMenu->Create(this, this, menuContent);
|
nsresult rv = newMenu->Create(this, this, menuContent);
|
||||||
|
|
|
@ -1692,7 +1692,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
|
||||||
// XUL textboxes set the native appearance on the containing box, while
|
// XUL textboxes set the native appearance on the containing box, while
|
||||||
// concrete focus is set on the html:input element within it. We can
|
// concrete focus is set on the html:input element within it. We can
|
||||||
// though, check the focused attribute of xul textboxes in this case.
|
// 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;
|
eventState |= NS_EVENT_STATE_FOCUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче