mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 989403e34775 (bug 911889)
This commit is contained in:
parent
3e1407af64
commit
e1ed7e6c08
@ -162,7 +162,11 @@ ActiveLayerTracker::IsStyleAnimated(nsIFrame* aFrame, nsCSSProperty aProperty)
|
||||
{
|
||||
LayerActivity* layerActivity = GetLayerActivity(aFrame);
|
||||
if (layerActivity) {
|
||||
if (layerActivity->RestyleCountForProperty(aProperty) >= 2) {
|
||||
// XXX should we really treat a single change to transform as animation?
|
||||
uint8_t minStyleChangesToBeConsideredAnimation =
|
||||
aProperty == eCSSProperty_opacity ? 2 : 1;
|
||||
if (layerActivity->RestyleCountForProperty(aProperty) >=
|
||||
minStyleChangesToBeConsideredAnimation) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user