webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WebCore::CSSGradientValue Class Reference

#include <CSSGradientValue.h>

Inheritance diagram for WebCore::CSSGradientValue:
WebCore::CSSImageGeneratorValue WebCore::CSSImageGeneratorValue WebCore::CSSValue WebCore::CSSValue WebCore::CSSValue WebCore::CSSValue WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WTF::RefCounted< CSSValue > WebCore::CSSLinearGradientValue WebCore::CSSLinearGradientValue WebCore::CSSRadialGradientValue WebCore::CSSRadialGradientValue

Public Member Functions

RefPtr< Imageimage (RenderElement &, const FloatSize &)
 
void setFirstX (RefPtr< CSSPrimitiveValue > &&val)
 
void setFirstY (RefPtr< CSSPrimitiveValue > &&val)
 
void setSecondX (RefPtr< CSSPrimitiveValue > &&val)
 
void setSecondY (RefPtr< CSSPrimitiveValue > &&val)
 
void addStop (const CSSGradientColorStop &stop)
 
unsigned stopCount () const
 
void sortStopsIfNeeded ()
 
bool isRepeating () const
 
CSSGradientType gradientType () const
 
bool isFixedSize () const
 
FloatSize fixedSize (const RenderElement &) const
 
bool isPending () const
 
bool knownToBeOpaque () const
 
void loadSubimages (CachedResourceLoader &, const ResourceLoaderOptions &)
 
Ref< CSSGradientValuegradientWithStylesResolved (const StyleResolver &)
 
RefPtr< Imageimage (RenderElement &, const FloatSize &)
 
void setFirstX (RefPtr< CSSPrimitiveValue > &&val)
 
void setFirstY (RefPtr< CSSPrimitiveValue > &&val)
 
void setSecondX (RefPtr< CSSPrimitiveValue > &&val)
 
void setSecondY (RefPtr< CSSPrimitiveValue > &&val)
 
void addStop (const CSSGradientColorStop &stop)
 
unsigned stopCount () const
 
void sortStopsIfNeeded ()
 
bool isRepeating () const
 
CSSGradientType gradientType () const
 
bool isFixedSize () const
 
FloatSize fixedSize (const RenderElement &) const
 
bool isPending () const
 
bool knownToBeOpaque () const
 
void loadSubimages (CachedResourceLoader &, const ResourceLoaderOptions &)
 
Ref< CSSGradientValuegradientWithStylesResolved (const StyleResolver &)
 
- Public Member Functions inherited from WebCore::CSSImageGeneratorValue
 ~CSSImageGeneratorValue ()
 
void addClient (RenderElement &)
 
void removeClient (RenderElement &)
 
RefPtr< Imageimage (RenderElement &, const FloatSize &)
 
bool isFixedSize () const
 
FloatSize fixedSize (const RenderElement &)
 
bool isPending () const
 
bool knownToBeOpaque (const RenderElement &) const
 
void loadSubimages (CachedResourceLoader &, const ResourceLoaderOptions &)
 
 ~CSSImageGeneratorValue ()
 
void addClient (RenderElement &)
 
void removeClient (RenderElement &)
 
RefPtr< Imageimage (RenderElement &, const FloatSize &)
 
bool isFixedSize () const
 
FloatSize fixedSize (const RenderElement &)
 
bool isPending () const
 
bool knownToBeOpaque (const RenderElement &) const
 
void loadSubimages (CachedResourceLoader &, const ResourceLoaderOptions &)
 
- 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 ()
 

Protected Member Functions

 CSSGradientValue (ClassType classType, CSSGradientRepeat repeat, CSSGradientType gradientType)
 
 CSSGradientValue (const CSSGradientValue &other, ClassType classType, CSSGradientType gradientType)
 
void addStops (Gradient &, const CSSToLengthConversionData &, float maxLengthForRepeat=0)
 
FloatPoint computeEndPoint (CSSPrimitiveValue *, CSSPrimitiveValue *, const CSSToLengthConversionData &, const FloatSize &)
 
bool isCacheable () const
 
 CSSGradientValue (ClassType classType, CSSGradientRepeat repeat, CSSGradientType gradientType)
 
 CSSGradientValue (const CSSGradientValue &other, ClassType classType, CSSGradientType gradientType)
 
void addStops (Gradient &, const CSSToLengthConversionData &, float maxLengthForRepeat=0)
 
FloatPoint computeEndPoint (CSSPrimitiveValue *, CSSPrimitiveValue *, const CSSToLengthConversionData &, const FloatSize &)
 
