Ensuring that column header cells don't also persist accidentally (along with the columns themselves. r=ben

This commit is contained in:
hyatt%netscape.com 2000-09-07 08:42:49 +00:00
Родитель 3c623b5dad
Коммит 4677305721
2 изменённых файлов: 16 добавлений и 4 удалений

Просмотреть файл

@ -2726,7 +2726,10 @@ nsXULElement::SetAttribute(nsINodeInfo* aNodeInfo,
NS_REINTERPRET_CAST(XULBroadcastListener*, BroadcastListeners()->ElementAt(i));
if (xulListener->ObservingAttribute(attribute) &&
(!aNodeInfo->Equals(nsXULAtoms::id))) {
(!aNodeInfo->Equals(nsXULAtoms::id)) &&
(!aNodeInfo->Equals(nsXULAtoms::persist)) &&
(!aNodeInfo->Equals(nsXULAtoms::ref)))
{
// XXX Should have a function that knows which attributes are special.
// First we set the attribute in the observer.
xulListener->mListener->SetAttribute(attribute, aValue);
@ -2955,7 +2958,10 @@ nsXULElement::UnsetAttribute(PRInt32 aNameSpaceID,
nsAutoString str;
aName->ToString(str);
if (xulListener->ObservingAttribute(str) &&
(aName != nsXULAtoms::id)) {
(aName != nsXULAtoms::id) &&
(aName != nsXULAtoms::persist) &&
(aName != nsXULAtoms::ref))
{
// XXX Should have a function that knows which attributes are special.
// Unset the attribute in the broadcast listener.
nsCOMPtr<nsIDOMElement> element;

Просмотреть файл

@ -2726,7 +2726,10 @@ nsXULElement::SetAttribute(nsINodeInfo* aNodeInfo,
NS_REINTERPRET_CAST(XULBroadcastListener*, BroadcastListeners()->ElementAt(i));
if (xulListener->ObservingAttribute(attribute) &&
(!aNodeInfo->Equals(nsXULAtoms::id))) {
(!aNodeInfo->Equals(nsXULAtoms::id)) &&
(!aNodeInfo->Equals(nsXULAtoms::persist)) &&
(!aNodeInfo->Equals(nsXULAtoms::ref)))
{
// XXX Should have a function that knows which attributes are special.
// First we set the attribute in the observer.
xulListener->mListener->SetAttribute(attribute, aValue);
@ -2955,7 +2958,10 @@ nsXULElement::UnsetAttribute(PRInt32 aNameSpaceID,
nsAutoString str;
aName->ToString(str);
if (xulListener->ObservingAttribute(str) &&
(aName != nsXULAtoms::id)) {
(aName != nsXULAtoms::id) &&
(aName != nsXULAtoms::persist) &&
(aName != nsXULAtoms::ref))
{
// XXX Should have a function that knows which attributes are special.
// Unset the attribute in the broadcast listener.
nsCOMPtr<nsIDOMElement> element;