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

Unified Diff: Source/core/layout/MultiColumnFragmentainerGroup.h

Issue 1241703005: Make sure that no column rows get negative flow thread portion heights. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/core/layout/MultiColumnFragmentainerGroup.h
diff --git a/Source/core/layout/MultiColumnFragmentainerGroup.h b/Source/core/layout/MultiColumnFragmentainerGroup.h
index c55994764c3d818caf258bc9eb9bd5b7fa67f5ce..96dee3bb4796b5fc4dec3f32df751af0f0612eae 100644
--- a/Source/core/layout/MultiColumnFragmentainerGroup.h
+++ b/Source/core/layout/MultiColumnFragmentainerGroup.h
@@ -44,7 +44,7 @@ public:
// The bottom of our flow thread portion
LayoutUnit logicalBottomInFlowThread() const { return m_logicalBottomInFlowThread; }
- void setLogicalBottomInFlowThread(LayoutUnit logicalBottomInFlowThread) { m_logicalBottomInFlowThread = logicalBottomInFlowThread; }
+ void setLogicalBottomInFlowThread(LayoutUnit logicalBottomInFlowThread) { ASSERT(logicalBottomInFlowThread >= m_logicalTopInFlowThread); m_logicalBottomInFlowThread = logicalBottomInFlowThread; }
// The height of our flow thread portion
LayoutUnit logicalHeightInFlowThread() const { return m_logicalBottomInFlowThread - m_logicalTopInFlowThread; }

Powered by Google App Engine
This is Rietveld 408576698