Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 | 21 |
| 22 #ifndef SVGInlineTextBox_h | 22 #ifndef SVGInlineTextBox_h |
| 23 #define SVGInlineTextBox_h | 23 #define SVGInlineTextBox_h |
| 24 | 24 |
| 25 #include "core/rendering/InlineTextBox.h" | 25 #include "core/rendering/InlineTextBox.h" |
| 26 #include "core/rendering/svg/RenderSVGResource.h" | 26 #include "core/rendering/svg/RenderSVGResource.h" |
| 27 #include "core/rendering/svg/SVGTextLayoutEngine.h" | 27 #include "core/rendering/svg/SVGTextLayoutEngine.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class RenderSVGResource; | |
| 32 | 31 |
|
pdr.
2014/09/18 19:54:00
Remove the extra newline too please
zhaoze.zhou
2014/09/18 19:59:57
Done.
| |
| 33 class SVGInlineTextBox FINAL : public InlineTextBox { | 32 class SVGInlineTextBox FINAL : public InlineTextBox { |
| 34 public: | 33 public: |
| 35 SVGInlineTextBox(RenderObject&); | 34 SVGInlineTextBox(RenderObject&); |
| 36 | 35 |
| 37 virtual bool isSVGInlineTextBox() const OVERRIDE { return true; } | 36 virtual bool isSVGInlineTextBox() const OVERRIDE { return true; } |
| 38 | 37 |
| 39 virtual float virtualLogicalHeight() const OVERRIDE { return m_logicalHeight ; } | 38 virtual float virtualLogicalHeight() const OVERRIDE { return m_logicalHeight ; } |
| 40 void setLogicalHeight(float height) { m_logicalHeight = height; } | 39 void setLogicalHeight(float height) { m_logicalHeight = height; } |
| 41 | 40 |
| 42 virtual int offsetForPosition(float x, bool includePartialGlyphs = true) con st OVERRIDE; | 41 virtual int offsetForPosition(float x, bool includePartialGlyphs = true) con st OVERRIDE; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 float m_logicalHeight; | 81 float m_logicalHeight; |
| 83 bool m_startsNewTextChunk : 1; | 82 bool m_startsNewTextChunk : 1; |
| 84 Vector<SVGTextFragment> m_textFragments; | 83 Vector<SVGTextFragment> m_textFragments; |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); | 86 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); |
| 88 | 87 |
| 89 } // namespace blink | 88 } // namespace blink |
| 90 | 89 |
| 91 #endif // SVGInlineTextBox_h | 90 #endif // SVGInlineTextBox_h |
| OLD | NEW |