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

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

Issue 2354283002: Drop the SVGLengthType enumeration (Closed)
Patch Set: Drop the enum entirely Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/svg/SVGLengthTearOff.h » ('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 14 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698