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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutProgress.h

Issue 1721943002: Don't animate a progress bar if it isn't animated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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: third_party/WebKit/Source/core/layout/LayoutProgress.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutProgress.h b/third_party/WebKit/Source/core/layout/LayoutProgress.h
index c8d8abf48dbc3ff22cb864e72e76a7afcf12740c..1f14d0f1fc53d7edf85cae71f94c6eef977253c4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutProgress.h
+++ b/third_party/WebKit/Source/core/layout/LayoutProgress.h
@@ -46,6 +46,8 @@ public:
protected:
void willBeDestroyed() override;
+ bool isAnimationTimerActive() const;
+
private:
bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectProgress || LayoutBlockFlow::isOfType(type); }
@@ -58,6 +60,8 @@ private:
double m_animationDuration;
bool m_animating;
Timer<LayoutProgress> m_animationTimer;
+
+ friend class LayoutProgressTest;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutProgress, isProgress());

Powered by Google App Engine
This is Rietveld 408576698