/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 | 72 void SVGAngleTearOff::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState& exceptionState) 79 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) { 80 exceptionState.throwDOMException(NotSupportedError, "Cannot set value with unknown or invalid units (" + String::number(unitType) + ")."); 84 target()->newValueSpecifiedUnits(static_cast<SVGAngle::SVGAngleType>(unitType), valueInSpecifiedUnits); 88 void SVGAngleTearOff::convertToSpecifiedUnits(unsigned short unitType, ExceptionState& exceptionState) 95 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN || unitType > SVGAngle::SVG_ANGLETYPE_GRAD) { 96 exceptionState.throwDOMException(NotSupportedError, "Cannot convert to unknown or invalid units (" + String::number(unitType) + ")."); 100 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 | 57 unsigned short unitType() { return hasExposedAngleUnit() ? target()->unitType() : SVGAngle::SVG_ANGLETYPE_UNKNOWN; } 65 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&); 66 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&); 74 bool hasExposedAngleUnit() { return target()->unitType() <= SVGAngle::SVG_ANGLETYPE_GRAD; }
|
SVGAngle.cpp | 88 SVGAngle::SVGAngle(SVGAngleType unitType, float valueInSpecifiedUnits, SVGMarkerOrientType orientType) 90 , m_unitType(unitType) 216 static bool parseValue(const String& value, float& valueInSpecifiedUnits, SVGAngle::SVGAngleType& unitType) 224 unitType = stringToAngleType(ptr, end); 225 if (unitType == SVGAngle::SVG_ANGLETYPE_UNKNOWN) 245 SVGAngleType unitType = SVG_ANGLETYPE_UNKNOWN; 247 bool success = value.is8Bit() ? parseValue<LChar>(value, valueInSpecifiedUnits, unitType) 248 : parseValue<UChar>(value, valueInSpecifiedUnits, unitType); 255 m_unitType = unitType; 259 void SVGAngle::newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUnits [all...] |
SVGLengthTearOff.h | 62 SVGLengthType unitType(); 70 void newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits, ExceptionState&); 71 void convertToSpecifiedUnits(unsigned short unitType, ExceptionState&);
|
SVGAngle.h | 81 SVGAngleType unitType() const { return m_unitType; } 89 void newValueSpecifiedUnits(SVGAngleType unitType, float valueInSpecifiedUnits); 90 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(); 319 CSSPrimitiveValue::UnitType cssType = CSSPrimitiveValue::CSS_UNKNOWN; 320 switch (length->unitType()) { 399 SVGLengthType toType = unitType(); 400 SVGLengthType fromType = from->unitType(); 464 m_unitType = percentage < 0.5 ? fromLength->unitType() : toLength->unitType(); [all...] |
SVGLengthList.cpp | 183 SVGLengthType unitType = toList->at(i)->unitType(); 187 unitType = fromList->at(i)->unitType(); 194 at(i)->setUnitType(unitType);
|
SVGLength.h | 55 SVGLengthType unitType() const { return static_cast<SVGLengthType>(m_unitType); }
|
SVGMarkerElement.cpp | 156 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), target->valueInSpecifiedUnits());
|
SVGSVGElement.cpp | 653 return width()->currentValue()->unitType() != LengthTypePercentage; 658 return height()->currentValue()->unitType() != LengthTypePercentage; 663 if (width()->currentValue()->unitType() == LengthTypePercentage) 672 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) { 116 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); 275 CSSPrimitiveValue::CSSPrimitiveValue(int parserOperator, UnitType type) 283 CSSPrimitiveValue::CSSPrimitiveValue(double num, UnitType type [all...] |
CSSPrimitiveValue.h | 74 enum UnitType { 173 static UnitCategory unitCategory(UnitType); 175 static UnitType fromName(const String& unit); 194 bool isViewportPercentageLength() const { return isViewportPercentageLength(static_cast<UnitType>(m_primitiveUnitType)); } 195 static bool isViewportPercentageLength(UnitType type) { return type >= CSS_VW && type <= CSS_VMAX; } 196 static bool isLength(UnitType type) 213 static bool isDotsPerInch(UnitType type) { return type == CSS_DPI; } 214 static bool isDotsPerPixel(UnitType type) { return type == CSS_DPPX; } 215 static bool isDotsPerCentimeter(UnitType type) { return type == CSS_DPCM; } 216 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 | 33 if (!CSSPrimitiveValue::isLength(startToken->unitType())) 35 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 | 68 if (!m_mediaValues->computeLength(token.numericValue(), token.unitType(), result)) 96 if (!CSSPrimitiveValue::isLength(it->unitType()) || !appendLength(*it))
|
MediaQueryParser.cpp | 130 if (type == DimensionToken && token.unitType() == CSSPrimitiveValue::CSS_UNKNOWN) { 241 value.setFromNumber(token.numericValue(), token.unitType());
|
CSSPropertyParser.cpp | 324 return cssValuePool().createValue(value->fValue, static_cast<CSSPrimitiveValue::UnitType>(value->unit)); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/animation/interpolation/ |
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);
|