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

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

Issue 1906803002: Prevent markContainerChainForLayout to scheduleRelayout() if isInPerformLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RELEASE_ASSERT to FrameView 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 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 0204a2614af5b3f66a06967dbaf95bdadfb5616a..92bef7b769ef31e7dabc8753e8375b2d08646145 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -803,7 +803,7 @@ void LayoutObject::markContainerChainForLayout(bool scheduleRelayout, SubtreeLay
object = container;
}
- if (scheduleRelayout)
+ if (scheduleRelayout && !frameView()->isInPerformLayout())
leviw_travelin_and_unemployed 2016/04/22 17:24:33 This is probably worthy of a comment.
last->scheduleRelayout();
}

Powered by Google App Engine
This is Rietveld 408576698