Bug 1166165 - Check if the timestamp is null to prevent assertion. r=nical

This commit is contained in:
Ethan Lin 2015-05-19 00:37:00 -04:00
parent 3d664b4f14
commit 8ea56f7f69

View File

@ -417,7 +417,7 @@ LayerManagerComposite::RenderDebugOverlay(const Rect& aBounds)
// Draw a translation delay warning overlay
int width;
int border;
if ((now - mWarnTime).ToMilliseconds() < kVisualWarningDuration) {
if (!mWarnTime.IsNull() && (now - mWarnTime).ToMilliseconds() < kVisualWarningDuration) {
EffectChain effects;
// Black blorder