/external/webkit/Source/WebCore/css/ |
D | SVGCSSComputedStyleDeclaration.cpp | 33 static PassRefPtr<CSSPrimitiveValue> glyphOrientationToCSSPrimitiveValue(EGlyphOrientation orientat… in glyphOrientationToCSSPrimitiveValue() 37 return CSSPrimitiveValue::create(0.0f, CSSPrimitiveValue::CSS_DEG); in glyphOrientationToCSSPrimitiveValue() 39 return CSSPrimitiveValue::create(90.0f, CSSPrimitiveValue::CSS_DEG); in glyphOrientationToCSSPrimitiveValue() 41 return CSSPrimitiveValue::create(180.0f, CSSPrimitiveValue::CSS_DEG); in glyphOrientationToCSSPrimitiveValue() 43 return CSSPrimitiveValue::create(270.0f, CSSPrimitiveValue::CSS_DEG); in glyphOrientationToCSSPrimitiveValue() 52 return CSSPrimitiveValue::createIdentifier(CSSValueNone); in strokeDashArrayToCSSValueList() 82 return CSSPrimitiveValue::create(svgStyle->clipRule()); in getSVGPropertyCSSValue() 84 … return CSSPrimitiveValue::create(svgStyle->floodOpacity(), CSSPrimitiveValue::CSS_NUMBER); in getSVGPropertyCSSValue() 86 … return CSSPrimitiveValue::create(svgStyle->stopOpacity(), CSSPrimitiveValue::CSS_NUMBER); in getSVGPropertyCSSValue() 88 return CSSPrimitiveValue::create(svgStyle->colorInterpolation()); in getSVGPropertyCSSValue() [all …]
|
D | CSSPrimitiveValueCache.cpp | 32 : m_colorTransparent(CSSPrimitiveValue::createColor(Color::transparent)) in CSSPrimitiveValueCache() 33 , m_colorWhite(CSSPrimitiveValue::createColor(Color::white)) in CSSPrimitiveValueCache() 34 , m_colorBlack(CSSPrimitiveValue::createColor(Color::black)) in CSSPrimitiveValueCache() 35 , m_pixelZero(CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_PX)) in CSSPrimitiveValueCache() 36 , m_percentZero(CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_PERCENTAGE)) in CSSPrimitiveValueCache() 37 , m_numberZero(CSSPrimitiveValue::create(0, CSSPrimitiveValue::CSS_NUMBER)) in CSSPrimitiveValueCache() 45 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValueCache::createIdentifierValue(int ident) in createIdentifierValue() 48 return CSSPrimitiveValue::createIdentifier(ident); in createIdentifierValue() 50 RefPtr<CSSPrimitiveValue> dummyValue; in createIdentifierValue() 53 entry.first->second = CSSPrimitiveValue::createIdentifier(ident); in createIdentifierValue() [all …]
|
D | CSSPrimitiveValueMappings.h | 49 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EBorderStyle e) in CSSPrimitiveValue() function 87 template<> inline CSSPrimitiveValue::operator EBorderStyle() const in EBorderStyle() 92 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(CompositeOperator e) in CSSPrimitiveValue() function 142 template<> inline CSSPrimitiveValue::operator CompositeOperator() const in CompositeOperator() 179 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ControlPart e) in CSSPrimitiveValue() function 363 template<> inline CSSPrimitiveValue::operator ControlPart() const in ControlPart() 371 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFillAttachment e) in CSSPrimitiveValue() function 388 template<> inline CSSPrimitiveValue::operator EFillAttachment() const in EFillAttachment() 403 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EFillBox e) in CSSPrimitiveValue() function 423 template<> inline CSSPrimitiveValue::operator EFillBox() const in EFillBox() [all …]
|
D | ShadowValue.h | 30 class CSSPrimitiveValue; variable 35 static PassRefPtr<ShadowValue> create(PassRefPtr<CSSPrimitiveValue> x, in create() 36 PassRefPtr<CSSPrimitiveValue> y, in create() 37 PassRefPtr<CSSPrimitiveValue> blur, in create() 38 PassRefPtr<CSSPrimitiveValue> spread, in create() 39 PassRefPtr<CSSPrimitiveValue> style, in create() 40 PassRefPtr<CSSPrimitiveValue> color) in create() 47 RefPtr<CSSPrimitiveValue> x; 48 RefPtr<CSSPrimitiveValue> y; 49 RefPtr<CSSPrimitiveValue> blur; [all …]
|
D | CSSPrimitiveValue.cpp | 51 static CSSPrimitiveValue::UnitCategory unitCategory(CSSPrimitiveValue::UnitTypes type) in unitCategory() 56 case CSSPrimitiveValue::CSS_NUMBER: in unitCategory() 57 return CSSPrimitiveValue::UNumber; in unitCategory() 58 case CSSPrimitiveValue::CSS_PERCENTAGE: in unitCategory() 59 return CSSPrimitiveValue::UPercent; in unitCategory() 60 case CSSPrimitiveValue::CSS_PX: in unitCategory() 61 case CSSPrimitiveValue::CSS_CM: in unitCategory() 62 case CSSPrimitiveValue::CSS_MM: in unitCategory() 63 case CSSPrimitiveValue::CSS_IN: in unitCategory() 64 case CSSPrimitiveValue::CSS_PT: in unitCategory() [all …]
|
D | CSSPrimitiveValueCache.h | 36 class CSSPrimitiveValue; variable 43 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(int identifier); 44 PassRefPtr<CSSPrimitiveValue> createColorValue(unsigned rgbValue); 45 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::UnitTypes); 46 …PassRefPtr<CSSPrimitiveValue> createValue(String value, CSSPrimitiveValue::UnitTypes type) { retur… in createValue() 47 …template<typename T> static PassRefPtr<CSSPrimitiveValue> createValue(T value) { return CSSPrimiti… in createValue() 52 typedef HashMap<int, RefPtr<CSSPrimitiveValue> > IdentifierValueCache; 55 typedef HashMap<unsigned, RefPtr<CSSPrimitiveValue> > ColorValueCache; 57 RefPtr<CSSPrimitiveValue> m_colorTransparent; 58 RefPtr<CSSPrimitiveValue> m_colorWhite; [all …]
|
D | CSSParserValues.cpp | 68 parsedValue = CSSPrimitiveValue::createIdentifier(id); in createCSSValue() 69 else if (unit == CSSPrimitiveValue::CSS_IDENT) in createCSSValue() 70 parsedValue = CSSPrimitiveValue::create(string, CSSPrimitiveValue::CSS_PARSER_IDENTIFIER); in createCSSValue() 71 else if (unit == CSSPrimitiveValue::CSS_NUMBER && isInt) in createCSSValue() 72 parsedValue = CSSPrimitiveValue::create(fValue, CSSPrimitiveValue::CSS_PARSER_INTEGER); in createCSSValue() 74 RefPtr<CSSPrimitiveValue> primitiveValue = CSSPrimitiveValue::createIdentifier(iValue); in createCSSValue() 75 primitiveValue->setPrimitiveType(CSSPrimitiveValue::CSS_PARSER_OPERATOR); in createCSSValue() 79 …else if (unit == CSSPrimitiveValue::CSS_STRING || unit == CSSPrimitiveValue::CSS_URI || unit == CS… in createCSSValue() 80 parsedValue = CSSPrimitiveValue::create(string, (CSSPrimitiveValue::UnitTypes)unit); in createCSSValue() 81 else if (unit >= CSSPrimitiveValue::CSS_NUMBER && unit <= CSSPrimitiveValue::CSS_KHZ) in createCSSValue() [all …]
|
D | CSSGradientValue.h | 43 RefPtr<CSSPrimitiveValue> m_position; // percentage or length 44 RefPtr<CSSPrimitiveValue> m_color; 51 void setFirstX(PassRefPtr<CSSPrimitiveValue> val) { m_firstX = val; } in setFirstX() 52 void setFirstY(PassRefPtr<CSSPrimitiveValue> val) { m_firstY = val; } in setFirstY() 53 void setSecondX(PassRefPtr<CSSPrimitiveValue> val) { m_secondX = val; } in setSecondX() 54 void setSecondY(PassRefPtr<CSSPrimitiveValue> val) { m_secondY = val; } in setSecondY() 83 …FloatPoint computeEndPoint(CSSPrimitiveValue*, CSSPrimitiveValue*, RenderStyle*, RenderStyle* root… 88 RefPtr<CSSPrimitiveValue> m_firstX; 89 RefPtr<CSSPrimitiveValue> m_firstY; 91 RefPtr<CSSPrimitiveValue> m_secondX; [all …]
|
D | RGBColor.cpp | 37 PassRefPtr<CSSPrimitiveValue> RGBColor::red() in red() 40 return CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER); in red() 43 PassRefPtr<CSSPrimitiveValue> RGBColor::green() in green() 46 return CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER); in green() 49 PassRefPtr<CSSPrimitiveValue> RGBColor::blue() in blue() 52 return CSSPrimitiveValue::create(value, CSSPrimitiveValue::CSS_NUMBER); in blue() 55 PassRefPtr<CSSPrimitiveValue> RGBColor::alpha() in alpha() 58 return WebCore::CSSPrimitiveValue::create(value, WebCore::CSSPrimitiveValue::CSS_NUMBER); in alpha()
|
D | CSSPrimitiveValue.h | 50 class CSSPrimitiveValue : public CSSValue { 110 …l isUnitTypeLength(int type) { return (type > CSSPrimitiveValue::CSS_PERCENTAGE && type < CSSPrimi… in isUnitTypeLength() 111 type == CSSPrimitiveValue::CSS_REMS; } in isUnitTypeLength() 113 …static PassRefPtr<CSSPrimitiveValue> createIdentifier(int identifier) { return adoptRef(new CSSPri… in createIdentifier() 114 …static PassRefPtr<CSSPrimitiveValue> createColor(unsigned rgbValue) { return adoptRef(new CSSPrimi… in createColor() 115 …static PassRefPtr<CSSPrimitiveValue> create(double value, UnitTypes type) { return adoptRef(new CS… in create() 116 …static PassRefPtr<CSSPrimitiveValue> create(const String& value, UnitTypes type) { return adoptRef… in create() 118 template<typename T> static PassRefPtr<CSSPrimitiveValue> create(T value) in create() 120 return adoptRef(new CSSPrimitiveValue(value)); in create() 123 virtual ~CSSPrimitiveValue(); [all …]
|
D | Rect.h | 31 CSSPrimitiveValue* top() const { return m_top.get(); } in top() 32 CSSPrimitiveValue* right() const { return m_right.get(); } in right() 33 CSSPrimitiveValue* bottom() const { return m_bottom.get(); } in bottom() 34 CSSPrimitiveValue* left() const { return m_left.get(); } in left() 36 void setTop(PassRefPtr<CSSPrimitiveValue> top) { m_top = top; } in setTop() 37 void setRight(PassRefPtr<CSSPrimitiveValue> right) { m_right = right; } in setRight() 38 void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; } in setBottom() 39 void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; } in setLeft() 46 RefPtr<CSSPrimitiveValue> m_top; 47 RefPtr<CSSPrimitiveValue> m_right; [all …]
|
D | Counter.h | 31 …ounter> create(PassRefPtr<CSSPrimitiveValue> identifier, PassRefPtr<CSSPrimitiveValue> listStyle, … in create() 42 void setIdentifier(PassRefPtr<CSSPrimitiveValue> identifier) { m_identifier = identifier; } in setIdentifier() 43 void setListStyle(PassRefPtr<CSSPrimitiveValue> listStyle) { m_listStyle = listStyle; } in setListStyle() 44 void setSeparator(PassRefPtr<CSSPrimitiveValue> separator) { m_separator = separator; } in setSeparator() 47 …Counter(PassRefPtr<CSSPrimitiveValue> identifier, PassRefPtr<CSSPrimitiveValue> listStyle, PassRef… in Counter() 54 RefPtr<CSSPrimitiveValue> m_identifier; // string 55 RefPtr<CSSPrimitiveValue> m_listStyle; // int 56 RefPtr<CSSPrimitiveValue> m_separator; // string
|
D | MediaQueryExp.cpp | 49 m_value = CSSPrimitiveValue::createIdentifier(value->id); in MediaQueryExp() 50 else if (value->unit == CSSPrimitiveValue::CSS_STRING) in MediaQueryExp() 51 … m_value = CSSPrimitiveValue::create(value->string, (CSSPrimitiveValue::UnitTypes) value->unit); in MediaQueryExp() 52 else if (value->unit >= CSSPrimitiveValue::CSS_NUMBER && in MediaQueryExp() 53 value->unit <= CSSPrimitiveValue::CSS_KHZ) in MediaQueryExp() 54 … m_value = CSSPrimitiveValue::create(value->fValue, (CSSPrimitiveValue::UnitTypes) value->unit); in MediaQueryExp() 67 list->append(CSSPrimitiveValue::create("/", CSSPrimitiveValue::CSS_STRING)); in MediaQueryExp() 68 else if (value->unit == CSSPrimitiveValue::CSS_NUMBER) in MediaQueryExp() 69 … list->append(CSSPrimitiveValue::create(value->fValue, CSSPrimitiveValue::CSS_NUMBER)); in MediaQueryExp()
|
D | Pair.h | 40 …static PassRefPtr<Pair> create(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> … in create() 46 CSSPrimitiveValue* first() const { return m_first.get(); } in first() 47 CSSPrimitiveValue* second() const { return m_second.get(); } in second() 49 void setFirst(PassRefPtr<CSSPrimitiveValue> first) { m_first = first; } in setFirst() 50 void setSecond(PassRefPtr<CSSPrimitiveValue> second) { m_second = second; } in setSecond() 54 Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second) in Pair() 57 RefPtr<CSSPrimitiveValue> m_first; 58 RefPtr<CSSPrimitiveValue> m_second;
|
D | SVGCSSParser.cpp | 95 else if (value->unit == CSSPrimitiveValue::CSS_URI) { in parseSVGValue() 96 parsedValue = CSSPrimitiveValue::create(value->string, CSSPrimitiveValue::CSS_URI); in parseSVGValue() 170 … if (value->unit == CSSPrimitiveValue::CSS_DEG || value->unit == CSSPrimitiveValue::CSS_NUMBER) { in parseSVGValue() 171 parsedValue = CSSPrimitiveValue::create(value->fValue, CSSPrimitiveValue::CSS_DEG); in parseSVGValue() 187 else if (value->unit == CSSPrimitiveValue::CSS_URI) { in parseSVGValue() 262 else if (value->unit == CSSPrimitiveValue::CSS_URI) { in parseSVGValue() 263 …parsedValue = CSSPrimitiveValue::create(value->string, (CSSPrimitiveValue::UnitTypes) value->unit); in parseSVGValue() 300 parsedValue = CSSPrimitiveValue::createIdentifier(id); in parseSVGValue() 301 else if (value->unit == CSSPrimitiveValue::CSS_STRING) in parseSVGValue() 302 …parsedValue = CSSPrimitiveValue::create(value->string, (CSSPrimitiveValue::UnitTypes) value->unit); in parseSVGValue() [all …]
|
D | SVGCSSStyleSelector.cpp | 108 CSSPrimitiveValue* primitiveValue = 0; in applySVGProperty() 110 primitiveValue = static_cast<CSSPrimitiveValue*>(value); in applySVGProperty() 115 bool isInherit = m_parentNode && valueType == CSSPrimitiveValue::CSS_INHERIT; in applySVGProperty() 116 …bool isInitial = valueType == CSSPrimitiveValue::CSS_INITIAL || (!m_parentNode && valueType == CSS… in applySVGProperty() 269 … CSSPrimitiveValue* dash = static_cast<CSSPrimitiveValue*>(dashes->itemWithoutBoundsCheck(i)); in applySVGProperty() 291 if (type == CSSPrimitiveValue::CSS_PERCENTAGE) in applySVGProperty() 293 else if (type == CSSPrimitiveValue::CSS_NUMBER) in applySVGProperty() 309 if (type == CSSPrimitiveValue::CSS_PERCENTAGE) in applySVGProperty() 311 else if (type == CSSPrimitiveValue::CSS_NUMBER) in applySVGProperty() 327 if (type == CSSPrimitiveValue::CSS_PERCENTAGE) in applySVGProperty() [all …]
|
D | FontValue.h | 30 class CSSPrimitiveValue; variable 42 RefPtr<CSSPrimitiveValue> style; 43 RefPtr<CSSPrimitiveValue> variant; 44 RefPtr<CSSPrimitiveValue> weight; 45 RefPtr<CSSPrimitiveValue> size; 46 RefPtr<CSSPrimitiveValue> lineHeight;
|
D | CSSParser.cpp | 377 CSSPrimitiveValue::UnitTypes unit = CSSPrimitiveValue::CSS_NUMBER; in parseSimpleLengthValue() 380 unit = CSSPrimitiveValue::CSS_PX; in parseSimpleLengthValue() 383 unit = CSSPrimitiveValue::CSS_PERCENTAGE; in parseSimpleLengthValue() 393 if (unit == CSSPrimitiveValue::CSS_NUMBER) { in parseSimpleLengthValue() 396 unit = CSSPrimitiveValue::CSS_PX; in parseSimpleLengthValue() 464 CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value); in parseColor() 465 if (primitiveValue->primitiveType() != CSSPrimitiveValue::CSS_RGBCOLOR) in parseColor() 635 case CSSPrimitiveValue::CSS_NUMBER: in validUnit() 638 value->unit = (unitflags & FLength) ? CSSPrimitiveValue::CSS_PX : in validUnit() 639 … ((unitflags & FAngle) ? CSSPrimitiveValue::CSS_DEG : CSSPrimitiveValue::CSS_MS); in validUnit() [all …]
|
D | CSSComputedStyleDeclaration.cpp | 325 RefPtr<CSSPrimitiveValue> top; in valueForNinePieceImage() 327 …top = primitiveValueCache->createValue(image.slices().top().value(), CSSPrimitiveValue::CSS_PERCEN… in valueForNinePieceImage() 329 …top = primitiveValueCache->createValue(image.slices().top().value(), CSSPrimitiveValue::CSS_NUMBER… in valueForNinePieceImage() 331 RefPtr<CSSPrimitiveValue> right; in valueForNinePieceImage() 333 …right = primitiveValueCache->createValue(image.slices().right().value(), CSSPrimitiveValue::CSS_PE… in valueForNinePieceImage() 335 …right = primitiveValueCache->createValue(image.slices().right().value(), CSSPrimitiveValue::CSS_NU… in valueForNinePieceImage() 337 RefPtr<CSSPrimitiveValue> bottom; in valueForNinePieceImage() 339 …= primitiveValueCache->createValue(image.slices().bottom().value(), CSSPrimitiveValue::CSS_PERCENT… in valueForNinePieceImage() 341 …= primitiveValueCache->createValue(image.slices().bottom().value(), CSSPrimitiveValue::CSS_NUMBER); in valueForNinePieceImage() 343 RefPtr<CSSPrimitiveValue> left; in valueForNinePieceImage() [all …]
|
D | ShadowValue.cpp | 29 ShadowValue::ShadowValue(PassRefPtr<CSSPrimitiveValue> _x, in ShadowValue() 30 PassRefPtr<CSSPrimitiveValue> _y, in ShadowValue() 31 PassRefPtr<CSSPrimitiveValue> _blur, in ShadowValue() 32 PassRefPtr<CSSPrimitiveValue> _spread, in ShadowValue() 33 PassRefPtr<CSSPrimitiveValue> _style, in ShadowValue() 34 PassRefPtr<CSSPrimitiveValue> _color) in ShadowValue()
|
D | MediaQueryEvaluator.cpp | 181 …if (i0->isPrimitiveValue() && static_cast<CSSPrimitiveValue*>(i0)->primitiveType() == CSSPrimitive… in parseAspectRatio() 182 …&& i1->isPrimitiveValue() && static_cast<CSSPrimitiveValue*>(i1)->primitiveType() == CSSPrimitiveV… in parseAspectRatio() 183 …&& i2->isPrimitiveValue() && static_cast<CSSPrimitiveValue*>(i2)->primitiveType() == CSSPrimitiveV… in parseAspectRatio() 184 String str = static_cast<CSSPrimitiveValue*>(i1)->getStringValue(); in parseAspectRatio() 186 … h = static_cast<CSSPrimitiveValue*>(i0)->getIntValue(CSSPrimitiveValue::CSS_NUMBER); in parseAspectRatio() 187 … v = static_cast<CSSPrimitiveValue*>(i2)->getIntValue(CSSPrimitiveValue::CSS_NUMBER); in parseAspectRatio() 213 … && static_cast<CSSPrimitiveValue*>(value)->primitiveType() == CSSPrimitiveValue::CSS_NUMBER) { in numberValue() 214 … result = static_cast<CSSPrimitiveValue*>(value)->getFloatValue(CSSPrimitiveValue::CSS_NUMBER); in numberValue() 253 return "landscape" == static_cast<CSSPrimitiveValue*>(value)->getStringValue(); in orientationMediaFeatureEval() 254 return "portrait" == static_cast<CSSPrimitiveValue*>(value)->getStringValue(); in orientationMediaFeatureEval() [all …]
|
D | CSSReflectValue.h | 36 class CSSPrimitiveValue; variable 41 PassRefPtr<CSSPrimitiveValue> offset, PassRefPtr<CSSValue> mask) in create() 47 CSSPrimitiveValue* offset() const { return m_offset.get(); } in offset() 56 PassRefPtr<CSSPrimitiveValue> offset, PassRefPtr<CSSValue> mask) in CSSReflectValue() 66 RefPtr<CSSPrimitiveValue> m_offset;
|
D | CSSStyleSelector.cpp | 3308 static Length convertToLength(CSSPrimitiveValue* primitiveValue, RenderStyle* style, RenderStyle* r… in convertToLength() 3320 …if (!style && (type == CSSPrimitiveValue::CSS_EMS || type == CSSPrimitiveValue::CSS_EXS || type ==… in convertToLength() 3323 } else if (CSSPrimitiveValue::isUnitTypeLength(type)) { in convertToLength() 3329 else if (type == CSSPrimitiveValue::CSS_PERCENTAGE) in convertToLength() 3331 else if (type == CSSPrimitiveValue::CSS_NUMBER) in convertToLength() 3339 static Length convertToIntLength(CSSPrimitiveValue* primitiveValue, RenderStyle* style, RenderStyle… in convertToIntLength() 3344 static Length convertToFloatLength(CSSPrimitiveValue* primitiveValue, RenderStyle* style, RenderSty… in convertToFloatLength() 3473 Pair* pair = static_cast<CSSPrimitiveValue*>(currValue)->getPairValue(); in applyCounterList() 3477 AtomicString identifier = static_cast<CSSPrimitiveValue*>(pair->first())->getStringValue(); in applyCounterList() 3479 int value = static_cast<CSSPrimitiveValue*>(pair->second())->getIntValue(); in applyCounterList() [all …]
|
D | CSSGradientValue.cpp | 71 double aVal = a.m_position->getDoubleValue(CSSPrimitiveValue::CSS_NUMBER); in compareStops() 72 double bVal = b.m_position->getDoubleValue(CSSPrimitiveValue::CSS_NUMBER); in compareStops() 125 if (stop.m_position->primitiveType() == CSSPrimitiveValue::CSS_PERCENTAGE) in addStops() 126 offset = stop.m_position->getFloatValue(CSSPrimitiveValue::CSS_PERCENTAGE) / 100; in addStops() 128 offset = stop.m_position->getFloatValue(CSSPrimitiveValue::CSS_NUMBER); in addStops() 159 if (type == CSSPrimitiveValue::CSS_PERCENTAGE) in addStops() 160 … stops[i].offset = stop.m_position->getFloatValue(CSSPrimitiveValue::CSS_PERCENTAGE) / 100; in addStops() 161 else if (CSSPrimitiveValue::isUnitTypeLength(type)) { in addStops() 365 static float positionFromValue(CSSPrimitiveValue* value, RenderStyle* style, RenderStyle* rootStyle… in positionFromValue() 370 case CSSPrimitiveValue::CSS_NUMBER: in positionFromValue() [all …]
|
/external/webkit/Source/WebCore/svg/ |
D | SVGLength.cpp | 463 SVGLength SVGLength::fromCSSPrimitiveValue(CSSPrimitiveValue* value) in fromCSSPrimitiveValue() 469 case CSSPrimitiveValue::CSS_NUMBER: in fromCSSPrimitiveValue() 472 case CSSPrimitiveValue::CSS_PERCENTAGE: in fromCSSPrimitiveValue() 475 case CSSPrimitiveValue::CSS_EMS: in fromCSSPrimitiveValue() 478 case CSSPrimitiveValue::CSS_EXS: in fromCSSPrimitiveValue() 481 case CSSPrimitiveValue::CSS_PX: in fromCSSPrimitiveValue() 484 case CSSPrimitiveValue::CSS_CM: in fromCSSPrimitiveValue() 487 case CSSPrimitiveValue::CSS_MM: in fromCSSPrimitiveValue() 490 case CSSPrimitiveValue::CSS_IN: in fromCSSPrimitiveValue() 493 case CSSPrimitiveValue::CSS_PT: in fromCSSPrimitiveValue() [all …]
|