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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutProgress.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 35
36 double position() const { return m_position; } 36 double position() const { return m_position; }
37 double animationProgress() const; 37 double animationProgress() const;
38 38
39 bool isDeterminate() const; 39 bool isDeterminate() const;
40 void updateFromElement() override; 40 void updateFromElement() override;
41 41
42 HTMLProgressElement* progressElement() const; 42 HTMLProgressElement* progressElement() const;
43 43
44 const char* name() const override { return "LayoutProgress"; } 44 const char* name() const override { return "LayoutProgress"; }
45 char objectSize() const override { return sizeof(this); }
45 46
46 protected: 47 protected:
47 void willBeDestroyed() override; 48 void willBeDestroyed() override;
48 49
49 bool isAnimating() const; 50 bool isAnimating() const;
50 bool isAnimationTimerActive() const; 51 bool isAnimationTimerActive() const;
51 52
52 private: 53 private:
53 bool isOfType(LayoutObjectType type) const override { 54 bool isOfType(LayoutObjectType type) const override {
54 return type == LayoutObjectProgress || LayoutBlockFlow::isOfType(type); 55 return type == LayoutObjectProgress || LayoutBlockFlow::isOfType(type);
(...skipping 10 matching lines...) Expand all
65 TaskRunnerTimer<LayoutProgress> m_animationTimer; 66 TaskRunnerTimer<LayoutProgress> m_animationTimer;
66 67
67 friend class LayoutProgressTest; 68 friend class LayoutProgressTest;
68 }; 69 };
69 70
70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutProgress, isProgress()); 71 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutProgress, isProgress());
71 72
72 } // namespace blink 73 } // namespace blink
73 74
74 #endif // LayoutProgress_h 75 #endif // LayoutProgress_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutPart.h ('k') | third_party/WebKit/Source/core/layout/LayoutQuote.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698