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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 static FloatRect resolveRectangle(const SVGElement*, SVGUnitTypes::SVGUnitTy
pe, const FloatRect& viewport, const SVGLength& x, const SVGLength& y, const SVG
Length& width, const SVGLength& height); | 64 static FloatRect resolveRectangle(const SVGElement*, SVGUnitTypes::SVGUnitTy
pe, const FloatRect& viewport, const SVGLength& x, const SVGLength& y, const SVG
Length& width, const SVGLength& height); |
65 static FloatPoint resolvePoint(const SVGElement*, SVGUnitTypes::SVGUnitType,
const SVGLength& x, const SVGLength& y); | 65 static FloatPoint resolvePoint(const SVGElement*, SVGUnitTypes::SVGUnitType,
const SVGLength& x, const SVGLength& y); |
66 static float resolveLength(const SVGElement*, SVGUnitTypes::SVGUnitType, con
st SVGLength&); | 66 static float resolveLength(const SVGElement*, SVGUnitTypes::SVGUnitType, con
st SVGLength&); |
67 | 67 |
68 float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit)
const; | 68 float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit)
const; |
69 float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit)
const; | 69 float convertValueFromUserUnits(float, SVGLengthMode, SVGLengthType toUnit)
const; |
70 | 70 |
71 float valueForLength(const Length&, const LayoutStyle&, SVGLengthMode = SVGL
engthMode::Other) const; | 71 float valueForLength(const Length&, const LayoutStyle&, SVGLengthMode = SVGL
engthMode::Other) const; |
| 72 static float valueForLength(const Length&, const LayoutStyle&, float dimensi
on); |
72 | 73 |
73 bool determineViewport(FloatSize&) const; | 74 bool determineViewport(FloatSize&) const; |
74 | 75 |
75 private: | 76 private: |
76 float valueForLengthWithZoom(const Length&, float, SVGLengthMode) const; | |
77 | |
78 float convertValueFromUserUnitsToEMS(float value) const; | 77 float convertValueFromUserUnitsToEMS(float value) const; |
79 float convertValueFromEMSToUserUnits(float value) const; | 78 float convertValueFromEMSToUserUnits(float value) const; |
80 | 79 |
81 float convertValueFromUserUnitsToEXS(float value) const; | 80 float convertValueFromUserUnitsToEXS(float value) const; |
82 float convertValueFromEXSToUserUnits(float value) const; | 81 float convertValueFromEXSToUserUnits(float value) const; |
83 | 82 |
84 RawPtrWillBeMember<const SVGElement> m_context; | 83 RawPtrWillBeMember<const SVGElement> m_context; |
85 }; | 84 }; |
86 | 85 |
87 } // namespace blink | 86 } // namespace blink |
88 | 87 |
89 #endif // SVGLengthContext_h | 88 #endif // SVGLengthContext_h |
OLD | NEW |