| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 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-2012. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010-2012. 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 bool needsReordering() const { return m_needsReordering; } | 54 bool needsReordering() const { return m_needsReordering; } |
| 55 const Vector<LayoutSVGInlineText*>& descendantTextNodes() const { | 55 const Vector<LayoutSVGInlineText*>& descendantTextNodes() const { |
| 56 return m_descendantTextNodes; | 56 return m_descendantTextNodes; |
| 57 } | 57 } |
| 58 | 58 |
| 59 void subtreeChildWasAdded(); | 59 void subtreeChildWasAdded(); |
| 60 void subtreeChildWillBeRemoved(); | 60 void subtreeChildWillBeRemoved(); |
| 61 void subtreeTextDidChange(); | 61 void subtreeTextDidChange(); |
| 62 | 62 |
| 63 const AffineTransform& localToSVGParentTransform() const override { | |
| 64 return m_localTransform; | |
| 65 } | |
| 66 | |
| 67 const char* name() const override { return "LayoutSVGText"; } | 63 const char* name() const override { return "LayoutSVGText"; } |
| 68 | 64 |
| 69 private: | 65 private: |
| 70 bool isOfType(LayoutObjectType type) const override { | 66 bool isOfType(LayoutObjectType type) const override { |
| 71 return type == LayoutObjectSVGText || LayoutSVGBlock::isOfType(type); | 67 return type == LayoutObjectSVGText || LayoutSVGBlock::isOfType(type); |
| 72 } | 68 } |
| 73 | 69 |
| 74 void paint(const PaintInfo&, const LayoutPoint&) const override; | 70 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 75 bool nodeAtFloatPoint(HitTestResult&, | 71 bool nodeAtFloatPoint(HitTestResult&, |
| 76 const FloatPoint& pointInParent, | 72 const FloatPoint& pointInParent, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 97 bool m_needsTransformUpdate : 1; | 93 bool m_needsTransformUpdate : 1; |
| 98 bool m_needsTextMetricsUpdate : 1; | 94 bool m_needsTextMetricsUpdate : 1; |
| 99 Vector<LayoutSVGInlineText*> m_descendantTextNodes; | 95 Vector<LayoutSVGInlineText*> m_descendantTextNodes; |
| 100 }; | 96 }; |
| 101 | 97 |
| 102 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); | 98 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); |
| 103 | 99 |
| 104 } // namespace blink | 100 } // namespace blink |
| 105 | 101 |
| 106 #endif | 102 #endif |
| OLD | NEW |