mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 979557: CanAnimatePropertyOnCompositor should return early when there's no OMT compositing, whether or not logging is enabled. r=dzbarsky
This shouldn't behave differently depending on whether or not logging is enabled; that difference was introduced in bug 785648.
This commit is contained in:
parent
383c71d957
commit
b109d5c930
@ -366,10 +366,12 @@ CommonElementAnimationData::CanAnimatePropertyOnCompositor(const dom::Element *a
|
||||
CanAnimateFlags aFlags)
|
||||
{
|
||||
bool shouldLog = nsLayoutUtils::IsAnimationLoggingEnabled();
|
||||
if (shouldLog && !gfxPlatform::OffMainThreadCompositingEnabled()) {
|
||||
nsCString message;
|
||||
message.AppendLiteral("Performance warning: Compositor disabled");
|
||||
LogAsyncAnimationFailure(message);
|
||||
if (!gfxPlatform::OffMainThreadCompositingEnabled()) {
|
||||
if (shouldLog) {
|
||||
nsCString message;
|
||||
message.AppendLiteral("Performance warning: Compositor disabled");
|
||||
LogAsyncAnimationFailure(message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user