Searched defs:rootStyle (Results 1 - 8 of 8) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/animation/
H A DAnimatableNumber.cpp95 Length AnimatableNumber::toLength(const RenderStyle* style, const RenderStyle* rootStyle, double zoom) const argument
102 return toCSSPrimitiveValue()->convertToLength<AnyConversion>(style, rootStyle, zoom);
/external/chromium_org/third_party/WebKit/Source/core/css/
H A DCSSCalculationValue.h69 virtual PassOwnPtr<CalcExpressionNode> toCalcValue(const RenderStyle*, const RenderStyle* rootStyle, double zoom = 1.0) const = 0;
71 virtual double computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const = 0;
101 PassRefPtr<CalculationValue> toCalcValue(const RenderStyle* style, const RenderStyle* rootStyle, double zoom = 1.0) const argument
103 return CalculationValue::create(m_expression->toCalcValue(style, rootStyle, zoom), m_nonNegative ? CalculationRangeNonNegative : CalculationRangeAll);
109 double computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const;
H A DCSSCalculationValue.cpp181 double CSSCalcValue::computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier, bool computingFontSize) const argument
183 return clampToPermittedRange(m_expression->computeLengthPx(currentStyle, rootStyle, multiplier, computingFontSize));
226 virtual PassOwnPtr<CalcExpressionNode> toCalcValue(const RenderStyle* style, const RenderStyle* rootStyle, double zoom) const argument
232 return adoptPtr(new CalcExpressionNumber(m_value->computeLength<float>(style, rootStyle, zoom)));
237 ? primitiveValue->convertToLength<FixedFloatConversion | PercentConversion | FractionConversion>(style, rootStyle, zoom)
258 virtual double computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier, bool computingFontSize) const argument
262 return m_value->computeLength<double>(currentStyle, rootStyle, multiplier, computingFontSize);
423 virtual PassOwnPtr<CalcExpressionNode> toCalcValue(const RenderStyle* style, const RenderStyle* rootStyle, double zoom) const argument
425 OwnPtr<CalcExpressionNode> left(m_leftSide->toCalcValue(style, rootStyle, zoom));
428 OwnPtr<CalcExpressionNode> right(m_rightSide->toCalcValue(style, rootStyle, zoo
439 computeLengthPx(const RenderStyle* currentStyle, const RenderStyle* rootStyle, double multiplier, bool computingFontSize) const argument
[all...]
H A DCSSPrimitiveValue.cpp492 template<> int CSSPrimitiveValue::computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
494 return roundForImpreciseConversion<int>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize));
497 template<> unsigned CSSPrimitiveValue::computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
499 return roundForImpreciseConversion<unsigned>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize));
502 template<> Length CSSPrimitiveValue::computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
504 return Length(clampTo<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize), minValueForCssLength, maxValueForCssLength), Fixed);
507 template<> short CSSPrimitiveValue::computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
509 return roundForImpreciseConversion<short>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize));
512 template<> unsigned short CSSPrimitiveValue::computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
514 return roundForImpreciseConversion<unsigned short>(computeLengthDouble(style, rootStyle, multiplie
517 computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
522 computeLength(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
527 computeLengthDouble(const RenderStyle* style, const RenderStyle* rootStyle, float multiplier, bool computingFontSize) argument
[all...]
H A DCSSGradientValue.cpp136 void CSSGradientValue::addStops(Gradient* gradient, RenderObject* renderer, RenderStyle* rootStyle, float maxLengthForRepeat) argument
189 length = stop.m_position->computeLength<float>(style, rootStyle, style->effectiveZoom());
191 length = stop.m_position->cssCalcValue()->toCalcValue(style, rootStyle, style->effectiveZoom())->evaluate(gradientLength);
392 static float positionFromValue(CSSPrimitiveValue* value, RenderStyle* style, RenderStyle* rootStyle, const IntSize& size, bool isHorizontal) argument
404 return value->cssCalcValue()->toCalcValue(style, rootStyle, style->effectiveZoom())->evaluate(edgeDistance);
423 return value->computeLength<float>(style, rootStyle, zoomFactor);
426 FloatPoint CSSGradientValue::computeEndPoint(CSSPrimitiveValue* horizontal, CSSPrimitiveValue* vertical, RenderStyle* style, RenderStyle* rootStyle, const IntSize& size) argument
431 result.setX(positionFromValue(horizontal, style, rootStyle, size, true));
434 result.setY(positionFromValue(vertical, style, rootStyle, size, false));
645 RenderStyle* rootStyle local
891 resolveRadius(CSSPrimitiveValue* radius, RenderStyle* style, RenderStyle* rootStyle, float* widthOrHeight) argument
987 RenderStyle* rootStyle = renderer->document()->documentElement()->renderStyle(); local
[all...]
H A DCSSPrimitiveValueMappings.h4329 template<int supported> Length CSSPrimitiveValue::convertToLength(const RenderStyle* style, const RenderStyle* rootStyle, double multiplier, bool computingFontSize) argument
4332 if ((supported & (FixedIntegerConversion | FixedFloatConversion)) && isFontRelativeLength() && (!style || !rootStyle))
4335 return computeLength<Length>(style, rootStyle, multiplier, computingFontSize);
4337 return Length(computeLength<double>(style, rootStyle, multiplier), Fixed);
4345 return Length(cssCalcValue()->toCalcValue(style, rootStyle, multiplier));
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
H A DTransformBuilder.cpp54 static Length convertToFloatLength(CSSPrimitiveValue* primitiveValue, const RenderStyle* style, const RenderStyle* rootStyle, double multiplier) argument
56 return primitiveValue ? primitiveValue->convertToLength<FixedFloatConversion | PercentConversion | FractionConversion>(style, rootStyle, multiplier) : Length(Undefined);
88 bool TransformBuilder::createTransformOperations(CSSValue* inValue, const RenderStyle* style, const RenderStyle* rootStyle, TransformOperations& outOperations) argument
172 ty = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
174 tx = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
178 ty = convertToFloatLength(secondValue, style, rootStyle, zoomFactor);
195 tz = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
197 ty = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
199 tx = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
203 tz = convertToFloatLength(thirdValue, style, rootStyle, zoomFacto
[all...]
H A DFilterOperationResolver.cpp52 static Length convertToFloatLength(CSSPrimitiveValue* primitiveValue, const RenderStyle* style, const RenderStyle* rootStyle, double multiplier) argument
54 return primitiveValue ? primitiveValue->convertToLength<FixedFloatConversion | PercentConversion | FractionConversion>(style, rootStyle, multiplier) : Length(Undefined);
357 bool FilterOperationResolver::createFilterOperations(CSSValue* inValue, const RenderStyle* style, const RenderStyle* rootStyle, FilterOperations& outOperations, StyleResolverState& state) argument
472 stdDeviation = convertToFloatLength(firstValue, style, rootStyle, zoomFactor);
488 IntPoint location(item->x->computeLength<int>(style, rootStyle, zoomFactor), item->y->computeLength<int>(style, rootStyle, zoomFactor));
489 int blur = item->blur ? item->blur->computeLength<int>(style, rootStyle, zoomFactor) : 0;

Completed in 136 milliseconds