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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCalculationValue.h

Issue 2097383002: Added support of calc() for SVGLength (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // in the addSubtractResult matrix. 53 // in the addSubtractResult matrix.
54 enum CalculationCategory { 54 enum CalculationCategory {
55 CalcNumber = 0, 55 CalcNumber = 0,
56 CalcLength, 56 CalcLength,
57 CalcPercent, 57 CalcPercent,
58 CalcPercentNumber, 58 CalcPercentNumber,
59 CalcPercentLength, 59 CalcPercentLength,
60 CalcAngle, 60 CalcAngle,
61 CalcTime, 61 CalcTime,
62 CalcFrequency, 62 CalcFrequency,
63 CalcLengthNumber,
rwlbuis 2016/06/27 18:00:01 Are you sure you need this one? The Number should
Shanmuga Pandi 2016/06/28 05:15:01 I think it is needed. for eg. calc(10 + 20px). In
64 CalcPercentLengthNumber,
63 CalcOther 65 CalcOther
64 }; 66 };
65 67
66 class CSSCalcExpressionNode : public GarbageCollected<CSSCalcExpressionNode> { 68 class CSSCalcExpressionNode : public GarbageCollected<CSSCalcExpressionNode> {
67 public: 69 public:
68 enum Type { 70 enum Type {
69 CssCalcPrimitiveValue = 1, 71 CssCalcPrimitiveValue = 1,
70 CssCalcBinaryOperation 72 CssCalcBinaryOperation
71 }; 73 };
72 74
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 140
139 double clampToPermittedRange(double) const; 141 double clampToPermittedRange(double) const;
140 142
141 const Member<CSSCalcExpressionNode> m_expression; 143 const Member<CSSCalcExpressionNode> m_expression;
142 const bool m_nonNegative; 144 const bool m_nonNegative;
143 }; 145 };
144 146
145 } // namespace blink 147 } // namespace blink
146 148
147 #endif // CSSCalculationValue_h 149 #endif // CSSCalculationValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698