Bug 1225699 part 7 - Keep effect properties when the ownerDocument of the element changes; r=smaug

This commit is contained in:
Brian Birtles 2015-11-26 16:53:54 +09:00
Родитель 4a1f1632e9
Коммит cf420be127
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -54,7 +54,7 @@ EffectSet::GetOrCreateEffectSet(dom::Element* aElement,
effectSet = new EffectSet();
nsresult rv = aElement->SetProperty(propName, effectSet,
&EffectSet::PropertyDtor, false);
&EffectSet::PropertyDtor, true);
if (NS_FAILED(rv)) {
NS_WARNING("SetProperty failed");
// The set must be destroyed via PropertyDtor, otherwise