Index: third_party/WebKit/Source/core/layout/ViewFragmentationContext.h |
diff --git a/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h b/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..75cfb4fbe55160546c20ee75bc94116d1ca68b6c |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/layout/ViewFragmentationContext.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ViewFragmentationContext_h |
+#define ViewFragmentationContext_h |
+ |
+#include "core/layout/FragmentationContext.h" |
+ |
+namespace blink { |
+ |
+class LayoutView; |
+ |
+class ViewFragmentationContext final : public FragmentationContext { |
+public: |
+ ViewFragmentationContext(LayoutView& view) : m_view(view) { } |
+ bool isFragmentainerLogicalHeightKnown() final; |
+ LayoutUnit fragmentainerLogicalHeightAt(LayoutUnit blockOffset) final; |
+ LayoutUnit remainingLogicalHeightAt(LayoutUnit blockOffset) final; |
+ |
+private: |
+ LayoutView& m_view; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // ViewFragmentationContext_h |