OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 Stopped, | 77 Stopped, |
78 Disposed, | 78 Disposed, |
79 }; | 79 }; |
80 | 80 |
81 class Scope { | 81 class Scope { |
82 WTF_MAKE_NONCOPYABLE(Scope); | 82 WTF_MAKE_NONCOPYABLE(Scope); |
83 public: | 83 public: |
84 Scope(DocumentLifecycle&, State finalState); | 84 Scope(DocumentLifecycle&, State finalState); |
85 ~Scope(); | 85 ~Scope(); |
86 | 86 |
87 void setFinalState(State finalState) { m_finalState = finalState; } | |
88 | |
89 private: | 87 private: |
90 DocumentLifecycle& m_lifecycle; | 88 DocumentLifecycle& m_lifecycle; |
91 State m_finalState; | 89 State m_finalState; |
92 }; | 90 }; |
93 | 91 |
94 class DeprecatedTransition { | 92 class DeprecatedTransition { |
95 WTF_MAKE_NONCOPYABLE(DeprecatedTransition); | 93 WTF_MAKE_NONCOPYABLE(DeprecatedTransition); |
96 public: | 94 public: |
97 DeprecatedTransition(State from, State to); | 95 DeprecatedTransition(State from, State to); |
98 ~DeprecatedTransition(); | 96 ~DeprecatedTransition(); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 return m_state != InPerformLayout | 196 return m_state != InPerformLayout |
199 && m_state != InCompositingUpdate | 197 && m_state != InCompositingUpdate |
200 && m_state != InPaintInvalidation | 198 && m_state != InPaintInvalidation |
201 && m_state != InPaintForSlimmingPaintV2 | 199 && m_state != InPaintForSlimmingPaintV2 |
202 && m_state != InCompositingForSlimmingPaintV2; | 200 && m_state != InCompositingForSlimmingPaintV2; |
203 } | 201 } |
204 | 202 |
205 } // namespace blink | 203 } // namespace blink |
206 | 204 |
207 #endif | 205 #endif |
OLD | NEW |