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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp

Issue 1791543005: InPrePaint document state and PrePaintTreeWalk class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 case InPaintInvalidation: 212 case InPaintInvalidation:
213 return nextState == PaintInvalidationClean; 213 return nextState == PaintInvalidationClean;
214 case PaintInvalidationClean: 214 case PaintInvalidationClean:
215 if (nextState == InStyleRecalc) 215 if (nextState == InStyleRecalc)
216 return true; 216 return true;
217 if (nextState == InPreLayout) 217 if (nextState == InPreLayout)
218 return true; 218 return true;
219 if (nextState == InCompositingUpdate) 219 if (nextState == InCompositingUpdate)
220 return true; 220 return true;
221 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { 221 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
222 if (nextState == InUpdatePaintProperties) 222 if (nextState == InPrePaint)
223 return true; 223 return true;
224 } else if (nextState == InPaint) { 224 } else if (nextState == InPaint) {
225 return true; 225 return true;
226 } 226 }
227 break; 227 break;
228 case InUpdatePaintProperties: 228 case InPrePaint:
229 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled()) 229 if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV 2Enabled())
230 return true; 230 return true;
231 break; 231 break;
232 case UpdatePaintPropertiesClean: 232 case PrePaintClean:
233 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) 233 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
234 break; 234 break;
235 if (nextState == InPaint) 235 if (nextState == InPaint)
236 return true; 236 return true;
237 if (nextState == InStyleRecalc) 237 if (nextState == InStyleRecalc)
238 return true; 238 return true;
239 if (nextState == InPreLayout) 239 if (nextState == InPreLayout)
240 return true; 240 return true;
241 if (nextState == InCompositingUpdate) 241 if (nextState == InCompositingUpdate)
242 return true; 242 return true;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 DEBUG_STRING_CASE(InLayoutSubtreeChange); 320 DEBUG_STRING_CASE(InLayoutSubtreeChange);
321 DEBUG_STRING_CASE(LayoutSubtreeChangeClean); 321 DEBUG_STRING_CASE(LayoutSubtreeChangeClean);
322 DEBUG_STRING_CASE(InPreLayout); 322 DEBUG_STRING_CASE(InPreLayout);
323 DEBUG_STRING_CASE(InPerformLayout); 323 DEBUG_STRING_CASE(InPerformLayout);
324 DEBUG_STRING_CASE(AfterPerformLayout); 324 DEBUG_STRING_CASE(AfterPerformLayout);
325 DEBUG_STRING_CASE(LayoutClean); 325 DEBUG_STRING_CASE(LayoutClean);
326 DEBUG_STRING_CASE(InCompositingUpdate); 326 DEBUG_STRING_CASE(InCompositingUpdate);
327 DEBUG_STRING_CASE(CompositingClean); 327 DEBUG_STRING_CASE(CompositingClean);
328 DEBUG_STRING_CASE(InPaintInvalidation); 328 DEBUG_STRING_CASE(InPaintInvalidation);
329 DEBUG_STRING_CASE(PaintInvalidationClean); 329 DEBUG_STRING_CASE(PaintInvalidationClean);
330 DEBUG_STRING_CASE(InUpdatePaintProperties); 330 DEBUG_STRING_CASE(InPrePaint);
331 DEBUG_STRING_CASE(UpdatePaintPropertiesClean); 331 DEBUG_STRING_CASE(PrePaintClean);
332 DEBUG_STRING_CASE(InPaint); 332 DEBUG_STRING_CASE(InPaint);
333 DEBUG_STRING_CASE(PaintClean); 333 DEBUG_STRING_CASE(PaintClean);
334 DEBUG_STRING_CASE(Stopping); 334 DEBUG_STRING_CASE(Stopping);
335 DEBUG_STRING_CASE(Stopped); 335 DEBUG_STRING_CASE(Stopped);
336 } 336 }
337 337
338 ASSERT_NOT_REACHED(); 338 ASSERT_NOT_REACHED();
339 return "Unknown"; 339 return "Unknown";
340 } 340 }
341 #endif 341 #endif
342 342
343 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698