зеркало из https://github.com/mozilla/gecko-dev.git
Bug 822766. Be a bit more careful with our level assert in ReplaceAnimationRule. r=dbaron
This commit is contained in:
Родитель
889ac174c8
Коммит
75d26f98a1
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
|
||||
@-moz-keyframes togreen {
|
||||
100% {
|
||||
color: green;
|
||||
}
|
||||
}
|
||||
|
||||
.a:after {
|
||||
animation-name: togreen;
|
||||
animation-duration: 10s;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
document.documentElement.setAttribute("class", "a");
|
||||
document.documentElement.offsetHeight;
|
||||
document.documentElement.appendChild(document.createElement("span"));
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onload="boom();"></body>
|
||||
</html>
|
|
@ -83,3 +83,4 @@ load 788836.html
|
|||
load 806310-1.html
|
||||
load 812824.html
|
||||
load 822842.html
|
||||
load 822766-1.html
|
||||
|
|
|
@ -516,7 +516,8 @@ ReplaceAnimationRule(nsRuleNode *aOldRuleNode,
|
|||
}
|
||||
|
||||
NS_ABORT_IF_FALSE(!IsMoreSpecificThanAnimation(n) &&
|
||||
n->GetLevel() != nsStyleSet::eAnimationSheet,
|
||||
(n->IsRoot() ||
|
||||
n->GetLevel() != nsStyleSet::eAnimationSheet),
|
||||
"wrong level");
|
||||
|
||||
if (aNewAnimRule) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче