| Index: Source/core/layout/api/LineLayoutText.cpp
|
| diff --git a/Source/core/layout/api/LineLayoutText.cpp b/Source/core/layout/api/LineLayoutText.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1bc8f796f7989f53f0ea9d08328413c04a9657a4
|
| --- /dev/null
|
| +++ b/Source/core/layout/api/LineLayoutText.cpp
|
| @@ -0,0 +1,36 @@
|
| +// 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/LineLayoutText.h"
|
| +
|
| +namespace blink {
|
| +
|
| +LineLayoutText::LineLayoutText(const LineLayoutItem& item)
|
| + : LineLayoutItem(item)
|
| +{
|
| + ASSERT(!item.layoutObject() || item.layoutObject()->isText());
|
| +}
|
| +
|
| +bool LineLayoutText::isWordBreak() const
|
| +{
|
| + return toText()->isWordBreak();
|
| +}
|
| +
|
| +bool LineLayoutText::isAllCollapsibleWhitespace() const
|
| +{
|
| + return toText()->isAllCollapsibleWhitespace();
|
| +}
|
| +
|
| +UChar LineLayoutText::characterAt(unsigned offset) const
|
| +{
|
| + return toText()->characterAt(offset);
|
| +}
|
| +
|
| +unsigned LineLayoutText::textLength() const
|
| +{
|
| + return toText()->textLength();
|
| +}
|
| +
|
| +} // namespace blink
|
|
|