bool isCacheable () const
 
- Protected Member Functions inherited from WebCore::CSSImageGeneratorValue
 CSSImageGeneratorValue (ClassType)
 
GeneratedImagecachedImageForSize (FloatSize)
 
void saveCachedImageForSize (FloatSize, GeneratedImage &)
 
const HashCountedSet< RenderElement * > & clients () const
 
 CSSImageGeneratorValue (ClassType)
 
GeneratedImagecachedImageForSize (FloatSize)
 
void saveCachedImageForSize (FloatSize, GeneratedImage &)
 
const HashCountedSet< RenderElement * > & clients () const
 
- 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

RefPtr< CSSPrimitiveValuem_firstX
 
RefPtr< CSSPrimitiveValuem_firstY
 
RefPtr< CSSPrimitiveValuem_secondX
 
RefPtr< CSSPrimitiveValuem_secondY
 
Vector< CSSGradientColorStop, 2 > m_stops
 
bool m_stopsSorted
 
CSSGradientType m_gradientType
 
bool m_repeating
 
- Protected Attributes inherited from WebCore::CSSValue
unsigned m_primitiveUnitType: 7
 
unsigned m_hasCachedCSSText: 1
 
unsigned m_isQuirkValue: 1
 
unsigned m_valueListSeparator: ValueListSeparatorBits
 

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
}
 
- Static Protected Member Functions inherited from WebCore::CSSImageGeneratorValue
static CachedImagecachedImageForCSSValue (CSSValue &, CachedResourceLoader &, const ResourceLoaderOptions &)
 
static bool subimageIsPending (const CSSValue &)
 
static CachedImagecachedImageForCSSValue (CSSValue &, CachedResourceLoader &, const ResourceLoaderOptions &)
 
static bool subimageIsPending (const CSSValue &)
 
- Static Protected Attributes inherited from WebCore::CSSValue
static const size_t ClassTypeBits = 6
 

Constructor & Destructor Documentation

◆ CSSGradientValue() [1/4]

WebCore::CSSGradientValue::CSSGradientValue ( ClassType  classType,
CSSGradientRepeat  repeat,
CSSGradientType  gradientType 
)
inlineprotected

◆ CSSGradientValue() [2/4]

WebCore::CSSGradientValue::CSSGradientValue ( const CSSGradientValue other,
ClassType  classType,
CSSGradientType  gradientType 
)
inlineprotected

◆ CSSGradientValue() [3/4]

WebCore::CSSGradientValue::CSSGradientValue ( ClassType  classType,
CSSGradientRepeat  repeat,
CSSGradientType  gradientType 
)
inlineprotected

◆ CSSGradientValue() [4/4]

WebCore::CSSGradientValue::CSSGradientValue ( const CSSGradientValue other,
ClassType  classType,
CSSGradientType  gradientType 
)
inlineprotected

Member Function Documentation

◆ addStop() [1/2]

void WebCore::CSSGradientValue::addStop ( const CSSGradientColorStop stop)
inline

◆ addStop() [2/2]

void WebCore::CSSGradientValue::addStop ( const CSSGradientColorStop stop)
inline

◆ addStops() [1/2]

void WebCore::CSSGradientValue::addStops ( Gradient gradient,
const CSSToLengthConversionData conversionData,
float  maxLengthForRepeat = 0 
)
protected

◆ addStops() [2/2]

void WebCore::CSSGradientValue::addStops ( Gradient ,
const CSSToLengthConversionData ,
float  maxLengthForRepeat = 0 
)
protected

◆ computeEndPoint() [1/2]

FloatPoint WebCore::CSSGradientValue::computeEndPoint ( CSSPrimitiveValue horizontal,
CSSPrimitiveValue vertical,
const CSSToLengthConversionData conversionData,
const FloatSize size 
)
protected

◆ computeEndPoint() [2/2]

FloatPoint WebCore::CSSGradientValue::computeEndPoint ( CSSPrimitiveValue ,
CSSPrimitiveValue ,
const CSSToLengthConversionData ,
const FloatSize  
)
protected

◆ fixedSize() [1/2]

FloatSize WebCore::CSSGradientValue::fixedSize ( const RenderElement ) const
inline

◆ fixedSize() [2/2]

FloatSize WebCore::CSSGradientValue::fixedSize ( const RenderElement ) const
inline

◆ gradientType() [1/2]

CSSGradientType WebCore::CSSGradientValue::gradientType ( ) const
inline

