OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
3 * Copyright (C) 2006 Apple Computer Inc. | 3 * Copyright (C) 2006 Apple Computer Inc. |
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 13 matching lines...) Expand all Loading... |
24 #define SVGRootInlineBox_h | 24 #define SVGRootInlineBox_h |
25 | 25 |
26 #include "core/layout/line/RootInlineBox.h" | 26 #include "core/layout/line/RootInlineBox.h" |
27 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 class SVGRootInlineBox final : public RootInlineBox { | 30 class SVGRootInlineBox final : public RootInlineBox { |
31 public: | 31 public: |
32 SVGRootInlineBox(LineLayoutItem block) | 32 SVGRootInlineBox(LineLayoutItem block) |
33 : RootInlineBox(block) | 33 : RootInlineBox(block) |
34 , m_logicalHeight(0) | |
35 { | 34 { |
36 } | 35 } |
37 | 36 |
38 bool isSVGRootInlineBox() const override { return true; } | 37 bool isSVGRootInlineBox() const override { return true; } |
39 | 38 |
40 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; } | 39 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; } |
41 void setLogicalHeight(LayoutUnit height) { m_logicalHeight = height; } | 40 void setLogicalHeight(LayoutUnit height) { m_logicalHeight = height; } |
42 | 41 |
43 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom) const override; | 42 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom) const override; |
44 | 43 |
(...skipping 12 matching lines...) Expand all Loading... |
57 | 56 |
58 private: | 57 private: |
59 LayoutUnit m_logicalHeight; | 58 LayoutUnit m_logicalHeight; |
60 }; | 59 }; |
61 | 60 |
62 DEFINE_INLINE_BOX_TYPE_CASTS(SVGRootInlineBox); | 61 DEFINE_INLINE_BOX_TYPE_CASTS(SVGRootInlineBox); |
63 | 62 |
64 } // namespace blink | 63 } // namespace blink |
65 | 64 |
66 #endif // SVGRootInlineBox_h | 65 #endif // SVGRootInlineBox_h |
OLD | NEW |