mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 911889. Part 7: A single change to CSS 'transform' should not be treated as animation. r=dbaron
--HG-- extra : rebase_source : 1462732be85f3b52e8b8a842872a7bde7b54e6e5
This commit is contained in:
parent
34b2722ab7
commit
d0d07c21e8
@ -162,11 +162,7 @@ ActiveLayerTracker::IsStyleAnimated(nsIFrame* aFrame, nsCSSProperty aProperty)
|
|||||||
{
|
{
|
||||||
LayerActivity* layerActivity = GetLayerActivity(aFrame);
|
LayerActivity* layerActivity = GetLayerActivity(aFrame);
|
||||||
if (layerActivity) {
|
if (layerActivity) {
|
||||||
// XXX should we really treat a single change to transform as animation?
|
if (layerActivity->RestyleCountForProperty(aProperty) >= 2) {
|
||||||
uint8_t minStyleChangesToBeConsideredAnimation =
|
|
||||||
aProperty == eCSSProperty_opacity ? 2 : 1;
|
|
||||||
if (layerActivity->RestyleCountForProperty(aProperty) >=
|
|
||||||
minStyleChangesToBeConsideredAnimation) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user