Home | History | Annotate | Download | only in css

Lines Matching defs:CSSPrimitiveValue

22 #include "CSSPrimitiveValue.h"
47 // A more stylish solution than sharing would be to turn CSSPrimitiveValue (or CSSValues in general) into non-virtual,
51 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::createIdentifier(int ident)
53 static RefPtr<CSSPrimitiveValue>* identValueCache = new RefPtr<CSSPrimitiveValue>[numCSSValueKeywords];
55 RefPtr<CSSPrimitiveValue> primitiveValue = identValueCache[ident];
57 primitiveValue = adoptRef(new CSSPrimitiveValue(ident));
62 return adoptRef(new CSSPrimitiveValue(ident));
65 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::createColor(unsigned rgbValue)
67 typedef HashMap<unsigned, RefPtr<CSSPrimitiveValue> > ColorValueCache;
71 static CSSPrimitiveValue* colorTransparent = new CSSPrimitiveValue(Color::transparent);
75 static CSSPrimitiveValue* colorWhite = new CSSPrimitiveValue(Color::white);
78 RefPtr<CSSPrimitiveValue> primitiveValue = colorValueCache->get(rgbValue);
81 primitiveValue = adoptRef(new CSSPrimitiveValue(rgbValue));
91 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::create(double value, UnitTypes type)
97 typedef RefPtr<CSSPrimitiveValue>(* IntegerValueCache)[maxCachedUnitType + 1];
98 static IntegerValueCache integerValueCache = new RefPtr<CSSPrimitiveValue>[cachedIntegerCount][maxCachedUnitType + 1];
102 RefPtr<CSSPrimitiveValue> primitiveValue = integerValueCache[intValue][type];
104 primitiveValue = adoptRef(new CSSPrimitiveValue(value, type));
111 return adoptRef(new CSSPrimitiveValue(value, type));
114 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::create(const String& value, UnitTypes type)
116 return adoptRef(new CSSPrimitiveValue(value, type));
198 CSSPrimitiveValue::CSSPrimitiveValue()
203 CSSPrimitiveValue::CSSPrimitiveValue(int ident)
209 CSSPrimitiveValue::CSSPrimitiveValue(double num, UnitTypes type)
215 CSSPrimitiveValue::CSSPrimitiveValue(const String& str, UnitTypes type)
222 CSSPrimitiveValue::CSSPrimitiveValue(RGBA32 color)
228 CSSPrimitiveValue::CSSPrimitiveValue(const Length& length)
258 void CSSPrimitiveValue::init(PassRefPtr<Counter> c)
264 void CSSPrimitiveValue::init(PassRefPtr<Rect> r)
271 void CSSPrimitiveValue::init(PassRefPtr<DashboardRegion> r)
278 void CSSPrimitiveValue::init(PassRefPtr<Pair> p)
284 CSSPrimitiveValue::~CSSPrimitiveValue()
289 void CSSPrimitiveValue::cleanup()
322 int CSSPrimitiveValue::computeLengthInt(RenderStyle* style, RenderStyle* rootStyle)
335 int CSSPrimitiveValue::computeLengthInt(RenderStyle* style, RenderStyle* rootStyle, double multiplier)
352 int CSSPrimitiveValue::computeLengthIntForLength(RenderStyle* style, RenderStyle* rootStyle)
366 int CSSPrimitiveValue::computeLengthIntForLength(RenderStyle* style, RenderStyle* rootStyle, double multiplier)
379 short CSSPrimitiveValue::computeLengthShort(RenderStyle* style, RenderStyle* rootStyle)
392 short CSSPrimitiveValue::computeLengthShort(RenderStyle* style, RenderStyle* rootStyle, double multiplier)
405 float CSSPrimitiveValue::computeLengthFloat(RenderStyle* style, RenderStyle* rootStyle, bool computingFontSize)
410 float CSSPrimitiveValue::computeLengthFloat(RenderStyle* style, RenderStyle* rootStyle, double multiplier, bool computingFontSize)
415 double CSSPrimitiveValue::computeLengthDouble(RenderStyle* style, RenderStyle* rootStyle, double multiplier, bool computingFontSize)
476 void CSSPrimitiveValue::setFloatValue(unsigned short unitType, double floatValue, ExceptionCode& ec)
496 case CSSPrimitiveValue::CSS_PX:
498 case CSSPrimitiveValue::CSS_CM:
501 case CSSPrimitiveValue::CSS_MM:
504 CSSPrimitiveValue::CSS_IN:
507 case CSSPrimitiveValue::CSS_PT:
510 case CSSPrimitiveValue::CSS_PC:
520 double CSSPrimitiveValue::getDoubleValue(unsigned short unitType, ExceptionCode& ec)
544 double CSSPrimitiveValue::getDoubleValue(unsigned short unitType)
566 void CSSPrimitiveValue::setStringValue(unsigned short stringType, const String& stringValue, ExceptionCode& ec)
585 String CSSPrimitiveValue::getStringValue(ExceptionCode& ec) const
604 String CSSPrimitiveValue::getStringValue() const
621 Counter* CSSPrimitiveValue::getCounterValue(ExceptionCode& ec) const
632 Rect* CSSPrimitiveValue::getRectValue(ExceptionCode& ec) const
643 PassRefPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionCode& ec) const
655 Pair* CSSPrimitiveValue::getPairValue(ExceptionCode& ec) const
666 unsigned short CSSPrimitiveValue::cssValueType() const
671 bool CSSPrimitiveValue::parseString(const String& /*string*/, bool /*strict*/)
677 int CSSPrimitiveValue::getIdent()
684 String CSSPrimitiveValue::cssText() const
889 CSSParserValue CSSPrimitiveValue::parserValue() const
895 value.unit = CSSPrimitiveValue::CSS_IDENT;
941 value.unit = CSSPrimitiveValue::CSS_NUMBER;
947 value.unit = CSSPrimitiveValue::CSS_IDENT;
965 void CSSPrimitiveValue::addSubresourceStyleURLs(ListHashSet<KURL>& urls, const CSSStyleSheet* styleSheet)