OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 float valueForLength(const UnzoomedLength&, SVGLengthMode = SVGLengthMode::O
ther) const; | 73 float valueForLength(const UnzoomedLength&, SVGLengthMode = SVGLengthMode::O
ther) const; |
74 float valueForLength(const Length&, const ComputedStyle&, SVGLengthMode = SV
GLengthMode::Other) const; | 74 float valueForLength(const Length&, const ComputedStyle&, SVGLengthMode = SV
GLengthMode::Other) const; |
75 static float valueForLength(const Length&, const ComputedStyle&, float dimen
sion); | 75 static float valueForLength(const Length&, const ComputedStyle&, float dimen
sion); |
76 | 76 |
77 bool determineViewport(FloatSize&) const; | 77 bool determineViewport(FloatSize&) const; |
78 | 78 |
79 private: | 79 private: |
80 float valueForLength(const Length&, float zoom, SVGLengthMode) const; | 80 float valueForLength(const Length&, float zoom, SVGLengthMode) const; |
81 static float valueForLength(const Length&, float zoom, float dimension); | 81 static float valueForLength(const Length&, float zoom, float dimension); |
82 | 82 |
83 float convertValueFromUserUnitsToEMS(float value) const; | |
84 float convertValueFromEMSToUserUnits(float value) const; | |
85 | |
86 float convertValueFromUserUnitsToEXS(float value) const; | 83 float convertValueFromUserUnitsToEXS(float value) const; |
87 float convertValueFromEXSToUserUnits(float value) const; | 84 float convertValueFromEXSToUserUnits(float value) const; |
88 | 85 |
89 float convertValueFromUserUnitsToREMS(float value) const; | |
90 float convertValueFromREMSToUserUnits(float value) const; | |
91 | |
92 RawPtrWillBeMember<const SVGElement> m_context; | 86 RawPtrWillBeMember<const SVGElement> m_context; |
93 }; | 87 }; |
94 | 88 |
95 } // namespace blink | 89 } // namespace blink |
96 | 90 |
97 #endif // SVGLengthContext_h | 91 #endif // SVGLengthContext_h |
OLD | NEW |