зеркало из https://github.com/mozilla/gecko-dev.git
Bug 733764 - Make forceRedraw a no-op. r=jwatt
This commit is contained in:
Родитель
773e47a0ea
Коммит
7f2a9b43b0
|
@ -380,7 +380,8 @@ function testPercentUnitChangeOnLength()
|
|||
// can be updated.
|
||||
todo_is(gCircle.cy.animVal.value, 100,
|
||||
"Checking animated length=100% after animating but before reflow");
|
||||
gSvg.forceRedraw();
|
||||
// force a layout flush (Bug 627594)
|
||||
gSvg.getCTM();
|
||||
// Even after doing a reflow though we'll still fail due to bug 508206
|
||||
// (Relative units used in animation don't update immediately)
|
||||
todo_is(gCircle.cy.animVal.value, 100,
|
||||
|
@ -391,7 +392,8 @@ function testPercentUnitChangeOnLength()
|
|||
"Checking animated length=100% after animating");
|
||||
|
||||
gSvg.setAttribute("height", "50px"); // Change: height: 50px
|
||||
gSvg.forceRedraw(); // Bug 627594
|
||||
// force a layout flush (Bug 627594)
|
||||
gSvg.getCTM();
|
||||
gSvg.setCurrentTime(0); // Bug 508206
|
||||
is(gCircle.cy.animVal.value, 50,
|
||||
"Checking animated length=100% after updating context");
|
||||
|
|
|
@ -307,13 +307,7 @@ SVGSVGElement::UnsuspendRedrawAll()
|
|||
void
|
||||
SVGSVGElement::ForceRedraw(ErrorResult& rv)
|
||||
{
|
||||
nsIDocument* doc = GetComposedDoc();
|
||||
if (!doc) {
|
||||
rv.Throw(NS_ERROR_FAILURE);
|
||||
return;
|
||||
}
|
||||
|
||||
doc->FlushPendingNotifications(Flush_Display);
|
||||
// no-op
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче