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

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

Issue 2376483002: Initialize properly availableHeight in computePercentageLogicalHeight (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/table/quirks-mode-percent-height-expected.html ('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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index 2f0c98f78df8b94055def04cbc67dc3db7bdd15f..d2214743dc36a06ebe1d13de49223450a4f2e287 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -2839,7 +2839,7 @@ LayoutUnit LayoutBox::computePercentageLogicalHeight(const Length& height) const
}
cb->addPercentHeightDescendant(const_cast<LayoutBox*>(this));
- LayoutUnit availableHeight;
+ LayoutUnit availableHeight(-1);
if (isHorizontalWritingMode() != cb->isHorizontalWritingMode()) {
availableHeight = containingBlockChild->containingBlockLogicalWidthForContent();
} else if (hasOverrideContainingBlockLogicalHeight()) {
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/table/quirks-mode-percent-height-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698