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

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

Issue 999033002: Advance document lifecycle to CompositingClean prior to hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add assert and allow CompositingClean change to InPreLayout Created 5 years, 9 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 | Source/core/layout/LayoutView.cpp » ('j') | Source/core/layout/LayoutView.cpp » ('J')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // can happen when we call layout recursively and we unwind the stack. 123 // can happen when we call layout recursively and we unwind the stack.
124 if (state == LayoutClean) 124 if (state == LayoutClean)
125 return true; 125 return true;
126 if (state == StyleClean) 126 if (state == StyleClean)
127 return true; 127 return true;
128 return false; 128 return false;
129 } 129 }
130 if (m_state == CompositingClean) { 130 if (m_state == CompositingClean) {
131 if (state == InStyleRecalc) 131 if (state == InStyleRecalc)
132 return true; 132 return true;
133 if (state == InPreLayout)
leviw_travelin_and_unemployed 2015/03/12 20:09:32 Why this change?
qiankun 2015/03/13 03:23:10 When running layout test, LayoutTreeAsText::writeL
esprehn 2015/03/24 23:06:05 I think this is a bug in LayoutTreeAsText::writeLa
134 return true;
133 if (state == InCompositingUpdate) 135 if (state == InCompositingUpdate)
134 return true; 136 return true;
135 if (state == InPaintInvalidation) 137 if (state == InPaintInvalidation)
136 return true; 138 return true;
137 return false; 139 return false;
138 } 140 }
139 if (m_state == InPaintInvalidation) { 141 if (m_state == InPaintInvalidation) {
140 if (state == PaintInvalidationClean) 142 if (state == PaintInvalidationClean)
141 return true; 143 return true;
142 return false; 144 return false;
(...skipping 29 matching lines...) Expand all
172 void DocumentLifecycle::ensureStateAtMost(State state) 174 void DocumentLifecycle::ensureStateAtMost(State state)
173 { 175 {
174 ASSERT(state == VisualUpdatePending || state == StyleClean || state == Layou tClean); 176 ASSERT(state == VisualUpdatePending || state == StyleClean || state == Layou tClean);
175 if (m_state <= state) 177 if (m_state <= state)
176 return; 178 return;
177 ASSERT(canRewindTo(state)); 179 ASSERT(canRewindTo(state));
178 m_state = state; 180 m_state = state;
179 } 181 }
180 182
181 } 183 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutView.cpp » ('j') | Source/core/layout/LayoutView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698