Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: Source/core/platform/animation/CSSAnimationData.h

Issue 60033004: Don't check all animation/transition properties when comparing RenderStyles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/animation/CSSAnimationData.h
diff --git a/Source/core/platform/animation/CSSAnimationData.h b/Source/core/platform/animation/CSSAnimationData.h
index d0fa147bd52253a7b487afcbb27804ce70dd5e1b..6744748f4a3ba76d2d3fba898179fc5f5de6fa52 100644
--- a/Source/core/platform/animation/CSSAnimationData.h
+++ b/Source/core/platform/animation/CSSAnimationData.h
@@ -137,7 +137,7 @@ public:
CSSAnimationData& operator=(const CSSAnimationData& o);
// return true every CSSAnimationData in the chain (defined by m_next) match
- bool operator==(const CSSAnimationData& o) const { return animationsMatch(&o); }
+ bool operator==(const CSSAnimationData& o) const { return animationsMatchForStyleRecalc(&o); }
bool operator!=(const CSSAnimationData& o) const { return !(*this == o); }
bool fillsBackwards() const { return m_fillModeSet && (m_fillMode == AnimationFillModeBackwards || m_fillMode == AnimationFillModeBoth); }
@@ -147,8 +147,9 @@ private:
CSSAnimationData();
explicit CSSAnimationData(const CSSAnimationData&);
- // return true if all members of this class match (excluding m_next)
- bool animationsMatch(const CSSAnimationData*) const;
+ // Return whether this object matches another CSSAnimationData object for
+ // the purposes of style recalc. This excludes some properties.
+ bool animationsMatchForStyleRecalc(const CSSAnimationData*) const;
AtomicString m_name;
CSSPropertyID m_property;
« no previous file with comments | « LayoutTests/css3/filters/composited-during-animation.html ('k') | Source/core/platform/animation/CSSAnimationData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698