| 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 14 matching lines...) Expand all Loading... |
| 25 #include "platform/Length.h" | 25 #include "platform/Length.h" |
| 26 #include "platform/geometry/FloatRect.h" | 26 #include "platform/geometry/FloatRect.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class ComputedStyle; | 30 class ComputedStyle; |
| 31 class SVGElement; | 31 class SVGElement; |
| 32 class SVGLength; | 32 class SVGLength; |
| 33 class UnzoomedLength; | 33 class UnzoomedLength; |
| 34 | 34 |
| 35 enum SVGLengthType { | |
| 36 LengthTypeUnknown = 0, | |
| 37 LengthTypeNumber, | |
| 38 LengthTypePercentage, | |
| 39 LengthTypeEMS, | |
| 40 LengthTypeEXS, | |
| 41 LengthTypePX, | |
| 42 LengthTypeCM, | |
| 43 LengthTypeMM, | |
| 44 LengthTypeIN, | |
| 45 LengthTypePT, | |
| 46 LengthTypePC, | |
| 47 LengthTypeREMS, | |
| 48 LengthTypeCHS | |
| 49 }; | |
| 50 | |
| 51 enum class SVGLengthMode { | 35 enum class SVGLengthMode { |
| 52 Width, | 36 Width, |
| 53 Height, | 37 Height, |
| 54 Other | 38 Other |
| 55 }; | 39 }; |
| 56 | 40 |
| 57 class SVGLengthContext { | 41 class SVGLengthContext { |
| 58 STACK_ALLOCATED(); | 42 STACK_ALLOCATED(); |
| 59 public: | 43 public: |
| 60 explicit SVGLengthContext(const SVGElement*); | 44 explicit SVGLengthContext(const SVGElement*); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 88 | 72 |
| 89 float convertValueFromUserUnitsToCHS(float value) const; | 73 float convertValueFromUserUnitsToCHS(float value) const; |
| 90 float convertValueFromCHSToUserUnits(float value) const; | 74 float convertValueFromCHSToUserUnits(float value) const; |
| 91 | 75 |
| 92 Member<const SVGElement> m_context; | 76 Member<const SVGElement> m_context; |
| 93 }; | 77 }; |
| 94 | 78 |
| 95 } // namespace blink | 79 } // namespace blink |
| 96 | 80 |
| 97 #endif // SVGLengthContext_h | 81 #endif // SVGLengthContext_h |
| OLD | NEW |