webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::CSSCalcValue Class Referencefinal

#include <CSSCalculationValue.h>

Inheritance diagram for WebCore::CSSCalcValue:
WebCore::CSSValue WebCore::CSSValue WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Member Functions

CalculationCategory category () const
 
bool isInt () const
 
double doubleValue () const
 
bool isPositive () const
 
bool isNegative () const
 
double computeLengthPx (const CSSToLengthConversionData &) const
 
unsigned short primitiveType () const
 
Ref< CalculationValuecreateCalculationValue (const CSSToLengthConversionData &) const
 
void setPermittedValueRange (ValueRange)
 
String customCSSText () const
 
bool equals (const CSSCalcValue &) const
 
CalculationCategory category () const
 
bool isInt () const
 
double doubleValue () const
 
bool isPositive () const
 
bool isNegative () const
 
double computeLengthPx (const CSSToLengthConversionData &) const
 
unsigned short primitiveType () const
 
Ref< CalculationValuecreateCalculationValue (const CSSToLengthConversionData &) const
 
void setPermittedValueRange (ValueRange)
 
String customCSSText () const
 
bool equals (const CSSCalcValue &) const
 
- Public Member Functions inherited from WebCore::CSSValue
void deref ()
 
Type cssValueType () const
 
String cssText () const
 
bool isPrimitiveValue () const
 
bool isValueList () const
 
bool isBaseValueList () const
 
bool isAspectRatioValue () const
 
bool isBorderImageSliceValue () const
 
bool isCanvasValue () const
 
bool isCrossfadeValue () const
 
bool isCursorImageValue () const
 
bool isCustomPropertyValue () const
 
bool isFunctionValue () const
 
bool isFontFeatureValue () const
 
bool isFontFaceSrcValue () const
 
bool isFontValue () const
 
bool isImageGeneratorValue () const
 
bool isGradientValue () const
 
bool isNamedImageValue () const
 
bool isImageSetValue () const
 
bool isImageValue () const
 
bool isImplicitInitialValue () const
 
bool isInheritedValue () const
 
bool isInitialValue () const
 
bool isUnsetValue () const
 
bool isRevertValue () const
 
bool treatAsInitialValue (CSSPropertyID) const
 
bool treatAsInheritedValue (CSSPropertyID) const
 
bool isLinearGradientValue () const
 
bool isRadialGradientValue () const
 
bool isReflectValue () const
 
bool isShadowValue () const
 
bool isCubicBezierTimingFunctionValue () const
 
bool isStepsTimingFunctionValue () const
 
bool isSpringTimingFunctionValue () const
 
bool isLineBoxContainValue () const
 
bool isCalcValue () const
 
bool isFilterImageValue () const
 
bool isContentDistributionValue () const
 
bool isGridAutoRepeatValue () const
 
bool isGridTemplateAreasValue () const
 
bool isGridLineNamesValue () const
 
bool isUnicodeRangeValue () const
 
bool isCustomIdentValue () const
 
bool isVariableReferenceValue () const
 
bool isPendingSubstitutionValue () const
 
bool hasVariableReferences () const
 
Ref< DeprecatedCSSOMValuecreateDeprecatedCSSOMWrapper () const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
bool equals (const CSSValue &) const
 
bool operator== (const CSSValue &other) const
 
void deref ()
 
Type cssValueType () const
 
String cssText () const
 
bool isPrimitiveValue () const
 
bool isValueList () const
 
bool isBaseValueList () const
 
bool isAspectRatioValue () const
 
bool isBorderImageSliceValue () const
 
bool isCanvasValue () const
 
bool isCrossfadeValue () const
 
bool isCursorImageValue () const
 
bool isCustomPropertyValue () const
 
bool isFunctionValue () const
 
bool isFontFeatureValue () const
 
bool isFontFaceSrcValue () const
 
bool isFontValue () const
 
bool isImageGeneratorValue () const
 
bool isGradientValue () const
 
bool isNamedImageValue () const
 
bool isImageSetValue () const
 
bool isImageValue () const
 
bool isImplicitInitialValue () const
 
bool isInheritedValue () const
 
bool isInitialValue () const
 
bool isUnsetValue () const
 
bool isRevertValue () const
 
bool treatAsInitialValue (CSSPropertyID) const
 
bool treatAsInheritedValue (CSSPropertyID) const
 
bool isLinearGradientValue () const
 
bool isRadialGradientValue () const
 
bool isReflectValue () const
 
bool isShadowValue () const
 
bool isCubicBezierTimingFunctionValue () const
 
bool isStepsTimingFunctionValue () const
 
bool isSpringTimingFunctionValue () const
 
bool isLineBoxContainValue () const
 
bool isCalcValue () const
 
bool isFilterImageValue () const
 
bool isContentDistributionValue () const
 
bool isGridAutoRepeatValue () const
 
bool isGridTemplateAreasValue () const
 
bool isGridLineNamesValue () const
 
bool isUnicodeRangeValue () const
 
bool isCustomIdentValue () const
 
bool isVariableReferenceValue () const
 
bool isPendingSubstitutionValue () const
 
