Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef LineLayoutSVGInline_h | |
| 6 #define LineLayoutSVGInline_h | |
| 7 | |
| 8 #include "core/layout/api/LineLayoutInline.h" | |
| 9 #include "core/layout/svg/LayoutSVGInline.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class LineLayoutSVGInline : public LineLayoutInline { | |
|
leviw_travelin_and_unemployed
2016/02/08 08:09:48
Is there an expectation that methods will end up h
| |
| 14 public: | |
| 15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline) | |
| 16 : LineLayoutInline(layoutSVGInline) | |
| 17 { | |
| 18 } | |
| 19 | |
| 20 explicit LineLayoutSVGInline(const LineLayoutItem& item) | |
| 21 : LineLayoutInline(item) | |
| 22 { | |
| 23 ASSERT(!item || item.isSVGInline()); | |
| 24 } | |
| 25 | |
| 26 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) { } | |
| 27 | |
| 28 LineLayoutSVGInline() { } | |
| 29 | |
| 30 private: | |
| 31 LayoutSVGInline* toSVGInline() | |
| 32 { | |
| 33 return toLayoutSVGInline(layoutObject()); | |
| 34 } | |
| 35 | |
| 36 const LayoutSVGInline* toSVGInline() const | |
| 37 { | |
| 38 return toLayoutSVGInline(layoutObject()); | |
| 39 } | |
| 40 }; | |
| 41 | |
| 42 } // namespace blink | |
| 43 | |
| 44 #endif // LineLayoutSVGInline_h | |
| OLD | NEW |