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

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

Issue 2586853002: Prohibit LayoutInline from being relayout boundary (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/containment/inline-contain-layout-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88ed08ce73c53ec9f01818f7d54bdfd61dc56081..1971c428c44b51610abe07a89262f2d0c6753700 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -696,6 +696,11 @@ static inline bool objectIsRelayoutBoundary(const LayoutObject* object) {
if (object->isSVGRoot())
return true;
+ // LayoutInline can't be relayout roots since LayoutBlockFlow is responsible
+ // for layouting them.
+ if (object->isLayoutInline())
+ return false;
+
// Table parts can't be relayout roots since the table is responsible for
// layouting all the parts.
if (object->isTablePart())
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/containment/inline-contain-layout-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698