Fixes #1716. Fixed: blurry popovers in Chrome.

This commit is contained in:
Alexander Ljungberg committed 2013-02-08 00:29:38 +00:00
1 parent b28ff18918
commit 4991913f45
1 file changed
+7
+7
View File
@@ -461,6 +461,13 @@ var _CPPopoverWindow_shouldClose_ = 1 << 0,
{
#if PLATFORM(DOM)
_DOMElement.removeEventListener(CPBrowserStyleProperty('transitionend'), transitionCompleteFunction, YES);
// Make sure to clear these properties when the animation is done. Without this,
// the window becomes blurry in Chrome, presumably because the browser composits
// a layer with a transform differently even when it's an identity transform.
[self setCSS3Property:@"Transform" value:nil];
[self setCSS3Property:@"TransformOrigin" value:nil];
[self setCSS3Property:@"Transition" value:nil];
#endif
if (_implementedDelegateMethods & _CPPopoverWindow_didShow_)
[_delegate popoverWindowDidShow:self];