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

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

Issue 2154593003: [css-grid] Fix indefinite height detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix fast/table/003.html test Created 4 years, 5 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 04c701c370f4fcc0f87c82d3f54ac3fae6a5d6d9..1d0f05a7e0afb45b434c4c2e577061c3c677d744 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1872,4 +1872,9 @@ void LayoutBlock::checkPositionedObjectsNeedLayout()
#endif
+bool LayoutBlock::hasDefiniteLogicalHeight() const
+{
+ return LayoutBox::availableLogicalHeightForPercentageComputation(this, false, scrollsOverflowY()) != LayoutUnit(-1);
svillar 2016/07/18 08:43:30 This is one of the reasons why bools are normally
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698