Bug 1073336 part 3b - Add nsPresContext::ClearLastStyleUpdateForAllAnimations; r=dbaron

This commit is contained in:
Brian Birtles 2014-11-17 13:45:57 +09:00
parent 862f1e6d3b
commit b8775a0cfa
2 changed files with 10 additions and 3 deletions

View File

@ -1558,7 +1558,7 @@ nsPresContext::Detach()
}
bool
nsPresContext::StyleUpdateForAllAnimationsIsUpToDate()
nsPresContext::StyleUpdateForAllAnimationsIsUpToDate() const
{
return mLastStyleUpdateForAllAnimations == mRefreshDriver->MostRecentRefresh();
}
@ -1569,6 +1569,12 @@ nsPresContext::TickLastStyleUpdateForAllAnimations()
mLastStyleUpdateForAllAnimations = mRefreshDriver->MostRecentRefresh();
}
void
nsPresContext::ClearLastStyleUpdateForAllAnimations()
{
mLastStyleUpdateForAllAnimations = TimeStamp();
}
bool
nsPresContext::BidiEnabledExternal() const
{

View File

@ -705,10 +705,11 @@ public:
}
/**
* Getter and setter for OMTA time counters
* Getter and setters for OMTA time counters
*/
bool StyleUpdateForAllAnimationsIsUpToDate();
bool StyleUpdateForAllAnimationsIsUpToDate() const;
void TickLastStyleUpdateForAllAnimations();
void ClearLastStyleUpdateForAllAnimations();
/**
* Check if bidi enabled (set depending on the presence of RTL