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

Side by Side Diff: sky/engine/core/dom/DocumentLifecycle.h

Issue 847393003: Remove the PaintInvalidation DocumentLifeCycle states. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 VisualUpdatePending, 47 VisualUpdatePending,
48 48
49 InStyleRecalc, 49 InStyleRecalc,
50 StyleClean, 50 StyleClean,
51 51
52 InPreLayout, 52 InPreLayout,
53 InPerformLayout, 53 InPerformLayout,
54 AfterPerformLayout, 54 AfterPerformLayout,
55 LayoutClean, 55 LayoutClean,
56 56
57 InPaintInvalidation, 57 StyleAndLayoutClean,
58 PaintInvalidationClean,
59 58
60 // Once the document starts shuting down, we cannot return 59 // Once the document starts shuting down, we cannot return
61 // to the style/layout/rendering states. 60 // to the style/layout/rendering states.
62 Stopping, 61 Stopping,
63 Stopped, 62 Stopped,
64 Disposed, 63 Disposed,
65 }; 64 };
66 65
67 class Scope { 66 class Scope {
68 WTF_MAKE_NONCOPYABLE(Scope); 67 WTF_MAKE_NONCOPYABLE(Scope);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return m_detachCount || m_state == InStyleRecalc; 149 return m_detachCount || m_state == InStyleRecalc;
151 } 150 }
152 151
153 inline bool DocumentLifecycle::stateAllowsDetach() const 152 inline bool DocumentLifecycle::stateAllowsDetach() const
154 { 153 {
155 return m_state == VisualUpdatePending 154 return m_state == VisualUpdatePending
156 || m_state == InStyleRecalc 155 || m_state == InStyleRecalc
157 || m_state == StyleClean 156 || m_state == StyleClean
158 || m_state == InPreLayout 157 || m_state == InPreLayout
159 || m_state == LayoutClean 158 || m_state == LayoutClean
160 || m_state == PaintInvalidationClean 159 || m_state == StyleAndLayoutClean
161 || m_state == Stopping; 160 || m_state == Stopping;
162 } 161 }
163 162
164 } 163 }
165 164
166 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTLIFECYCLE_H_ 165 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTLIFECYCLE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/animation/DocumentAnimations.cpp ('k') | sky/engine/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698