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

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

Issue 1031223003: SVG doesn't recognize rem units (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes builderror 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
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | 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 24 matching lines...) Expand all
35 LengthTypeUnknown = 0, 35 LengthTypeUnknown = 0,
36 LengthTypeNumber, 36 LengthTypeNumber,
37 LengthTypePercentage, 37 LengthTypePercentage,
38 LengthTypeEMS, 38 LengthTypeEMS,
39 LengthTypeEXS, 39 LengthTypeEXS,
40 LengthTypePX, 40 LengthTypePX,
41 LengthTypeCM, 41 LengthTypeCM,
42 LengthTypeMM, 42 LengthTypeMM,
43 LengthTypeIN, 43 LengthTypeIN,
44 LengthTypePT, 44 LengthTypePT,
45 LengthTypePC 45 LengthTypePC,
46 LengthTypeREMS
46 }; 47 };
47 48
48 enum class SVGLengthMode { 49 enum class SVGLengthMode {
49 Width, 50 Width,
50 Height, 51 Height,
51 Other 52 Other
52 }; 53 };
53 54
54 class SVGLengthContext { 55 class SVGLengthContext {
55 STACK_ALLOCATED(); 56 STACK_ALLOCATED();
(...skipping 22 matching lines...) Expand all
78 private: 79 private:
79 float valueForLength(const Length&, float zoom, SVGLengthMode) const; 80 float valueForLength(const Length&, float zoom, SVGLengthMode) const;
80 static float valueForLength(const Length&, float zoom, float dimension); 81 static float valueForLength(const Length&, float zoom, float dimension);
81 82
82 float convertValueFromUserUnitsToEMS(float value) const; 83 float convertValueFromUserUnitsToEMS(float value) const;
83 float convertValueFromEMSToUserUnits(float value) const; 84 float convertValueFromEMSToUserUnits(float value) const;
84 85
85 float convertValueFromUserUnitsToEXS(float value) const; 86 float convertValueFromUserUnitsToEXS(float value) const;
86 float convertValueFromEXSToUserUnits(float value) const; 87 float convertValueFromEXSToUserUnits(float value) const;
87 88
89 float convertValueFromUserUnitsToREMS(float value) const;
90 float convertValueFromREMSToUserUnits(float value) const;
91
88 RawPtrWillBeMember<const SVGElement> m_context; 92 RawPtrWillBeMember<const SVGElement> m_context;
89 }; 93 };
90 94
91 } // namespace blink 95 } // namespace blink
92 96
93 #endif // SVGLengthContext_h 97 #endif // SVGLengthContext_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/core/svg/SVGLengthContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698