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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2539693002: Early-out from the prepaint tree walk (Closed)
Patch Set: Address chrishtrs comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 2049367d76af354817202b78d02a37dc94f97772..26ebeb2a4846a7567048e001f6965319a87db34c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -2735,9 +2735,6 @@ void LayoutObject::willBeRemovedFromTree() {
void LayoutObject::setNeedsPaintPropertyUpdate() {
m_bitfields.setNeedsPaintPropertyUpdate(true);
- // Mark all ancestors as having a descendant needing paint property updates.
- // |paintInvalidationParent()| is used to ensure we continue marking across
- // frame boundaries.
LayoutObject* ancestor = paintInvalidationParent();
while (ancestor && !ancestor->descendantNeedsPaintPropertyUpdate()) {
ancestor->m_bitfields.setDescendantNeedsPaintPropertyUpdate(true);

Powered by Google App Engine
This is Rietveld 408576698