◆ gradientType() [2/2]

CSSGradientType WebCore::CSSGradientValue::gradientType ( ) const
inline

◆ gradientWithStylesResolved() [1/2]

Ref< CSSGradientValue > WebCore::CSSGradientValue::gradientWithStylesResolved ( const StyleResolver styleResolver)

◆ gradientWithStylesResolved() [2/2]

Ref<CSSGradientValue> WebCore::CSSGradientValue::gradientWithStylesResolved ( const StyleResolver )

◆ image() [1/2]

RefPtr<Image> WebCore::CSSGradientValue::image ( RenderElement ,
const FloatSize  
)

◆ image() [2/2]

RefPtr< Image > WebCore::CSSGradientValue::image ( RenderElement renderer,
const FloatSize size 
)

◆ isCacheable() [1/2]

bool WebCore::CSSGradientValue::isCacheable ( ) const
protected

◆ isCacheable() [2/2]

bool WebCore::CSSGradientValue::isCacheable ( ) const
protected

◆ isFixedSize() [1/2]

bool WebCore::CSSGradientValue::isFixedSize ( ) const
inline

◆ isFixedSize() [2/2]

bool WebCore::CSSGradientValue::isFixedSize ( ) const
inline

◆ isPending() [1/2]

bool WebCore::CSSGradientValue::isPending ( ) const
inline

◆ isPending() [2/2]

bool WebCore::CSSGradientValue::isPending ( ) const
inline

◆ isRepeating() [1/2]

bool WebCore::CSSGradientValue::isRepeating ( ) const
inline

◆ isRepeating() [2/2]

bool WebCore::CSSGradientValue::isRepeating ( ) const
inline

◆ knownToBeOpaque() [1/2]

bool WebCore::CSSGradientValue::knownToBeOpaque ( ) const

◆ knownToBeOpaque() [2/2]

bool WebCore::CSSGradientValue::knownToBeOpaque ( ) const

◆ loadSubimages() [1/2]

void WebCore::CSSGradientValue::loadSubimages ( CachedResourceLoader ,
const ResourceLoaderOptions  
)
inline

◆ loadSubimages() [2/2]

void WebCore::CSSGradientValue::loadSubimages ( CachedResourceLoader ,
const ResourceLoaderOptions  
)
inline

◆ setFirstX() [1/2]

void WebCore::CSSGradientValue::setFirstX ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setFirstX() [2/2]

void WebCore::CSSGradientValue::setFirstX ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setFirstY() [1/2]

void WebCore::CSSGradientValue::setFirstY ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setFirstY() [2/2]

void WebCore::CSSGradientValue::setFirstY ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setSecondX() [1/2]

void WebCore::CSSGradientValue::setSecondX ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setSecondX() [2/2]

void WebCore::CSSGradientValue::setSecondX ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setSecondY() [1/2]

void WebCore::CSSGradientValue::setSecondY ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ setSecondY() [2/2]

void WebCore::CSSGradientValue::setSecondY ( RefPtr< CSSPrimitiveValue > &&  val)
inline

◆ sortStopsIfNeeded() [1/2]

void WebCore::CSSGradientValue::sortStopsIfNeeded ( )

◆ sortStopsIfNeeded() [2/2]

void WebCore::CSSGradientValue::sortStopsIfNeeded ( )

◆ stopCount() [1/2]

unsigned WebCore::CSSGradientValue::stopCount ( ) const
inline

◆ stopCount() [2/2]

unsigned WebCore::CSSGradientValue::stopCount ( ) const
inline

Member Data Documentation

◆ m_firstX

RefPtr< CSSPrimitiveValue > WebCore::CSSGradientValue::m_firstX
protected

◆ m_firstY

RefPtr< CSSPrimitiveValue > WebCore::CSSGradientValue::m_firstY
protected

◆ m_gradientType

CSSGradientType WebCore::CSSGradientValue::m_gradientType
protected

◆ m_repeating

bool WebCore::CSSGradientValue::m_repeating
protected

◆ m_secondX

RefPtr< CSSPrimitiveValue > WebCore::CSSGradientValue::m_secondX
protected

◆ m_secondY

RefPtr< CSSPrimitiveValue > WebCore::CSSGradientValue::m_secondY
protected

◆ m_stops

Vector< CSSGradientColorStop, 2 > WebCore::CSSGradientValue::m_stops
protected

◆ m_stopsSorted

bool WebCore::CSSGradientValue::m_stopsSorted
protected

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