Bug 1475003, don't notify DOM of SMIL changes, r=peterv

This commit is contained in:
Olli Pettay 2018-07-12 13:04:26 +03:00
parent a7ab4f7b12
commit cb4f7fda48
3 changed files with 28 additions and 4 deletions

View File

@ -0,0 +1,21 @@
<html class="reftest-wait">
<head>
<script>
function go() {
window.requestAnimationFrame(eh);
}
function eh() {
a.appendChild(b);
d.innerHTML = c.outerHTML;
document.documentElement.removeAttribute("class");
}
</script>
</head>
<body onload=go()>
<audio id="a" onerror="eh()" src="x"></audio>
<data id="b">
<li id="c">
<svg>
<set attributeName="overflow" to="hidden"/>
<li id="d">
</html>

View File

@ -290,3 +290,4 @@ load 1457288.html
load 1457985.html
pref(dom.webcomponents.shadowdom.enabled,true) load 1468640.html
load 1469076.html
load 1475003.html

View File

@ -61,10 +61,12 @@ public:
GetPropertyChangeClosure(DeclarationBlockMutationClosure* aClosure,
mozilla::MutationClosureData* aClosureData) final
{
aClosure->function = MutationClosureFunction;
aClosure->data = aClosureData;
aClosureData->mClosure = MutationClosureFunction;
aClosureData->mElement = mElement;
if (!mIsSMILOverride) {
aClosure->function = MutationClosureFunction;
aClosure->data = aClosureData;
aClosureData->mClosure = MutationClosureFunction;
aClosureData->mElement = mElement;
}
}
protected: