1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef LineLayoutTextCombine_h
6 #define LineLayoutTextCombine_h
8 #include "core/layout/LayoutTextCombine.h"
9 #include "core/layout/api/LineLayoutText.h"
13 class LineLayoutTextCombine
: public LineLayoutText
{
15 explicit LineLayoutTextCombine(LayoutTextCombine
* layoutTextCombine
)
16 : LineLayoutText(layoutTextCombine
)
20 explicit LineLayoutTextCombine(const LineLayoutItem
& item
)
21 : LineLayoutText(item
)
23 ASSERT(!item
|| item
.isCombineText());
26 LineLayoutTextCombine() { }
28 bool isCombined() const
30 return toTextCombine()->isCombined();
34 LayoutTextCombine
* toTextCombine()
36 return toLayoutTextCombine(layoutObject());
39 const LayoutTextCombine
* toTextCombine() const
41 return toLayoutTextCombine(layoutObject());
47 #endif // LineLayoutTextCombine_h