Home
last modified time | relevance | path

Searched refs:unitType (Results 1 – 15 of 15) sorted by relevance

/external/webkit/WebCore/svg/
DSVGAngle.cpp41 SVGAngle::SVGAngleType SVGAngle::unitType() const in unitType() function in WebCore::SVGAngle
120 void SVGAngle::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) in newValueSpecifiedUnits() argument
122 m_unitType = (SVGAngleType)unitType; in newValueSpecifiedUnits()
127 void SVGAngle::convertToSpecifiedUnits(unsigned short unitType) in convertToSpecifiedUnits() argument
129 if (m_unitType == unitType) in convertToSpecifiedUnits()
132 if (m_unitType == SVG_ANGLETYPE_DEG && unitType == SVG_ANGLETYPE_RAD) in convertToSpecifiedUnits()
134 else if (m_unitType == SVG_ANGLETYPE_GRAD && unitType == SVG_ANGLETYPE_RAD) in convertToSpecifiedUnits()
136 else if (m_unitType == SVG_ANGLETYPE_DEG && unitType == SVG_ANGLETYPE_GRAD) in convertToSpecifiedUnits()
138 else if (m_unitType == SVG_ANGLETYPE_RAD && unitType == SVG_ANGLETYPE_GRAD) in convertToSpecifiedUnits()
140 else if (m_unitType == SVG_ANGLETYPE_RAD && unitType == SVG_ANGLETYPE_DEG) in convertToSpecifiedUnits()
[all …]
DSVGAngle.h43 SVGAngleType unitType() const;
54 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
55 void convertToSpecifiedUnits(unsigned short unitType);
DSVGAngle.idl33 readonly attribute unsigned short unitType;
38 void newValueSpecifiedUnits(in unsigned short unitType,
40 void convertToSpecifiedUnits(in unsigned short unitType);
DSVGLength.idl39 readonly attribute unsigned short unitType;
44 void newValueSpecifiedUnits(in unsigned short unitType,
47 [Custom] void convertToSpecifiedUnits(in unsigned short unitType);
DSVGLength.h70 SVGLengthType unitType() const;
91 SVGLengthType type = unitType(); in isRelative()
DSVGSVGElement.cpp133 if (w.unitType() != LengthTypePercentage) in relativeWidthValue()
142 if (h.unitType() != LengthTypePercentage) in relativeHeightValue()
DSVGLength.cpp121 SVGLengthType SVGLength::unitType() const in unitType() function in WebCore::SVGLength
/external/webkit/WebCore/css/
DCSSPrimitiveValue.h132 double getDoubleValue(unsigned short unitType, ExceptionCode&);
133 double getDoubleValue(unsigned short unitType);
136 void setFloatValue(unsigned short unitType, double floatValue, ExceptionCode&);
137 …float getFloatValue(unsigned short unitType, ExceptionCode& ec) { return static_cast<float>(getDou… in getFloatValue() argument
138 …float getFloatValue(unsigned short unitType) { return static_cast<float>(getDoubleValue(unitType))… in getFloatValue() argument
141 …int getIntValue(unsigned short unitType, ExceptionCode& ec) { return static_cast<int>(getDoubleVal… in getIntValue() argument
142 int getIntValue(unsigned short unitType) { return static_cast<int>(getDoubleValue(unitType)); } in getIntValue() argument
DCSSPrimitiveValue.cpp476 void CSSPrimitiveValue::setFloatValue(unsigned short unitType, double floatValue, ExceptionCode& ec) in setFloatValue() argument
480 …if (m_type < CSS_NUMBER || m_type > CSS_DIMENSION || unitType < CSS_NUMBER || unitType > CSS_DIMEN… in setFloatValue()
489 m_type = unitType; in setFloatValue()
492 static double scaleFactorForConversion(unsigned short unitType) in scaleFactorForConversion() argument
495 switch (unitType) { in scaleFactorForConversion()
520 double CSSPrimitiveValue::getDoubleValue(unsigned short unitType, ExceptionCode& ec) in getDoubleValue() argument
523 …if (m_type < CSS_NUMBER || m_type > CSS_DIMENSION || unitType < CSS_NUMBER || unitType > CSS_DIMEN… in getDoubleValue()
528 if (unitType == m_type || unitType < CSS_PX || unitType > CSS_PC) in getDoubleValue()
538 factor = scaleFactorForConversion(unitType); in getDoubleValue()
544 double CSSPrimitiveValue::getDoubleValue(unsigned short unitType) in getDoubleValue() argument
[all …]
DCSSPrimitiveValue.idl54 [OldStyleObjC] void setFloatValue(in unsigned short unitType,
57 float getFloatValue(in unsigned short unitType)
DCSSParser.cpp3574 Units unitType = FUnknown; in parseColorParameters() local
3577 unitType = FInteger; in parseColorParameters()
3579 unitType = FPercent; in parseColorParameters()
3588 if (!validUnit(v, unitType, true)) in parseColorParameters()
/external/webkit/WebCore/svg/graphics/
DSVGImage.cpp142 if (width.unitType() == LengthTypePercentage) in size()
147 if (height.unitType() == LengthTypePercentage) in size()
163 return rootElement->width().unitType() == LengthTypePercentage; in hasRelativeWidth()
174 return rootElement->height().unitType() == LengthTypePercentage; in hasRelativeHeight()
/external/webkit/WebCore/rendering/
DRenderSVGRoot.cpp185 …float viewportWidth = (width.unitType() == LengthTypePercentage) ? svg->relativeWidthValue() : wid… in calcViewport()
186 …float viewportHeight = (height.unitType() == LengthTypePercentage) ? svg->relativeHeightValue() : … in calcViewport()
/external/webkit/WebCore/bindings/objc/
DPublicDOMInterfaces.h942 - (void)setFloatValue:(unsigned short)unitType :(float)floatValue;
943 - (void)setFloatValue:(unsigned short)unitType floatValue:(float)floatValue AVAILABLE_WEBKIT_VERSIO…
944 - (float)getFloatValue:(unsigned short)unitType;
/external/webkit/WebCore/
DChangeLog-2006-12-313188 (WebCore::SVGLength::unitType):
35714 (SVGAngle::unitType):
35720 (WebCore::SVGLength::unitType):