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

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: Rebased 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/LayoutProgress.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1c30b8e18302dfd90c21b61c2ab4f089348eb7ec 100644
--- a/third_party/WebKit/Source/core/layout/LayoutProgress.h
+++ b/third_party/WebKit/Source/core/layout/LayoutProgress.h
@@ -46,6 +46,9 @@ public:
protected:
void willBeDestroyed() override;
+ bool isAnimating() const;
+ bool isAnimationTimerActive() const;
+
private:
bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectProgress || LayoutBlockFlow::isOfType(type); }
@@ -58,6 +61,8 @@ private:
double m_animationDuration;
bool m_animating;
Timer<LayoutProgress> m_animationTimer;
+
+ friend class LayoutProgressTest;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutProgress, isProgress());
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/LayoutProgress.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698