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

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

Issue 2046813002: [css] Don't let table parts be layout boundaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 80b5de729fdeeb9c48259570b3956b2a4805960d..3fa712caf4820221c2ff017aa472bb574ac96a9c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -713,6 +713,10 @@ static inline bool objectIsRelayoutBoundary(const LayoutObject* object)
if (object->isSVGRoot())
return true;
+ // Table parts can't be relayout roots since the table is responsible for layouting all the parts.
+ if (object->isTablePart())
+ return false;
+
if (object->style()->containsLayout() && object->style()->containsSize())
return true;
@@ -722,10 +726,6 @@ static inline bool objectIsRelayoutBoundary(const LayoutObject* object)
if (object->style()->width().isIntrinsicOrAuto() || object->style()->height().isIntrinsicOrAuto() || object->style()->height().hasPercent())
return false;
- // Table parts can't be relayout roots since the table is responsible for layouting all the parts.
- if (object->isTablePart())
- return false;
-
// Scrollbar parts can be removed during layout. Avoid the complexity of having to deal with that.
if (object->isLayoutScrollbarPart())
return false;

Powered by Google App Engine
This is Rietveld 408576698