| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef LineLayoutSVGInline_h | 5 #ifndef LineLayoutSVGInline_h |
| 6 #define LineLayoutSVGInline_h | 6 #define LineLayoutSVGInline_h |
| 7 | 7 |
| 8 #include "core/layout/api/LineLayoutInline.h" | 8 #include "core/layout/api/LineLayoutInline.h" |
| 9 #include "core/layout/svg/LayoutSVGInline.h" | 9 #include "core/layout/svg/LayoutSVGInline.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class LineLayoutSVGInline : public LineLayoutInline { | 13 class LineLayoutSVGInline : public LineLayoutInline { |
| 14 public: | 14 public: |
| 15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline) | 15 explicit LineLayoutSVGInline(LayoutSVGInline* layoutSVGInline) |
| 16 : LineLayoutInline(layoutSVGInline) {} | 16 : LineLayoutInline(layoutSVGInline) {} |
| 17 | 17 |
| 18 explicit LineLayoutSVGInline(const LineLayoutItem& item) | 18 explicit LineLayoutSVGInline(const LineLayoutItem& item) |
| 19 : LineLayoutInline(item) { | 19 : LineLayoutInline(item) { |
| 20 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isSVGInline()); | 20 SECURITY_DCHECK(!item || item.isSVGInline()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) {} | 23 explicit LineLayoutSVGInline(std::nullptr_t) : LineLayoutInline(nullptr) {} |
| 24 | 24 |
| 25 LineLayoutSVGInline() {} | 25 LineLayoutSVGInline() {} |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 LayoutSVGInline* toSVGInline() { return toLayoutSVGInline(layoutObject()); } | 28 LayoutSVGInline* toSVGInline() { return toLayoutSVGInline(layoutObject()); } |
| 29 | 29 |
| 30 const LayoutSVGInline* toSVGInline() const { | 30 const LayoutSVGInline* toSVGInline() const { |
| 31 return toLayoutSVGInline(layoutObject()); | 31 return toLayoutSVGInline(layoutObject()); |
| 32 } | 32 } |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace blink | 35 } // namespace blink |
| 36 | 36 |
| 37 #endif // LineLayoutSVGInline_h | 37 #endif // LineLayoutSVGInline_h |
| OLD | NEW |