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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 kInLayoutSubtreeChange, | 61 kInLayoutSubtreeChange, |
62 kLayoutSubtreeChangeClean, | 62 kLayoutSubtreeChangeClean, |
63 | 63 |
64 kInPreLayout, | 64 kInPreLayout, |
65 kInPerformLayout, | 65 kInPerformLayout, |
66 kAfterPerformLayout, | 66 kAfterPerformLayout, |
67 kLayoutClean, | 67 kLayoutClean, |
68 | 68 |
69 kInCompositingUpdate, | 69 kInCompositingUpdate, |
| 70 kCompositingInputsClean, |
70 kCompositingClean, | 71 kCompositingClean, |
71 | 72 |
72 kInPaintInvalidation, | 73 kInPaintInvalidation, |
73 kPaintInvalidationClean, | 74 kPaintInvalidationClean, |
74 | 75 |
75 // In InPrePaint step, any data needed by painting are prepared. | 76 // In InPrePaint step, any data needed by painting are prepared. |
76 // When RuntimeEnabledFeatures::slimmingPaintV2Enabled, paint property trees | 77 // When RuntimeEnabledFeatures::slimmingPaintV2Enabled, paint property trees |
77 // are built. | 78 // are built. |
78 // Otherwise these steps are not applicable. | 79 // Otherwise these steps are not applicable. |
79 kInPrePaint, | 80 kInPrePaint, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 } | 239 } |
239 | 240 |
240 inline bool DocumentLifecycle::StateAllowsLayoutTreeNotifications() const { | 241 inline bool DocumentLifecycle::StateAllowsLayoutTreeNotifications() const { |
241 return state_ == kInLayoutSubtreeChange; | 242 return state_ == kInLayoutSubtreeChange; |
242 } | 243 } |
243 | 244 |
244 inline bool DocumentLifecycle::StateAllowsDetach() const { | 245 inline bool DocumentLifecycle::StateAllowsDetach() const { |
245 return state_ == kVisualUpdatePending || state_ == kInStyleRecalc || | 246 return state_ == kVisualUpdatePending || state_ == kInStyleRecalc || |
246 state_ == kStyleClean || state_ == kLayoutSubtreeChangeClean || | 247 state_ == kStyleClean || state_ == kLayoutSubtreeChangeClean || |
247 state_ == kInPreLayout || state_ == kLayoutClean || | 248 state_ == kInPreLayout || state_ == kLayoutClean || |
248 state_ == kCompositingClean || state_ == kPaintInvalidationClean || | 249 state_ == kCompositingInputsClean || state_ == kCompositingClean || |
249 state_ == kPrePaintClean || state_ == kPaintClean || | 250 state_ == kPaintInvalidationClean || state_ == kPrePaintClean || |
250 state_ == kStopping; | 251 state_ == kPaintClean || state_ == kStopping; |
251 } | 252 } |
252 | 253 |
253 inline bool DocumentLifecycle::StateAllowsLayoutInvalidation() const { | 254 inline bool DocumentLifecycle::StateAllowsLayoutInvalidation() const { |
254 return state_ != kInPerformLayout && state_ != kInCompositingUpdate && | 255 return state_ != kInPerformLayout && state_ != kInCompositingUpdate && |
255 state_ != kInPaintInvalidation && state_ != kInPrePaint && | 256 state_ != kInPaintInvalidation && state_ != kInPrePaint && |
256 state_ != kInPaint; | 257 state_ != kInPaint; |
257 } | 258 } |
258 | 259 |
259 } // namespace blink | 260 } // namespace blink |
260 | 261 |
261 #endif | 262 #endif |
OLD | NEW |