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

#include <StyleProperties.h>

Inheritance diagram for WebCore::MutableStyleProperties:
WebCore::StyleProperties WebCore::StyleProperties WebCore::StylePropertiesBase WebCore::StylePropertiesBase WebCore::StylePropertiesBase WebCore::StylePropertiesBase WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase > WTF::RefCounted< StylePropertiesBase >

Public Member Functions

WEBCORE_EXPORT ~MutableStyleProperties ()
 
unsigned propertyCount () const
 
bool isEmpty () const
 
PropertyReference propertyAt (unsigned index) const
 
PropertySetCSSStyleDeclarationcssStyleDeclaration ()
 
bool addParsedProperties (const ParsedPropertyVector &)
 
bool addParsedProperty (const CSSProperty &)
 
bool setProperty (CSSPropertyID, const String &value, bool important, CSSParserContext)
 
bool setProperty (CSSPropertyID, const String &value, bool important=false)
 
void setProperty (CSSPropertyID, RefPtr< CSSValue > &&, bool important=false)
 
bool setProperty (CSSPropertyID, CSSValueID identifier, bool important=false)
 
bool setProperty (CSSPropertyID, CSSPropertyID identifier, bool important=false)
 
bool setProperty (const CSSProperty &, CSSProperty *slot=nullptr)
 
bool removeProperty (CSSPropertyID, String *returnText=nullptr)
 
void removeBlockProperties ()
 
bool removePropertiesInSet (const CSSPropertyID *set, unsigned length)
 
void mergeAndOverrideOnConflict (const StyleProperties &)
 
void clear ()
 
bool parseDeclaration (const String &styleDeclaration, CSSParserContext)
 
WEBCORE_EXPORT CSSStyleDeclarationensureCSSStyleDeclaration ()
 
CSSStyleDeclarationensureInlineCSSStyleDeclaration (StyledElement *parentElement)
 
int findPropertyIndex (CSSPropertyID) const
 
int findCustomPropertyIndex (const String &propertyName) const
 
bool setCustomProperty (const String &propertyName, const String &value, bool important, CSSParserContext)
 
bool removeCustomProperty (const String &propertyName, String *returnText=nullptr)
 
WEBCORE_EXPORT ~MutableStyleProperties ()
 
unsigned propertyCount () const
 
bool isEmpty () const
 
PropertyReference propertyAt (unsigned index) const
 
PropertySetCSSStyleDeclarationcssStyleDeclaration ()
 
bool addParsedProperties (const ParsedPropertyVector &)
 
bool addParsedProperty (const CSSProperty &)
 
bool setProperty (CSSPropertyID, const String &value, bool important, CSSParserContext)
 
bool setProperty (CSSPropertyID, const String &value, bool important=false)
 
void setProperty (CSSPropertyID, RefPtr< CSSValue > &&, bool important=false)
 
bool setProperty (CSSPropertyID, CSSValueID identifier, bool important=false)
 
bool setProperty (CSSPropertyID, CSSPropertyID identifier, bool important=false)
 
bool setProperty (const CSSProperty &, CSSProperty *slot=nullptr)
 
bool removeProperty (CSSPropertyID, String *returnText=nullptr)
 
void removeBlockProperties ()
 
bool removePropertiesInSet (const CSSPropertyID *set, unsigned length)
 
void mergeAndOverrideOnConflict (const StyleProperties &)
 
void clear ()
 
bool parseDeclaration (const String &styleDeclaration, CSSParserContext)
 
WEBCORE_EXPORT CSSStyleDeclarationensureCSSStyleDeclaration ()
 
CSSStyleDeclarationensureInlineCSSStyleDeclaration (StyledElement *parentElement)
 
int findPropertyIndex (CSSPropertyID) const
 
int findCustomPropertyIndex (const String &propertyName) const
 
bool setCustomProperty (const String &propertyName, const String &value, bool important, CSSParserContext)
 
bool removeCustomProperty (const String &propertyName, String *returnText=nullptr)
 
- Public Member Functions inherited from WebCore::StyleProperties
unsigned propertyCount () const
 
bool isEmpty () const
 
PropertyReference propertyAt (unsigned) const
 
WEBCORE_EXPORT RefPtr< CSSValuegetPropertyCSSValue (CSSPropertyID) const
 
WEBCORE_EXPORT String getPropertyValue (CSSPropertyID) const
 
