| 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #define SVGInlineFlowBox_h | 22 #define SVGInlineFlowBox_h |
| 23 | 23 |
| 24 #include "core/layout/line/InlineFlowBox.h" | 24 #include "core/layout/line/InlineFlowBox.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 class SVGInlineFlowBox final : public InlineFlowBox { | 28 class SVGInlineFlowBox final : public InlineFlowBox { |
| 29 public: | 29 public: |
| 30 SVGInlineFlowBox(LineLayoutItem item) | 30 SVGInlineFlowBox(LineLayoutItem item) |
| 31 : InlineFlowBox(item) | 31 : InlineFlowBox(item) |
| 32 , m_logicalHeight(0) | |
| 33 { | 32 { |
| 34 } | 33 } |
| 35 | 34 |
| 36 bool isSVGInlineFlowBox() const override { return true; } | 35 bool isSVGInlineFlowBox() const override { return true; } |
| 37 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; } | 36 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; } |
| 38 void setLogicalHeight(LayoutUnit h) { m_logicalHeight = h; } | 37 void setLogicalHeight(LayoutUnit h) { m_logicalHeight = h; } |
| 39 | 38 |
| 40 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom) const override; | 39 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU
nit lineBottom) const override; |
| 41 | 40 |
| 42 LayoutRect calculateBoundaries() const override; | 41 LayoutRect calculateBoundaries() const override; |
| 43 | 42 |
| 44 private: | 43 private: |
| 45 LayoutUnit m_logicalHeight; | 44 LayoutUnit m_logicalHeight; |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox); | 47 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox); |
| 49 | 48 |
| 50 } // namespace blink | 49 } // namespace blink |
| 51 | 50 |
| 52 #endif // SVGInlineFlowBox_h | 51 #endif // SVGInlineFlowBox_h |
| OLD | NEW |