Changeset 110129 in webkit for trunk/Source/WebCore/css/CSSCalculationValue.h
- Timestamp:
- Mar 7, 2012, 6:50:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSCalculationValue.h
r110126 r110129 44 44 class CSSValueList; 45 45 class RenderStyle; 46 class Calc ulationValue;46 class CalcValue; 47 47 class CalcExpressionNode; 48 48 … … 59 59 public: 60 60 61 virtual ~CSSCalcExpressionNode() = 0; 61 virtual ~CSSCalcExpressionNode() = 0; 62 62 virtual bool isZero() const = 0; 63 virtual PassOwnPtr<CalcExpressionNode> toCalcValue(RenderStyle*, RenderStyle* rootStyle, double zoom = 1.0) const = 0;64 63 virtual double doubleValue() const = 0; 65 64 virtual double computeLengthPx(RenderStyle* currentStyle, RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const = 0; … … 82 81 public: 83 82 static PassRefPtr<CSSCalcValue> create(CSSParserString name, CSSParserValueList*, CalculationPermittedValueRange); 84 static PassRefPtr<CSSCalcValue> create(CalculationValue*);85 83 86 PassRefPtr<CalculationValue> toCalcValue(RenderStyle* style, RenderStyle* rootStyle, double zoom = 1.0) const87 {88 return CalculationValue::create(m_expression->toCalcValue(style, rootStyle, zoom), m_nonNegative ? CalculationRangeNonNegative : CalculationRangeAll);89 }90 84 CalculationCategory category() const { return m_expression->category(); } 91 85 bool isInt() const { return m_expression->isInteger(); }
Note:
See TracChangeset
for help on using the changeset viewer.