| Index: Source/core/layout/api/LineLayoutBox.cpp
|
| diff --git a/Source/core/layout/api/LineLayoutBox.cpp b/Source/core/layout/api/LineLayoutBox.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..643be179ad0a16d00d8940a84d07b047b1cc6ec8
|
| --- /dev/null
|
| +++ b/Source/core/layout/api/LineLayoutBox.cpp
|
| @@ -0,0 +1,43 @@
|
| +// 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.
|
| +
|
| +#include "config.h"
|
| +#include "core/layout/api/LineLayoutBox.h"
|
| +
|
| +#include "core/layout/LayoutBox.h"
|
| +
|
| +namespace blink {
|
| +
|
| +LineLayoutBox::LineLayoutBox(LayoutBox* layoutBox)
|
| + : LineLayoutItem(layoutBox)
|
| +{
|
| +}
|
| +
|
| +LineLayoutBox::LineLayoutBox(const LineLayoutItem& item)
|
| + : LineLayoutItem(item)
|
| +{
|
| + ASSERT(!item.layoutObject() || item.layoutObject()->isBox());
|
| +}
|
| +
|
| +void LineLayoutBox::setLogicalHeight(LayoutUnit size)
|
| +{
|
| + box()->setLogicalHeight(size);
|
| +}
|
| +
|
| +LayoutUnit LineLayoutBox::logicalHeight() const
|
| +{
|
| + return box()->logicalHeight();
|
| +}
|
| +
|
| +LayoutBox* LineLayoutBox::box()
|
| +{
|
| + return toLayoutBox(layoutObject());
|
| +}
|
| +
|
| +const LayoutBox* LineLayoutBox::box() const
|
| +{
|
| + return toLayoutBox(layoutObject());
|
| +}
|
| +
|
| +} // namespace blink
|
|
|