| Index: third_party/WebKit/Source/core/layout/ng/NGFragment.h
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/NGFragment.h b/third_party/WebKit/Source/core/layout/ng/NGFragment.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3aa3bd8ba4ddd652cc79932fc6aa228fd10a915b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/layout/ng/NGFragment.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2016 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 NGFragment_h
|
| +#define NGFragment_h
|
| +
|
| +#include "core/CoreExport.h"
|
| +#include "platform/LayoutUnit.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class CORE_EXPORT NGFragment final {
|
| +public:
|
| + NGFragment(LayoutUnit inlineSize, LayoutUnit blockSize);
|
| + ~NGFragment() { }
|
| +
|
| + LayoutUnit inlineSize() const { return m_inlineSize; }
|
| + LayoutUnit blockSize() const { return m_blockSize; }
|
| +
|
| + LayoutUnit inlineOffset() const { return m_inlineOffset; }
|
| + LayoutUnit blockOffset() const { return m_blockOffset; }
|
| +
|
| + void setOffset(LayoutUnit inlineOffset, LayoutUnit blockOffset);
|
| +
|
| +private:
|
| + LayoutUnit m_inlineSize;
|
| + LayoutUnit m_blockSize;
|
| +
|
| + LayoutUnit m_inlineOffset;
|
| + LayoutUnit m_blockOffset;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // NGFragment_h
|
|
|