OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 |
| 7 #include "core/layout/ViewFragmentationContext.h" |
| 8 |
| 9 #include "core/layout/LayoutView.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 bool ViewFragmentationContext::isFragmentainerLogicalHeightKnown() |
| 14 { |
| 15 ASSERT(m_view.pageLogicalHeight()); |
| 16 return true; |
| 17 } |
| 18 |
| 19 LayoutUnit ViewFragmentationContext::fragmentainerLogicalHeightAt(LayoutUnit) |
| 20 { |
| 21 ASSERT(m_view.pageLogicalHeight()); |
| 22 return m_view.pageLogicalHeight(); |
| 23 } |
| 24 |
| 25 LayoutUnit ViewFragmentationContext::remainingLogicalHeightAt(LayoutUnit blockOf
fset) |
| 26 { |
| 27 LayoutUnit pageLogicalHeight = m_view.pageLogicalHeight(); |
| 28 return pageLogicalHeight - intMod(blockOffset, pageLogicalHeight); |
| 29 } |
| 30 |
| 31 } // namespace blink |
OLD | NEW |