Changeset 148619 in webkit for trunk/Source/WebCore/css/CSSCalculationValue.h
- Timestamp:
- Apr 17, 2013, 11:27:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSCalculationValue.h
r142444 r148619 68 68 virtual ~CSSCalcExpressionNode() = 0; 69 69 virtual bool isZero() const = 0; 70 virtual PassOwnPtr<CalcExpressionNode> toCalcValue( RenderStyle*,RenderStyle* rootStyle, double zoom = 1.0) const = 0;70 virtual PassOwnPtr<CalcExpressionNode> toCalcValue(const RenderStyle*, const RenderStyle* rootStyle, double zoom = 1.0) const = 0; 71 71 virtual double doubleValue() const = 0; 72 virtual double computeLengthPx( RenderStyle* currentStyle,RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const = 0;72 virtual double computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const = 0; 73 73 virtual String customCssText() const = 0; 74 74 #if ENABLE(CSS_VARIABLES) … … 99 99 static PassRefPtr<CSSCalcValue> create(CalculationValue*); 100 100 101 PassRefPtr<CalculationValue> toCalcValue( RenderStyle* style,RenderStyle* rootStyle, double zoom = 1.0) const101 PassRefPtr<CalculationValue> toCalcValue(const RenderStyle* style, const RenderStyle* rootStyle, double zoom = 1.0) const 102 102 { 103 103 return CalculationValue::create(m_expression->toCalcValue(style, rootStyle, zoom), m_nonNegative ? CalculationRangeNonNegative : CalculationRangeAll); … … 107 107 double doubleValue() const; 108 108 bool isNegative() const { return m_expression->doubleValue() < 0; } 109 double computeLengthPx( RenderStyle* currentStyle,RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const;109 double computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const; 110 110 111 111 String customCssText() const;
Note:
See TracChangeset
for help on using the changeset viewer.