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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with missing files Created 5 years, 6 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // in the addSubtractResult matrix. 56 // in the addSubtractResult matrix.
57 enum CalculationCategory { 57 enum CalculationCategory {
58 CalcNumber = 0, 58 CalcNumber = 0,
59 CalcLength, 59 CalcLength,
60 CalcPercent, 60 CalcPercent,
61 CalcPercentNumber, 61 CalcPercentNumber,
62 CalcPercentLength, 62 CalcPercentLength,
63 CalcAngle, 63 CalcAngle,
64 CalcTime, 64 CalcTime,
65 CalcFrequency, 65 CalcFrequency,
66 CalcVariable,
alancutter (OOO until 2018) 2015/06/26 06:56:07 Is this used? Aren't variable references always to
66 CalcOther 67 CalcOther
67 }; 68 };
68 69
69 class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollected<CSSCalcExp ressionNode> { 70 class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollected<CSSCalcExp ressionNode> {
70 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CSSCalcExpressionNode); 71 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CSSCalcExpressionNode);
71 public: 72 public:
72 enum Type { 73 enum Type {
73 CssCalcPrimitiveValue = 1, 74 CssCalcPrimitiveValue = 1,
74 CssCalcBinaryOperation 75 CssCalcBinaryOperation
75 }; 76 };
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression; 144 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression;
144 const bool m_nonNegative; 145 const bool m_nonNegative;
145 }; 146 };
146 147
147 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue()); 148 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue());
148 149
149 } // namespace blink 150 } // namespace blink
150 151
151 152
152 #endif // CSSCalculationValue_h 153 #endif // CSSCalculationValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698