CPAnimationContext: Inhibit DOM updates during size animation

Previously, during frame updates, we were writing the css values we
just read before.
Canvas sizing is preserved as it is needed when the view has custom
drawing.
This commit is contained in:
cacaodev
2016-11-07 22:26:30 +01:00
parent 410ad0dc09
commit cfbef141d8
+2 -1
View File
@@ -1278,7 +1278,8 @@ var CPViewHighDPIDrawingEnabled = YES;
#if PLATFORM(DOM)
var scale = [self scaleSize];
CPDOMDisplayServerSetStyleSize(_DOMElement, aSize.width * 1 / scale.width, aSize.height * 1 / scale.height);
if (!_inhibitDOMUpdates)
CPDOMDisplayServerSetStyleSize(_DOMElement, aSize.width * 1 / scale.width, aSize.height * 1 / scale.height);
if (_DOMContentsElement)
{