diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h b/chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h index 8f741b84c92..3fc347d75a5 100644 --- a/chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h +++ b/chromium/third_party/blink/renderer/core/layout/svg/line/svg_root_inline_box.h @@ -24,6 +24,7 @@ #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_SVG_LINE_SVG_ROOT_INLINE_BOX_H_ #include "third_party/blink/renderer/core/layout/line/root_inline_box.h" +#include "third_party/blink/renderer/platform/wtf/casting.h" namespace blink { @@ -60,7 +61,12 @@ class SVGRootInlineBox final : public RootInlineBox { LayoutUnit logical_height_; }; -DEFINE_INLINE_BOX_TYPE_CASTS(SVGRootInlineBox); +template <> +struct DowncastTraits<SVGRootInlineBox> { + static bool AllowFrom(const InlineBox& box) { + return box.IsSVGRootInlineBox(); + } +}; } // namespace blink |