bool propertyIsImportant (CSSPropertyID) const
 
String getPropertyShorthand (CSSPropertyID) const
 
bool isPropertyImplicit (CSSPropertyID) const
 
RefPtr< CSSValuegetCustomPropertyCSSValue (const String &propertyName) const
 
String getCustomPropertyValue (const String &propertyName) const
 
bool customPropertyIsImportant (const String &propertyName) const
 
Ref< MutableStylePropertiescopyBlockProperties () const
 
WEBCORE_EXPORT Ref< MutableStylePropertiesmutableCopy () const
 
Ref< ImmutableStylePropertiesimmutableCopyIfNeeded () const
 
Ref< MutableStylePropertiescopyPropertiesInSet (const CSSPropertyID *set, unsigned length) const
 
String asText () const
 
bool hasCSSOMWrapper () const
 
bool isMutable () const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
void showStyle ()
 
bool propertyMatches (CSSPropertyID, const CSSValue *) const
 
unsigned propertyCount () const
 
bool isEmpty () const
 
PropertyReference propertyAt (unsigned) const
 
WEBCORE_EXPORT RefPtr< CSSValuegetPropertyCSSValue (CSSPropertyID) const
 
WEBCORE_EXPORT String getPropertyValue (CSSPropertyID) const
 
bool propertyIsImportant (CSSPropertyID) const
 
String getPropertyShorthand (CSSPropertyID) const
 
bool isPropertyImplicit (CSSPropertyID) const
 
RefPtr< CSSValuegetCustomPropertyCSSValue (const String &propertyName) const
 
String getCustomPropertyValue (const String &propertyName) const
 
bool customPropertyIsImportant (const String &propertyName) const
 
Ref< MutableStylePropertiescopyBlockProperties () const
 
WEBCORE_EXPORT Ref< MutableStylePropertiesmutableCopy () const
 
Ref< ImmutableStylePropertiesimmutableCopyIfNeeded () const
 
Ref< MutableStylePropertiescopyPropertiesInSet (const CSSPropertyID *set, unsigned length) const
 
String asText () const
 
bool hasCSSOMWrapper () const
 
bool isMutable () const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
void showStyle ()
 
bool propertyMatches (CSSPropertyID, const CSSValue *) const
 
- Public Member Functions inherited from WebCore::StylePropertiesBase
void deref ()
 
StylePropertiesType type () const
 
CSSParserMode cssParserMode () const
 
void deref ()
 
StylePropertiesType type () const
 
CSSParserMode cssParserMode () const
 
- Public Member Functions inherited from WTF::RefCounted< StylePropertiesBase >
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 WEBCORE_EXPORT Ref< MutableStylePropertiescreate (CSSParserMode=HTMLQuirksMode)
 
static Ref< MutableStylePropertiescreate (const CSSProperty *properties, unsigned count)
 
static WEBCORE_EXPORT Ref< MutableStylePropertiescreate (CSSParserMode=HTMLQuirksMode)
 
static Ref< MutableStylePropertiescreate (const CSSProperty *properties, unsigned count)
 
- Static Public Member Functions inherited from WebCore::StyleProperties
static unsigned averageSizeInBytes ()
 
static unsigned averageSizeInBytes ()
 

Public Attributes

Vector< CSSProperty, 4 > m_propertyVector
 

Friends

class StyleProperties
 

Additional Inherited Members

- Protected Member Functions inherited from WebCore::StyleProperties
 StyleProperties (CSSParserMode cssParserMode, StylePropertiesType type)
 
 StyleProperties (CSSParserMode cssParserMode, unsigned immutableArraySize)
 
int findPropertyIndex (CSSPropertyID) const
 
int findCustomPropertyIndex (const String &propertyName) const
 
 StyleProperties (CSSParserMode cssParserMode, StylePropertiesType type)
 
 StyleProperties (CSSParserMode cssParserMode, unsigned immutableArraySize)
 
int findPropertyIndex (CSSPropertyID) const
 
int findCustomPropertyIndex (const String &propertyName) const
 
- Protected Member Functions inherited from WebCore::StylePropertiesBase
 StylePropertiesBase (CSSParserMode cssParserMode, StylePropertiesType type)
 
 StylePropertiesBase (CSSParserMode cssParserMode, unsigned immutableArraySize)
 
 StylePropertiesBase (CSSParserMode cssParserMode, StylePropertiesType type)
 
 StylePropertiesBase (CSSParserMode cssParserMode, unsigned immutableArraySize)
 
