Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h |
| diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e4c50e8ee9737c7ac412d5954570953d3daf9190 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInline.h |
| @@ -0,0 +1,44 @@ |
| +// 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. |
| + |
| +#ifndef LineLayoutSVGInline_h |
| +#define LineLayoutSVGInline_h |
| + |
| +#include "core/layout/api/LineLayoutInline.h" |
| +#include "core/layout/svg/LayoutSVGInline.h" |
| + |
| +namespace blink { |
| + |
| +class LineLayoutSVGInline : public LineLayoutInline { |
|
leviw_travelin_and_unemployed
2016/02/08 08:09:48
Is there an expectation that methods will end up h
|
| +public: |
| + explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline) |
| + : LineLayoutInline(layoutSVGInline) |
| + { |
| + } |
| + |
| + explicit LineLayoutSVGInline(const LineLayoutItem& item) |
| + : LineLayoutInline(item) |
| + { |
| + ASSERT(!item || item.isSVGInline()); |
| + } |
| + |
| + explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) { } |
| + |
| + LineLayoutSVGInline() { } |
| + |
| +private: |
| + LayoutSVGInline* toSVGInline() |
| + { |
| + return toLayoutSVGInline(layoutObject()); |
| + } |
| + |
| + const LayoutSVGInline* toSVGInline() const |
| + { |
| + return toLayoutSVGInline(layoutObject()); |
| + } |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // LineLayoutSVGInline_h |