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

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

Issue 2441373002: Percent height content should respect the height of its containing cell (Closed)
Patch Set: bug 637811 Created 4 years, 1 month 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/LayoutTableCell.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
index 48aa589b5862e815fa464165e8e671569ecacc45..09afd73e9de8e179841b4493978852ec45655ea6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
@@ -387,7 +387,8 @@ void LayoutTableCell::setOverrideLogicalContentHeightFromRowHeight(
LayoutUnit rowHeight) {
clearIntrinsicPadding();
setOverrideLogicalContentHeight(
- (rowHeight - borderAndPaddingLogicalHeight()).clampNegativeToZero());
+ (rowHeight - collapsedBorderAndCSSPaddingLogicalHeight())
+ .clampNegativeToZero());
}
LayoutSize LayoutTableCell::offsetFromContainer(const LayoutObject* o) const {

Powered by Google App Engine
This is Rietveld 408576698