blob: 75cfb4fbe55160546c20ee75bc94116d1ca68b6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|