Bug 398105 - Removing xlink:href attribute from svg:a does not update elements influenced by :link styles. r+sr=bzbarsky,a1.9=tor

This commit is contained in:
longsonr@gmail.com 2007-11-23 01:43:49 -08:00
Родитель a741174380
Коммит 6e31cca0eb
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1837,6 +1837,14 @@ nsCSSRuleProcessor::HasAttributeDependentStyle(AttributeRuleProcessorData* aData
data.change = nsReStyleHint(data.change | eReStyle_Self);
}
// XXX What about XLinks?
#ifdef MOZ_SVG
// XXX should really check the attribute namespace is XLink
if (aData->mAttribute == nsGkAtoms::href &&
aData->mNameSpaceID == kNameSpaceID_SVG &&
aData->mContentTag == nsGkAtoms::a) {
data.change = nsReStyleHint(data.change | eReStyle_Self);
}
#endif
// XXXbz now that :link and :visited are also states, do we need a
// similar optimization in HasStateDependentStyle?