Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / layout / api / LineLayoutTextCombine.h
blob84d775615531586e218cf15f1d26e8585e676cdc
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"
11 namespace blink {
13 class LineLayoutTextCombine : public LineLayoutText {
14 public:
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();
33 private:
34 LayoutTextCombine* toTextCombine()
36 return toLayoutTextCombine(layoutObject());
39 const LayoutTextCombine* toTextCombine() const
41 return toLayoutTextCombine(layoutObject());
45 } // namespace blink
47 #endif // LineLayoutTextCombine_h