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