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

This commit is contained in:
Ethan Lin 2015-05-20 17:01:34 -04:00
parent eb57cf13bf
commit 083a328551

View File

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