Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: Source/core/svg/SVGLengthContext.h

Issue 1065223003: Cleanup resolving of 'em' units in SVGLengthContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698