bool hasVariableReferences () const
 
Ref< DeprecatedCSSOMValuecreateDeprecatedCSSOMWrapper () const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
bool equals (const CSSValue &) const
 
bool operator== (const CSSValue &other) const
 
- Public Member Functions inherited from WTF::RefCounted< CSSValue >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static RefPtr< CSSCalcValuecreate (const CSSParserTokenRange &, ValueRange)
 
static RefPtr< CSSCalcValuecreate (const CalculationValue &, const RenderStyle &)
 
static RefPtr< CSSCalcValuecreate (const CSSParserTokenRange &, ValueRange)
 
static RefPtr< CSSCalcValuecreate (const CalculationValue &, const RenderStyle &)
 

Additional Inherited Members

- Public Types inherited from WebCore::CSSValue
enum  Type {
  CSS_INHERIT = 0, CSS_PRIMITIVE_VALUE = 1, CSS_VALUE_LIST = 2, CSS_CUSTOM = 3,
  CSS_INITIAL = 4, CSS_UNSET = 5, CSS_REVERT = 6, CSS_INHERIT = 0,
  CSS_PRIMITIVE_VALUE = 1, CSS_VALUE_LIST = 2, CSS_CUSTOM = 3, CSS_INITIAL = 4,
  CSS_UNSET = 5, CSS_REVERT = 6
}
 
enum  ValueListSeparator {
  SpaceSeparator, CommaSeparator, SlashSeparator, SpaceSeparator,
  CommaSeparator, SlashSeparator
}
 
enum  Type {
  CSS_INHERIT = 0, CSS_PRIMITIVE_VALUE = 1, CSS_VALUE_LIST = 2, CSS_CUSTOM = 3,
  CSS_INITIAL = 4, CSS_UNSET = 5, CSS_REVERT = 6, CSS_INHERIT = 0,
  CSS_PRIMITIVE_VALUE = 1, CSS_VALUE_LIST = 2, CSS_CUSTOM = 3, CSS_INITIAL = 4,
  CSS_UNSET = 5, CSS_REVERT = 6
}
 
enum  ValueListSeparator {
  SpaceSeparator, CommaSeparator, SlashSeparator, SpaceSeparator,
  CommaSeparator, SlashSeparator
}
 
- Static Public Attributes inherited from WebCore::CSSValue
static const size_t ValueListSeparatorBits = 2
 
- Protected Types inherited from WebCore::CSSValue
enum  ClassType {
  PrimitiveClass, ImageClass, CursorImageClass, CanvasClass,
  NamedImageClass, CrossfadeClass, FilterImageClass, LinearGradientClass,
  RadialGradientClass, CubicBezierTimingFunctionClass, StepsTimingFunctionClass, SpringTimingFunctionClass,
  AspectRatioClass, BorderImageSliceClass, FontFeatureClass, FontClass,
  FontFaceSrcClass, FunctionClass, InheritedClass, InitialClass,
  UnsetClass, RevertClass, ReflectClass, ShadowClass,
  UnicodeRangeClass, LineBoxContainClass, CalculationClass, GridTemplateAreasClass,
  CSSContentDistributionClass, CustomIdentClass, CustomPropertyClass, VariableReferenceClass,
  PendingSubstitutionValueClass, ValueListClass, ImageSetClass, GridLineNamesClass,
  GridAutoRepeatClass, PrimitiveClass, ImageClass, CursorImageClass,
  CanvasClass, NamedImageClass, CrossfadeClass, FilterImageClass,
  LinearGradientClass, RadialGradientClass, CubicBezierTimingFunctionClass, StepsTimingFunctionClass,
  SpringTimingFunctionClass, AspectRatioClass, BorderImageSliceClass, FontFeatureClass,
  FontClass, FontFaceSrcClass, FunctionClass, InheritedClass,
  InitialClass, UnsetClass, RevertClass, ReflectClass,
  ShadowClass, UnicodeRangeClass, LineBoxContainClass, CalculationClass,
  GridTemplateAreasClass, CSSContentDistributionClass, CustomIdentClass, CustomPropertyClass,
  VariableReferenceClass, PendingSubstitutionValueClass, ValueListClass, ImageSetClass,
  GridLineNamesClass, GridAutoRepeatClass
}
 
