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

Unified Diff: third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h

Issue 1921973005: [css tables] Don't pass table width increase due to % columns to parents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge ToT Created 4 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: third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h
diff --git a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h
index 32cd96af53ac88dc1f7a404a34243ee59367f726..28d7c7f1c0073cb61b4a2361dce4bbe01bc47d37 100644
--- a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h
+++ b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.h
@@ -54,6 +54,10 @@ public:
~TableLayoutAlgorithmAuto() override;
void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) override;
+ LayoutUnit scaledWidthFromPercentColumns() override
+ {
+ return m_scaledWidthFromPercentColumns;
+ }
void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUnit& maxWidth) const override;
void layout() override;
void willChangeTableLayout() override { }
@@ -96,6 +100,7 @@ private:
Vector<LayoutTableCell*, 4> m_spanCells;
bool m_hasPercent : 1;
mutable bool m_effectiveLogicalWidthDirty : 1;
+ LayoutUnit m_scaledWidthFromPercentColumns;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698