| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void setWidth(float width) { m_width = width; } | 48 void setWidth(float width) { m_width = width; } |
| 49 | 49 |
| 50 float height() const { return m_height; } | 50 float height() const { return m_height; } |
| 51 | 51 |
| 52 // TODO(kojii): We should store logical width (advance) and height instead | 52 // TODO(kojii): We should store logical width (advance) and height instead |
| 53 // of storing physical and calculate logical. crbug.com/544767 | 53 // of storing physical and calculate logical. crbug.com/544767 |
| 54 float advance(FontOrientation) const; | 54 float advance(FontOrientation) const; |
| 55 unsigned length() const { return m_length; } | 55 unsigned length() const { return m_length; } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 SVGTextMetrics(LineLayoutSVGInlineText, const TextRun&); | |
| 59 | |
| 60 float m_width; | 58 float m_width; |
| 61 float m_height; | 59 float m_height; |
| 62 unsigned m_length; | 60 unsigned m_length; |
| 63 }; | 61 }; |
| 64 | 62 |
| 65 } // namespace blink | 63 } // namespace blink |
| 66 | 64 |
| 67 #endif | 65 #endif |
| OLD | NEW |