enum  ClassType {
  PrimitiveClass, ImageClass, CursorImageClass, CanvasClass,
  NamedImageClass, CrossfadeClass, FilterImageClass, LinearGradientClass,
  RadialGradientClass, CubicBezierTimingFunctionClass, StepsTimingFunctionClass, SpringTimingFunctionClass,
  AspectRatioClass, BorderImageSliceClass, FontFeatureClass, FontClass,
  FontFaceSrcClass, FunctionClass, InheritedClass, InitialClass,
  UnsetClass, RevertClass, ReflectClass, ShadowClass,
  UnicodeRangeClass, LineBoxContainClass, CalculationClass, GridTemplateAreasClass,
  CSSContentDistributionClass, CustomIdentClass, CustomPropertyClass, VariableReferenceClass,
  PendingSubstitutionValueClass, ValueListClass, ImageSetClass, GridLineNamesClass,
  GridAutoRepeatClass, PrimitiveClass, ImageClass, CursorImageClass,
  CanvasClass, NamedImageClass, CrossfadeClass, FilterImageClass,
  LinearGradientClass, RadialGradientClass, CubicBezierTimingFunctionClass, StepsTimingFunctionClass,
  SpringTimingFunctionClass, AspectRatioClass, BorderImageSliceClass, FontFeatureClass,
  FontClass, FontFaceSrcClass, FunctionClass, InheritedClass,
  InitialClass, UnsetClass, RevertClass, ReflectClass,
  ShadowClass, UnicodeRangeClass, LineBoxContainClass, CalculationClass,
  GridTemplateAreasClass, CSSContentDistributionClass, CustomIdentClass, CustomPropertyClass,
  VariableReferenceClass, PendingSubstitutionValueClass, ValueListClass, ImageSetClass,
  GridLineNamesClass, GridAutoRepeatClass
}
 
- Protected Member Functions inherited from WebCore::CSSValue
ClassType classType () const
 
 CSSValue (ClassType classType)
 
 ~CSSValue ()
 
ClassType classType () const
 
 CSSValue (ClassType classType)
 
 ~CSSValue ()
 
- Protected Member Functions inherited from WTF::RefCounted< CSSValue >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
- Protected Attributes inherited from WebCore::CSSValue
unsigned m_primitiveUnitType: 7
 
unsigned m_hasCachedCSSText: 1
 
unsigned m_isQuirkValue: 1
 
unsigned m_valueListSeparator: ValueListSeparatorBits
 
- Static Protected Attributes inherited from WebCore::CSSValue
static const size_t ClassTypeBits = 6
 

Member Function Documentation

◆ category() [1/2]

CalculationCategory WebCore::CSSCalcValue::category ( ) const
inline

◆ category() [2/2]

CalculationCategory WebCore::CSSCalcValue::category ( ) const
inline

◆ computeLengthPx() [1/2]

double WebCore::CSSCalcValue::computeLengthPx ( const CSSToLengthConversionData conversionData) const

◆ computeLengthPx() [2/2]

double WebCore::CSSCalcValue::computeLengthPx ( const CSSToLengthConversionData ) const

◆ create() [1/4]

RefPtr< CSSCalcValue > WebCore::CSSCalcValue::create ( const CSSParserTokenRange tokens,
ValueRange  range 
)
static

◆ create() [2/4]

static RefPtr<CSSCalcValue> WebCore::CSSCalcValue::create ( const CSSParserTokenRange ,
ValueRange   
)
static

◆ create() [3/4]

RefPtr< CSSCalcValue > WebCore::CSSCalcValue::create ( const CalculationValue value,
const RenderStyle style 
)
static

◆ create() [4/4]

static RefPtr<CSSCalcValue> WebCore::CSSCalcValue::create ( const CalculationValue ,
const RenderStyle  
)
static

◆ createCalculationValue() [1/2]

Ref< CalculationValue > WebCore::CSSCalcValue::createCalculationValue ( const CSSToLengthConversionData conversionData) const
inline

◆ createCalculationValue() [2/2]

Ref<CalculationValue> WebCore::CSSCalcValue::createCalculationValue ( const CSSToLengthConversionData ) const

◆ customCSSText() [1/2]

String WebCore::CSSCalcValue::customCSSText ( ) const

◆ customCSSText() [2/2]

String WebCore::CSSCalcValue::customCSSText ( ) const

◆ doubleValue() [1/2]

double WebCore::CSSCalcValue::doubleValue ( ) const

◆ doubleValue() [2/2]

double WebCore::CSSCalcValue::doubleValue ( ) const

◆ equals() [1/2]

bool WebCore::CSSCalcValue::equals ( const CSSCalcValue ) const

◆ equals() [2/2]

bool WebCore::CSSCalcValue::equals ( const CSSCalcValue other) const

◆ isInt() [1/2]

bool WebCore::CSSCalcValue::isInt ( ) const
inline

◆ isInt() [2/2]

bool WebCore::CSSCalcValue::isInt ( ) const
inline

◆ isNegative() [1/2]

bool WebCore::CSSCalcValue::isNegative ( ) const
inline

◆ isNegative() [2/2]

bool WebCore::CSSCalcValue::isNegative ( ) const
inline

◆ isPositive() [1/2]

bool WebCore::CSSCalcValue::isPositive ( ) const
inline

◆ isPositive() [2/2]

bool WebCore::CSSCalcValue::isPositive ( ) const
inline

◆ primitiveType() [1/2]

unsigned short WebCore::CSSCalcValue::primitiveType ( ) const
inline

◆ primitiveType() [2/2]

unsigned short WebCore::CSSCalcValue::primitiveType ( ) const
inline

◆ setPermittedValueRange() [1/2]

void WebCore::CSSCalcValue::setPermittedValueRange ( ValueRange  )

◆ setPermittedValueRange() [2/2]

void WebCore::CSSCalcValue::setPermittedValueRange ( ValueRange  range)
inline

The documentation for this class was generated from the following files: