Lines Matching full:value
48 // non-refcounted simple type with value semantics. In practice these sharing tricks get similar memory benefits
91 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::create(double value, UnitTypes type)
99 if (type <= maxCachedUnitType && value >= 0 && value < cachedIntegerCount) {
100 int intValue = static_cast<int>(value);
101 if (value == intValue) {
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));
237 m_value.num = length.value();
327 // need to go ahead and round if we're really close to the next integer value.
340 // need to go ahead and round if we're really close to the next integer value.
348 const int intMaxForLength = 0x7ffffff; // max value for a 28-bit int
349 const int intMinForLength = (-0x7ffffff - 1); // min value for a 28-bit int
357 // need to go ahead and round if we're really close to the next integer value.
371 // need to go ahead and round if we're really close to the next integer value.
384 // need to go ahead and round if we're really close to the next integer value.
397 // need to go ahead and round if we're really close to the next integer value.
419 // We do not apply the zoom factor when we are computing the value of the font-size property. The zooming
533 // First convert the value from m_type into CSSPixels
554 // First convert the value from m_type into CSSPixels
686 // FIXME: return the original value instead of a generated one (e.g. color
892 CSSParserValue value;
893 value.id = 0;
894 value.isInt = false;
895 value.unit = CSSPrimitiveValue::CSS_IDENT;
917 value.fValue = m_value.num;
918 value.unit = m_type;
924 value.string.characters = const_cast<UChar*>(m_value.string->characters());
925 value.string.length = m_value.string->length();
926 value.unit = m_type;
929 value.id = m_value.ident;
931 value.string.characters = const_cast<UChar*>(name.characters());
932 value.string.length = name.length();
936 value.iValue = m_value.ident;
937 value.unit = CSSParserValue::Operator;
940 value.fValue = m_value.num;
941 value.unit = CSSPrimitiveValue::CSS_NUMBER;
942 value.isInt = true;
945 value.string.characters = const_cast<UChar*>(m_value.string->characters());
946 value.string.length = m_value.string->length();
947 value.unit = CSSPrimitiveValue::CSS_IDENT;
962 return value;