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

Side by Side Diff: Source/core/dom/DocumentLifecycle.h

Issue 406743002: Make PaintInvalidation a DocumentLifecyle state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 StyleClean, 51 StyleClean,
52 52
53 InPreLayout, 53 InPreLayout,
54 InPerformLayout, 54 InPerformLayout,
55 AfterPerformLayout, 55 AfterPerformLayout,
56 LayoutClean, 56 LayoutClean,
57 57
58 InCompositingUpdate, 58 InCompositingUpdate,
59 CompositingClean, 59 CompositingClean,
60 60
61 InPaintInvalidation,
62 PaintInvalidationClean,
63
61 // Once the document starts shuting down, we cannot return 64 // Once the document starts shuting down, we cannot return
62 // to the style/layout/rendering states. 65 // to the style/layout/rendering states.
63 Stopping, 66 Stopping,
64 Stopped, 67 Stopped,
65 Disposed, 68 Disposed,
66 }; 69 };
67 70
68 class Scope { 71 class Scope {
69 WTF_MAKE_NONCOPYABLE(Scope); 72 WTF_MAKE_NONCOPYABLE(Scope);
70 public: 73 public:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 159 }
157 160
158 inline bool DocumentLifecycle::stateAllowsDetach() const 161 inline bool DocumentLifecycle::stateAllowsDetach() const
159 { 162 {
160 return m_state == VisualUpdatePending 163 return m_state == VisualUpdatePending
161 || m_state == InStyleRecalc 164 || m_state == InStyleRecalc
162 || m_state == StyleClean 165 || m_state == StyleClean
163 || m_state == InPreLayout 166 || m_state == InPreLayout
164 || m_state == LayoutClean 167 || m_state == LayoutClean
165 || m_state == CompositingClean 168 || m_state == CompositingClean
169 || m_state == PaintInvalidationClean
166 || m_state == Stopping; 170 || m_state == Stopping;
167 } 171 }
168 172
169 } 173 }
170 174
171 #endif 175 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698