- Protected Member Functions inherited from WTF::RefCounted< StylePropertiesBase >
 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::StylePropertiesBase
unsigned m_cssParserMode: 3
 
unsigned m_type: 2
 
unsigned m_arraySize: 27
 

Constructor & Destructor Documentation

◆ ~MutableStyleProperties() [1/2]

WebCore::MutableStyleProperties::~MutableStyleProperties ( )

◆ ~MutableStyleProperties() [2/2]

WEBCORE_EXPORT WebCore::MutableStyleProperties::~MutableStyleProperties ( )

Member Function Documentation

◆ addParsedProperties() [1/2]

bool WebCore::MutableStyleProperties::addParsedProperties ( const ParsedPropertyVector properties)

◆ addParsedProperties() [2/2]

bool WebCore::MutableStyleProperties::addParsedProperties ( const ParsedPropertyVector )

◆ addParsedProperty() [1/2]

bool WebCore::MutableStyleProperties::addParsedProperty ( const CSSProperty property)

◆ addParsedProperty() [2/2]

bool WebCore::MutableStyleProperties::addParsedProperty ( const CSSProperty )

◆ clear() [1/2]

void WebCore::MutableStyleProperties::clear ( )

◆ clear() [2/2]

void WebCore::MutableStyleProperties::clear ( )

◆ create() [1/4]

Ref< MutableStyleProperties > WebCore::MutableStyleProperties::create ( CSSParserMode  cssParserMode = HTMLQuirksMode)
static

◆ create() [2/4]

static WEBCORE_EXPORT Ref<MutableStyleProperties> WebCore::MutableStyleProperties::create ( CSSParserMode  = HTMLQuirksMode)
static

◆ create() [3/4]

Ref< MutableStyleProperties > WebCore::MutableStyleProperties::create ( const CSSProperty properties,
unsigned  count 
)
static

◆ create() [4/4]

static Ref<MutableStyleProperties> WebCore::MutableStyleProperties::create ( const CSSProperty properties,
unsigned  count 
)
static

◆ cssStyleDeclaration() [1/2]

PropertySetCSSStyleDeclaration* WebCore::MutableStyleProperties::cssStyleDeclaration ( )

◆ cssStyleDeclaration() [2/2]

PropertySetCSSStyleDeclaration * WebCore::MutableStyleProperties::cssStyleDeclaration ( )

◆ ensureCSSStyleDeclaration() [1/2]

CSSStyleDeclaration * WebCore::MutableStyleProperties::ensureCSSStyleDeclaration ( )

◆ ensureCSSStyleDeclaration() [2/2]

WEBCORE_EXPORT CSSStyleDeclaration* WebCore::MutableStyleProperties::ensureCSSStyleDeclaration ( )

◆ ensureInlineCSSStyleDeclaration() [1/2]

CSSStyleDeclaration * WebCore::MutableStyleProperties::ensureInlineCSSStyleDeclaration ( StyledElement parentElement)

◆ ensureInlineCSSStyleDeclaration() [2/2]

CSSStyleDeclaration* WebCore::MutableStyleProperties::ensureInlineCSSStyleDeclaration ( StyledElement parentElement)

◆ findCustomPropertyIndex() [1/2]

int WebCore::MutableStyleProperties::findCustomPropertyIndex ( const String propertyName) const

◆ findCustomPropertyIndex() [2/2]

int WebCore::MutableStyleProperties::findCustomPropertyIndex ( const String propertyName) const

◆ findPropertyIndex() [1/2]

int WebCore::MutableStyleProperties::findPropertyIndex ( CSSPropertyID  propertyID) const

◆ findPropertyIndex() [2/2]

int WebCore::MutableStyleProperties::findPropertyIndex ( CSSPropertyID  ) const

◆ isEmpty() [1/2]

bool WebCore::MutableStyleProperties::isEmpty ( void  ) const
inline

◆ isEmpty() [2/2]

bool WebCore::MutableStyleProperties::isEmpty ( void  ) const
inline

◆ mergeAndOverrideOnConflict() [1/2]

void WebCore::MutableStyleProperties::mergeAndOverrideOnConflict ( const StyleProperties )

