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

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

Issue 1909033003: Add FrameView::updateAllLifecyclePhasesExceptPaint and use it in a few cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 return true; 212 return true;
213 } else if (nextState == InPaint) { 213 } else if (nextState == InPaint) {
214 return true; 214 return true;
215 } 215 }
216 break; 216 break;
217 case InUpdatePaintProperties: 217 case InUpdatePaintProperties:
218 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled()) 218 if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::s limmingPaintV2Enabled())
219 return true; 219 return true;
220 break; 220 break;
221 case UpdatePaintPropertiesClean: 221 case UpdatePaintPropertiesClean:
222 if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabl ed()) 222 if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
223 break;
224 if (nextState == InPaint)
225 return true;
226 if (nextState == InStyleRecalc)
227 return true;
228 if (nextState == InPreLayout)
229 return true;
230 if (nextState == InCompositingUpdate)
223 return true; 231 return true;
224 break; 232 break;
225 case InPaint: 233 case InPaint:
226 if (nextState == PaintClean) 234 if (nextState == PaintClean)
227 return true; 235 return true;
228 break; 236 break;
229 case PaintClean: 237 case PaintClean:
230 if (nextState == InStyleRecalc) 238 if (nextState == InStyleRecalc)
231 return true; 239 return true;
232 if (nextState == InPreLayout) 240 if (nextState == InPreLayout)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 DEBUG_STRING_CASE(Stopping); 323 DEBUG_STRING_CASE(Stopping);
316 DEBUG_STRING_CASE(Stopped); 324 DEBUG_STRING_CASE(Stopped);
317 } 325 }
318 326
319 ASSERT_NOT_REACHED(); 327 ASSERT_NOT_REACHED();
320 return "Unknown"; 328 return "Unknown";
321 } 329 }
322 #endif 330 #endif
323 331
324 } // namespace blink 332 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698