mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
applied bug1375599_pm.diff
This commit is contained in:
@@ -83,17 +83,22 @@ nsresult
|
||||
HTMLFieldSetElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
|
||||
const nsAttrValue* aValue, bool aNotify)
|
||||
{
|
||||
if (aNameSpaceID == kNameSpaceID_None && aName == nsGkAtoms::disabled &&
|
||||
nsINode::GetFirstChild()) {
|
||||
if (!mElements) {
|
||||
mElements = new nsContentList(this, MatchListedElements, nullptr, nullptr,
|
||||
true);
|
||||
}
|
||||
if (aNameSpaceID == kNameSpaceID_None && aName == nsGkAtoms::disabled) {
|
||||
// This *has* to be called *before* calling FieldSetDisabledChanged on our
|
||||
// controls, as they may depend on our disabled state.
|
||||
UpdateDisabledState(aNotify);
|
||||
|
||||
uint32_t length = mElements->Length(true);
|
||||
for (uint32_t i=0; i<length; ++i) {
|
||||
static_cast<nsGenericHTMLFormElement*>(mElements->Item(i))
|
||||
->FieldSetDisabledChanged(aNotify);
|
||||
if (nsINode::GetFirstChild()) {
|
||||
if (!mElements) {
|
||||
mElements = new nsContentList(this, MatchListedElements, nullptr, nullptr,
|
||||
true);
|
||||
}
|
||||
|
||||
uint32_t length = mElements->Length(true);
|
||||
for (uint32_t i=0; i<length; ++i) {
|
||||
static_cast<nsGenericHTMLFormElement*>(mElements->Item(i))
|
||||
->FieldSetDisabledChanged(aNotify);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user