◆ mergeAndOverrideOnConflict() [2/2]

void WebCore::MutableStyleProperties::mergeAndOverrideOnConflict ( const StyleProperties other)

◆ parseDeclaration() [1/2]

bool WebCore::MutableStyleProperties::parseDeclaration ( const String styleDeclaration,
CSSParserContext  context 
)

◆ parseDeclaration() [2/2]

bool WebCore::MutableStyleProperties::parseDeclaration ( const String styleDeclaration,
CSSParserContext   
)

◆ propertyAt() [1/2]

MutableStyleProperties::PropertyReference WebCore::MutableStyleProperties::propertyAt ( unsigned  index) const
inline

◆ propertyAt() [2/2]

PropertyReference WebCore::MutableStyleProperties::propertyAt ( unsigned  index) const

◆ propertyCount() [1/2]

unsigned WebCore::MutableStyleProperties::propertyCount ( ) const
inline

◆ propertyCount() [2/2]

unsigned WebCore::MutableStyleProperties::propertyCount ( ) const
inline

◆ removeBlockProperties() [1/2]

void WebCore::MutableStyleProperties::removeBlockProperties ( )

◆ removeBlockProperties() [2/2]

void WebCore::MutableStyleProperties::removeBlockProperties ( )

◆ removeCustomProperty() [1/2]

bool WebCore::MutableStyleProperties::removeCustomProperty ( const String propertyName,
String returnText = nullptr 
)

◆ removeCustomProperty() [2/2]

bool WebCore::MutableStyleProperties::removeCustomProperty ( const String propertyName,
String returnText = nullptr 
)

◆ removePropertiesInSet() [1/2]

bool WebCore::MutableStyleProperties::removePropertiesInSet ( const CSSPropertyID set,
unsigned  length 
)

◆ removePropertiesInSet() [2/2]

bool WebCore::MutableStyleProperties::removePropertiesInSet ( const CSSPropertyID set,
unsigned  length 
)

◆ removeProperty() [1/2]

bool WebCore::MutableStyleProperties::removeProperty ( CSSPropertyID  ,
String returnText = nullptr 
)

◆ removeProperty() [2/2]

bool WebCore::MutableStyleProperties::removeProperty ( CSSPropertyID  propertyID,
String returnText = nullptr 
)

◆ setCustomProperty() [1/2]

bool WebCore::MutableStyleProperties::setCustomProperty ( const String propertyName,
const String value,
bool  important,
CSSParserContext   
)

◆ setCustomProperty() [2/2]

bool WebCore::MutableStyleProperties::setCustomProperty ( const String propertyName,
const String value,
bool  important,
CSSParserContext  parserContext 
)

◆ setProperty() [1/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  propertyID,
const String value,
bool  important,
CSSParserContext  parserContext 
)

◆ setProperty() [2/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  ,
const String value,
bool  important,
CSSParserContext   
)

◆ setProperty() [3/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  propertyID,
const String value,
bool  important = false 
)

◆ setProperty() [4/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  ,
const String value,
bool  important = false 
)

◆ setProperty() [5/12]

void WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  propertyID,
RefPtr< CSSValue > &&  value,
bool  important = false 
)

◆ setProperty() [6/12]

void WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  ,
RefPtr< CSSValue > &&  ,
bool  important = false 
)

◆ setProperty() [7/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  propertyID,
CSSValueID  identifier,
bool  important = false 
)

◆ setProperty() [8/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  ,
CSSValueID  identifier,
bool  important = false 
)

◆ setProperty() [9/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  propertyID,
CSSPropertyID  identifier,
bool  important = false 
)

◆ setProperty() [10/12]

bool WebCore::MutableStyleProperties::setProperty ( CSSPropertyID  ,
CSSPropertyID  identifier,
bool  important = false 
)

◆ setProperty() [11/12]

bool WebCore::MutableStyleProperties::setProperty ( const CSSProperty ,
CSSProperty slot = nullptr 
)

◆ setProperty() [12/12]

bool WebCore::MutableStyleProperties::setProperty ( const CSSProperty property,
CSSProperty slot = nullptr 
)

Friends And Related Function Documentation

◆ StyleProperties

Member Data Documentation

◆ m_propertyVector

Vector< CSSProperty, 4 > WebCore::MutableStyleProperties::m_propertyVector

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