| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 2  * Copyright (C) Research In Motion Limited 2010-2011. 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 30 matching lines...) Expand all  Loading... | 
| 41 }; | 41 }; | 
| 42 | 42 | 
| 43 typedef HashMap<unsigned, SVGCharacterData> SVGCharacterDataMap; | 43 typedef HashMap<unsigned, SVGCharacterData> SVGCharacterDataMap; | 
| 44 | 44 | 
| 45 class SVGTextLayoutAttributes { | 45 class SVGTextLayoutAttributes { | 
| 46     WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributes); | 46     WTF_MAKE_NONCOPYABLE(SVGTextLayoutAttributes); | 
| 47 public: | 47 public: | 
| 48     SVGTextLayoutAttributes(RenderSVGInlineText*); | 48     SVGTextLayoutAttributes(RenderSVGInlineText*); | 
| 49 | 49 | 
| 50     void clear(); | 50     void clear(); | 
| 51     void dump() const; |  | 
| 52     static float emptyValue(); | 51     static float emptyValue(); | 
| 53 | 52 | 
| 54     RenderSVGInlineText* context() const { return m_context; } | 53     RenderSVGInlineText* context() const { return m_context; } | 
| 55 | 54 | 
| 56     SVGCharacterDataMap& characterDataMap() { return m_characterDataMap; } | 55     SVGCharacterDataMap& characterDataMap() { return m_characterDataMap; } | 
| 57     const SVGCharacterDataMap& characterDataMap() const { return m_characterData
    Map; } | 56     const SVGCharacterDataMap& characterDataMap() const { return m_characterData
    Map; } | 
| 58 | 57 | 
| 59     Vector<SVGTextMetrics>& textMetricsValues() { return m_textMetricsValues; } | 58     Vector<SVGTextMetrics>& textMetricsValues() { return m_textMetricsValues; } | 
| 60     const Vector<SVGTextMetrics>& textMetricsValues() const { return m_textMetri
    csValues; } | 59     const Vector<SVGTextMetrics>& textMetricsValues() const { return m_textMetri
    csValues; } | 
| 61 | 60 | 
| 62 private: | 61 private: | 
| 63     RenderSVGInlineText* m_context; | 62     RenderSVGInlineText* m_context; | 
| 64     SVGCharacterDataMap m_characterDataMap; | 63     SVGCharacterDataMap m_characterDataMap; | 
| 65     Vector<SVGTextMetrics> m_textMetricsValues; | 64     Vector<SVGTextMetrics> m_textMetricsValues; | 
| 66 }; | 65 }; | 
| 67 | 66 | 
| 68 inline SVGCharacterData::SVGCharacterData() | 67 inline SVGCharacterData::SVGCharacterData() | 
| 69     : x(SVGTextLayoutAttributes::emptyValue()) | 68     : x(SVGTextLayoutAttributes::emptyValue()) | 
| 70     , y(SVGTextLayoutAttributes::emptyValue()) | 69     , y(SVGTextLayoutAttributes::emptyValue()) | 
| 71     , dx(SVGTextLayoutAttributes::emptyValue()) | 70     , dx(SVGTextLayoutAttributes::emptyValue()) | 
| 72     , dy(SVGTextLayoutAttributes::emptyValue()) | 71     , dy(SVGTextLayoutAttributes::emptyValue()) | 
| 73     , rotate(SVGTextLayoutAttributes::emptyValue()) | 72     , rotate(SVGTextLayoutAttributes::emptyValue()) | 
| 74 { | 73 { | 
| 75 } | 74 } | 
| 76 | 75 | 
| 77 } // namespace blink | 76 } // namespace blink | 
| 78 | 77 | 
| 79 #endif | 78 #endif | 
| OLD | NEW | 
|---|