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

Unified Diff: Source/core/layout/LayoutTable.cpp

Issue 1121173002: Fix shrink-to-fit when children's writing-mode is orthogonal (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: float tests added + cleanup a bit Created 5 years, 7 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: Source/core/layout/LayoutTable.cpp
diff --git a/Source/core/layout/LayoutTable.cpp b/Source/core/layout/LayoutTable.cpp
index 384d0926083ac2e31f860e38e95242e0beb75f70..07f8f818b5fe9d15da21e9a434e60bfa403f96bf 100644
--- a/Source/core/layout/LayoutTable.cpp
+++ b/Source/core/layout/LayoutTable.cpp
@@ -445,6 +445,7 @@ void LayoutTable::layout()
LayoutUnit oldLogicalHeight = logicalHeight();
setLogicalHeight(0);
+ recalcLogicalWidthAfterLayoutChildren:
updateLogicalWidth();
if (logicalWidth() != oldLogicalWidth) {
@@ -488,6 +489,12 @@ void LayoutTable::layout()
}
}
+ if (needsRecalcLogicalWidthAfterLayoutChildren()) {
+ clearNeedsRecalcLogicalWidthAfterLayoutChildren();
+ setPreferredLogicalWidthsDirty(MarkOnlyThis);
+ goto recalcLogicalWidthAfterLayoutChildren;
+ }
+
// FIXME: Collapse caption margin.
if (!m_captions.isEmpty()) {
for (unsigned i = 0; i < m_captions.size(); i++) {

Powered by Google App Engine
This is Rietveld 408576698