HomeSort by relevance Sort by last modified time
    Searched refs:unitType (Results 1 - 25 of 25) sorted by null

  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGLengthTearOff.cpp 50 SVGLengthType SVGLengthTearOff::unitType()
52 return target()->unitType();
109 void SVGLengthTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState)
116 if (unitType == LengthTypeUnknown || unitType > LengthTypePC) {
117 exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ").");
121 target()->newValueSpecifiedUnits(toSVGLengthType(unitType), valueInSpecifiedUnits);
125 void SVGLengthTearOff::convertToSpecifiedUnits(unsigned short unitType, ExceptionState& exceptionState)
132 if (unitType == LengthTypeUnknown || unitType > LengthTypePC)
    [all...]
SVGAngleTearOff.cpp 71 void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState)
78 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) {
79 exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ").");
83 target()->newValueSpecifiedUnits(static_cast<SVGAngle::SVGAngleType>(unitType), valueInSpecifiedUnits);
87 void SVGAngleTearOff::convertToSpecifiedUnits(unsigned short unitType, ExceptionState& exceptionState)
94 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) {
95 exceptionState.throwDOMException(NotSupportedError, "Cannot convert to unknown or invalid units (" + String::number(unitType) + ").");
99 target()->convertToSpecifiedUnits(static_cast<SVGAngle::SVGAngleType>(unitType), exceptionState)
    [all...]
SVGAngle.idl 35 readonly attribute unsigned short unitType;
41 [RaisesException] void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
43 [RaisesException] void convertToSpecifiedUnits(unsigned short unitType);
SVGLength.idl 41 readonly attribute unsigned short unitType;
47 [RaisesException] void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
49 [RaisesException] void convertToSpecifiedUnits(unsigned short unitType);
SVGAngleTearOff.h 58 unsigned short unitType() { return hasExposedAngleUnit() ? target()->unitType() : SVGAngle::SVG_ANGLETYPE_UNKNOWN; }
66 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&);
67 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&);
75 bool hasExposedAngleUnit() { return target()->unitType() <= SVGAngle::SVG_ANGLETYPE_GRAD; }
SVGAngle.cpp 93 SVGAngle::SVGAngle(SVGAngleType unitType, float valueInSpecifiedUnits, SVGMarkerOrientType orientType)
94 : m_unitType(unitType)
213 static bool parseValue(const String& value, float& valueInSpecifiedUnits, SVGAngle::SVGAngleType& unitType)
221 unitType = stringToAngleType(ptr, end);
222 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN)
247 SVGAngleType unitType = SVG_ANGLETYPE_UNKNOWN;
249 bool success = value.is8Bit() ? parseValue<LChar>(value, valueInSpecifiedUnits, unitType)
250 : parseValue<UChar>(value, valueInSpecifiedUnits, unitType);
257 m_unitType = unitType;
261 void SVGAngle::newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUnits
    [all...]
