mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge with dholbert's push. a=me
This commit is contained in:
commit
6d009cc0b3
@ -196,6 +196,11 @@ SVGDocumentWrapper::IsAnimated()
|
||||
void
|
||||
SVGDocumentWrapper::StartAnimation()
|
||||
{
|
||||
// Can be called for animated images during shutdown, after we've
|
||||
// already Observe()'d XPCOM shutdown and cleared out our mViewer pointer.
|
||||
if (!mViewer)
|
||||
return;
|
||||
|
||||
nsIDocument* doc = mViewer->GetDocument();
|
||||
if (doc) {
|
||||
#ifdef MOZ_SMIL
|
||||
@ -208,10 +213,8 @@ SVGDocumentWrapper::StartAnimation()
|
||||
void
|
||||
SVGDocumentWrapper::StopAnimation()
|
||||
{
|
||||
// This method gets called for animated images during shutdown, after we've
|
||||
// Can be called for animated images during shutdown, after we've
|
||||
// already Observe()'d XPCOM shutdown and cleared out our mViewer pointer.
|
||||
// When that happens, we need to bail out early, or else the
|
||||
// mViewer->GetDocument() call below will crash on a null pointer.
|
||||
if (!mViewer)
|
||||
return;
|
||||
|
||||
|
@ -5967,18 +5967,6 @@ nsNavHistory::ResultsAsList(mozIStorageStatement* statement,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
static PRInt64
|
||||
GetAgeInDays(PRTime aNormalizedNow, PRTime aDate)
|
||||
{
|
||||
PRTime dateMidnight = NormalizeTimeRelativeToday(aDate);
|
||||
// if the visit time is in the future
|
||||
// treat as "today" see bug #385867
|
||||
if (dateMidnight > aNormalizedNow)
|
||||
return 0;
|
||||
else
|
||||
return ((aNormalizedNow - dateMidnight) / USECS_PER_DAY);
|
||||
}
|
||||
|
||||
const PRInt64 UNDEFINED_URN_VALUE = -1;
|
||||
|
||||
// Create a urn (like
|
||||
|
Loading…
Reference in New Issue
Block a user