SVGLengthTearOff.h 63 SVGLengthType unitType();
71 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&);
72 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&);
SVGAngle.h 84 SVGAngleType unitType() const { return m_unitType; }
92 void newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUnits);
93 void convertToSpecifiedUnits(SVGAngleType unitType, ExceptionState&);
GradientAttributes.h 49 void setGradientUnits(SVGUnitTypes::SVGUnitType unitType)
51 m_gradientUnits = unitType;
SVGLength.cpp 164 return context.convertValueToUserUnits(m_valueInSpecifiedUnits, unitMode(), unitType(), es);
173 float convertedValue = context.convertValueFromUserUnits(value, unitMode(), unitType(), es);
238 return String::number(m_valueInSpecifiedUnits) + lengthTypeToString(unitType());
255 SVGLengthType originalType = unitType();
313 CSSPrimitiveValue::UnitType cssType = CSSPrimitiveValue::CSS_UNKNOWN;
314 switch (length->unitType()) {
393 SVGLengthType toType = unitType();
394 SVGLengthType fromType = from->unitType();
458 m_unitType = percentage < 0.5 ? fromLength->unitType() : toLength->unitType();
    [all...]
SVGLengthList.cpp 155 SVGLengthType unitType = toList->at(i)->unitType();
159 unitType = fromList->at(i)->unitType();
166 at(i)->setUnitType(unitType);
SVGLength.h 55 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitType); }
SVGMarkerElement.cpp 154 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), target->valueInSpecifiedUnits());
SVGSVGElement.cpp 645 return width()->currentValue()->unitType() != LengthTypePercentage;
650 return height()->currentValue()->unitType() != LengthTypePercentage;
655 if (width()->currentValue()->unitType() == LengthTypePercentage)
664 if (height()->currentValue()->unitType() == LengthTypePercentage)
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSPrimitiveValue.idl 57 [RaisesException] void setFloatValue([Default=Undefined] optional unsigned short unitType,
59 [RaisesException] float getFloatValue([Default=Undefined] optional unsigned short unitType);
CSSPrimitiveValue.cpp 54 static inline bool isValidCSSUnitTypeForDoubleConversion(CSSPrimitiveValue::UnitType unitType)
56 switch (unitType) {
113 typedef HashMap<String, CSSPrimitiveValue::UnitType> StringToUnitTable;
147 CSSPrimitiveValue::UnitType CSSPrimitiveValue::fromName(const String& unit)
153 CSSPrimitiveValue::UnitCategory CSSPrimitiveValue::unitCategory(UnitType type)
210 CSSPrimitiveValue::UnitType CSSPrimitiveValue::primitiveType() const
216 return static_cast<UnitType>(m_primitiveUnitType);
281 CSSPrimitiveValue::CSSPrimitiveValue(double num, UnitType type)
289 CSSPrimitiveValue::CSSPrimitiveValue(const String& str, UnitType type
    [all...]
CSSPrimitiveValue.h 74 enum UnitType {
168 static UnitCategory unitCategory(UnitType);
170 static UnitType fromName(const String& unit);
189 bool isViewportPercentageLength() const { return isViewportPercentageLength(static_cast<UnitType>(m_primitiveUnitType)); }
190 static bool isViewportPercentageLength(UnitType type) { return type >= CSS_VW && type <= CSS_VMAX; }
191 static bool isLength(UnitType type)
208 static bool isDotsPerInch(UnitType type) { return type == CSS_DPI; }
209 static bool isDotsPerPixel(UnitType type) { return type == CSS_DPPX; }
210 static bool isDotsPerCentimeter(UnitType type) { return type == CSS_DPCM; }
211 static bool isResolution(UnitType type) { return type >= CSS_DPPX && type <= CSS_DPCM;
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/parser/
SizesAttributeParser.cpp 39 if (!CSSPrimitiveValue::isLength(startToken->unitType()))
41 m_viewportDependant = CSSPrimitiveValue::isViewportPercentageLength(startToken->unitType());
42 if ((m_mediaValues->computeLength(startToken->numericValue(), startToken->unitType(), length)) && (length > 0)) {
MediaQueryToken.h 69 CSSPrimitiveValue::UnitType unitType() const { return m_unit; }
79 CSSPrimitiveValue::UnitType m_unit;
SizesCalcParser.cpp 74 if (!m_mediaValues->computeLength(token.numericValue(), token.unitType(), result))
102 m_viewportDependant = m_viewportDependant || CSSPrimitiveValue::isViewportPercentageLength(it->unitType());
103 if (!CSSPrimitiveValue::isLength(it->unitType()) || !appendLength(*it))
MediaQueryParser.cpp 131 if (type == DimensionToken && token.unitType() == CSSPrimitiveValue::CSS_UNKNOWN) {
242 value.setFromNumber(token.numericValue(), token.unitType());
CSSPropertyParser.cpp 331 return cssValuePool().createValue(value->fValue, static_cast<CSSPrimitiveValue::UnitType>(value->unit));
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/animation/
LengthStyleInterpolationTest.cpp 32 static void testPrimitiveValue(RefPtrWillBeRawPtr<CSSValue> value, double doubleValue, CSSPrimitiveValue::UnitType unitType)
36 EXPECT_EQ(unitType, toCSSPrimitiveValue(value.get())->primitiveType());
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextLayoutEngineBaseline.cpp 42 if (baselineShiftValueLength->unitType() == LengthTypePercentage)
SVGRenderTreeAsText.cpp 177 static TextStream& operator<<(TextStream& ts, const SVGUnitTypes::SVGUnitType& unitType)
179 ts << SVGEnumerationToString<SVGUnitTypes::SVGUnitType>(unitType);

Completed in 539 milliseconds