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

#include <StyleSheetContents.h>

Inheritance diagram for WebCore::StyleSheetContents:
WTF::RefCounted< StyleSheetContents > WTF::RefCounted< StyleSheetContents > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Member Functions

WEBCORE_EXPORT ~StyleSheetContents ()
 
const CSSParserContext & parserContext () const
 
const AtomicString & defaultNamespace ()
 
const AtomicString & namespaceURIFromPrefix (const AtomicString &prefix)
 
void parseAuthorStyleSheet (const CachedCSSStyleSheet *, const SecurityOrigin *)
 
WEBCORE_EXPORT bool parseString (const String &)
 
bool isCacheable () const
 
bool isLoading () const
 
bool subresourcesAllowReuse (CachePolicy) const
 
WEBCORE_EXPORT bool isLoadingSubresources () const
 
void checkLoaded ()
 
void startLoadingDynamicSheet ()
 
StyleSheetContents * rootStyleSheet () const
 
Node * singleOwnerNode () const
 
Document * singleOwnerDocument () const
 
const String & charset () const
 
bool loadCompleted () const
 
URL completeURL (const String &url) const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
void setIsUserStyleSheet (bool b)
 
bool isUserStyleSheet () const
 
void setHasSyntacticallyValidCSSHeader (bool b)
 
bool hasSyntacticallyValidCSSHeader () const
 
void parserAddNamespace (const AtomicString &prefix, const AtomicString &uri)
 
void parserAppendRule (Ref< StyleRuleBase > &&)
 
void parserSetEncodingFromCharsetRule (const String &encoding)
 
void parserSetUsesStyleBasedEditability ()
 
void clearRules ()
 
String encodingFromCharsetRule () const
 
const Vector< RefPtr< StyleRuleBase > > & childRules () const
 
const Vector< RefPtr< StyleRuleImport > > & importRules () const
 
const Vector< RefPtr< StyleRuleNamespace > > & namespaceRules () const
 
void notifyLoadedSheet (const CachedCSSStyleSheet *)
 
StyleSheetContents * parentStyleSheet () const
 
StyleRuleImport * ownerRule () const
 
void clearOwnerRule ()
 
String originalURL () const
 
const URL & baseURL () const
 
unsigned ruleCount () const
 
StyleRuleBase * ruleAt (unsigned index) const
 
bool usesStyleBasedEditability () const
 
unsigned estimatedSizeInBytes () const
 
bool wrapperInsertRule (Ref< StyleRuleBase > &&, unsigned index)
 
void wrapperDeleteRule (unsigned index)
 
Ref< StyleSheetContents > copy () const
 
void registerClient (CSSStyleSheet *)
 
void unregisterClient (CSSStyleSheet *)
 
bool hasOneClient ()
 
bool isMutable () const
 
void setMutable ()
 
bool isInMemoryCache () const
 
void addedToMemoryCache ()
 
void removedFromMemoryCache ()
 
void shrinkToFit ()
 
WeakPtr< StyleSheetContents > createWeakPtr ()
 
WEBCORE_EXPORT ~StyleSheetContents ()
 
const CSSParserContext & parserContext () const
 
const AtomicString & defaultNamespace ()
 
const AtomicString & namespaceURIFromPrefix (const AtomicString &prefix)
 
void parseAuthorStyleSheet (const CachedCSSStyleSheet *, const SecurityOrigin *)
 
WEBCORE_EXPORT bool parseString (const String &)
 
bool isCacheable () const
 
bool isLoading () const
 
bool subresourcesAllowReuse (CachePolicy) const
 
WEBCORE_EXPORT bool isLoadingSubresources () const
 
void checkLoaded ()
 
void startLoadingDynamicSheet ()
 
StyleSheetContents * rootStyleSheet () const
 
Node * singleOwnerNode () const
 
Document * singleOwnerDocument () const
 
const String & charset () const
 
bool loadCompleted () const
 
URL completeURL (const String &url) const
 
bool traverseSubresources (const std::function< bool(const CachedResource &)> &handler) const
 
void setIsUserStyleSheet (bool b)
 
bool isUserStyleSheet () const
 
void setHasSyntacticallyValidCSSHeader (bool b)
 
bool hasSyntacticallyValidCSSHeader () const
 
void parserAddNamespace (const AtomicString &prefix, const AtomicString &uri)
 
void parserAppendRule (Ref< StyleRuleBase > &&)
 
void parserSetEncodingFromCharsetRule (const String &encoding)
 
void parserSetUsesStyleBasedEditability ()
 
void clearRules ()
 
String encodingFromCharsetRule () const
 
const Vector< RefPtr< StyleRuleBase > > & childRules () const
 
const Vector< RefPtr< StyleRuleImport > > & importRules () const
 
const Vector< RefPtr< StyleRuleNamespace > > & namespaceRules () const
 
void notifyLoadedSheet (const CachedCSSStyleSheet *)
 
StyleSheetContents * parentStyleSheet () const
 
StyleRuleImport * ownerRule () const
 
void clearOwnerRule ()
 
String originalURL () const
 
const URL & baseURL () const
 
unsigned ruleCount () const
 
StyleRuleBase * ruleAt (unsigned index) const
 
bool usesStyleBasedEditability () const
 
unsigned estimatedSizeInBytes () const
 
bool wrapperInsertRule (Ref< StyleRuleBase > &&, unsigned index)
 
void wrapperDeleteRule (unsigned index)
 
Ref< StyleSheetContents > copy () const
 
void registerClient (CSSStyleSheet *)
 
void unregisterClient (CSSStyleSheet *)
 
bool hasOneClient ()
 
bool isMutable () const
 
void setMutable ()
 
bool isInMemoryCache () const
 
void addedToMemoryCache ()
 
void removedFromMemoryCache ()
 
void shrinkToFit ()
 
WeakPtr< StyleSheetContents > createWeakPtr ()
 
- Public Member Functions inherited from WTF::RefCounted< StyleSheetContents >
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 Ref< StyleSheetContents > create (const CSSParserContext &context=CSSParserContext(HTMLStandardMode))
 
static Ref< StyleSheetContents > create (const String &originalURL, const CSSParserContext &context)
 
static Ref< StyleSheetContents > create (StyleRuleImport *ownerRule, const String &originalURL, const CSSParserContext &context)
 
static Ref< StyleSheetContents > create (const CSSParserContext &context=CSSParserContext(HTMLStandardMode))
 
static Ref< StyleSheetContents > create (const String &originalURL, const CSSParserContext &context)
 
static Ref< StyleSheetContents > create (StyleRuleImport *ownerRule, const String &originalURL, const CSSParserContext &context)
 

Additional Inherited Members

- Protected Member Functions inherited from WTF::RefCounted< StyleSheetContents >
 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
 

Constructor & Destructor Documentation

◆ ~StyleSheetContents() [1/2]

WebCore::StyleSheetContents::~StyleSheetContents ( )

◆ ~StyleSheetContents() [2/2]

WEBCORE_EXPORT WebCore::StyleSheetContents::~StyleSheetContents ( )

Member Function Documentation

◆ addedToMemoryCache() [1/2]

void WebCore::StyleSheetContents::addedToMemoryCache ( )

◆ addedToMemoryCache() [2/2]

void WebCore::StyleSheetContents::addedToMemoryCache ( )

◆ baseURL() [1/2]

const URL& WebCore::StyleSheetContents::baseURL ( ) const
inline

◆ baseURL() [2/2]

const URL& WebCore::StyleSheetContents::baseURL ( ) const
inline

◆ charset() [1/2]

const String& WebCore::StyleSheetContents::charset ( ) const
inline

◆ charset() [2/2]

const String& WebCore::StyleSheetContents::charset ( ) const
inline

◆ checkLoaded() [1/2]

void WebCore::StyleSheetContents::checkLoaded ( )

◆ checkLoaded() [2/2]

void WebCore::StyleSheetContents::checkLoaded ( )

◆ childRules() [1/2]

const Vector<RefPtr<StyleRuleBase> >& WebCore::StyleSheetContents::childRules ( ) const
inline

◆ childRules() [2/2]

const Vector<RefPtr<StyleRuleBase> >& WebCore::StyleSheetContents::childRules ( ) const
inline

◆ clearOwnerRule() [1/2]

void WebCore::StyleSheetContents::clearOwnerRule ( )
inline

◆ clearOwnerRule() [2/2]

void WebCore::StyleSheetContents::clearOwnerRule ( )
inline

◆ clearRules() [1/2]

void WebCore::StyleSheetContents::clearRules ( )

◆ clearRules() [2/2]

void WebCore::StyleSheetContents::clearRules ( )

◆ completeURL() [1/2]

URL WebCore::StyleSheetContents::completeURL ( const String &  url) const

◆ completeURL() [2/2]

URL WebCore::StyleSheetContents::completeURL ( const String &  url) const

◆ copy() [1/2]

Ref<StyleSheetContents> WebCore::StyleSheetContents::copy ( ) const
inline

◆ copy() [2/2]

Ref<StyleSheetContents> WebCore::StyleSheetContents::copy ( ) const
inline

◆ create() [1/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( const CSSParserContext &  context = CSSParserContext(HTMLStandardMode))
inlinestatic

◆ create() [2/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( const CSSParserContext &  context = CSSParserContext(HTMLStandardMode))
inlinestatic

◆ create() [3/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( const String &  originalURL,
const CSSParserContext &  context 
)
inlinestatic

◆ create() [4/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( const String &  originalURL,
const CSSParserContext &  context 
)
inlinestatic

◆ create() [5/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( StyleRuleImport *  ownerRule,
const String &  originalURL,
const CSSParserContext &  context 
)
inlinestatic

◆ create() [6/6]

static Ref<StyleSheetContents> WebCore::StyleSheetContents::create ( StyleRuleImport *  ownerRule,
const String &  originalURL,
const CSSParserContext &  context 
)
inlinestatic

◆ createWeakPtr() [1/2]

WeakPtr<StyleSheetContents> WebCore::StyleSheetContents::createWeakPtr ( )
inline

◆ createWeakPtr() [2/2]

WeakPtr<StyleSheetContents> WebCore::StyleSheetContents::createWeakPtr ( )
inline

◆ defaultNamespace() [1/2]

const AtomicString& WebCore::StyleSheetContents::defaultNamespace ( )
inline

◆ defaultNamespace() [2/2]

const AtomicString& WebCore::StyleSheetContents::defaultNamespace ( )
inline

◆ encodingFromCharsetRule() [1/2]

String WebCore::StyleSheetContents::encodingFromCharsetRule ( ) const
inline

◆ encodingFromCharsetRule() [2/2]

String WebCore::StyleSheetContents::encodingFromCharsetRule ( ) const
inline

◆ estimatedSizeInBytes() [1/2]

unsigned WebCore::StyleSheetContents::estimatedSizeInBytes ( ) const

◆ estimatedSizeInBytes() [2/2]

unsigned WebCore::StyleSheetContents::estimatedSizeInBytes ( ) const

◆ hasOneClient() [1/2]

bool WebCore::StyleSheetContents::hasOneClient ( )
inline

◆ hasOneClient() [2/2]

bool WebCore::StyleSheetContents::hasOneClient ( )
inline

◆ hasSyntacticallyValidCSSHeader() [1/2]

bool WebCore::StyleSheetContents::hasSyntacticallyValidCSSHeader ( ) const
inline

◆ hasSyntacticallyValidCSSHeader() [2/2]

bool WebCore::StyleSheetContents::hasSyntacticallyValidCSSHeader ( ) const
inline

◆ importRules() [1/2]

const Vector<RefPtr<StyleRuleImport> >& WebCore::StyleSheetContents::importRules ( ) const
inline

◆ importRules() [2/2]

const Vector<RefPtr<StyleRuleImport> >& WebCore::StyleSheetContents::importRules ( ) const
inline

◆ isCacheable() [1/2]

bool WebCore::StyleSheetContents::isCacheable ( ) const

◆ isCacheable() [2/2]

bool WebCore::StyleSheetContents::isCacheable ( ) const

◆ isInMemoryCache() [1/2]

bool WebCore::StyleSheetContents::isInMemoryCache ( ) const
inline

◆ isInMemoryCache() [2/2]

bool WebCore::StyleSheetContents::isInMemoryCache ( ) const
inline

◆ isLoading() [1/2]

bool WebCore::StyleSheetContents::isLoading ( ) const

◆ isLoading() [2/2]

bool WebCore::StyleSheetContents::isLoading ( ) const

◆ isLoadingSubresources() [1/2]

WEBCORE_EXPORT bool WebCore::StyleSheetContents::isLoadingSubresources ( ) const

◆ isLoadingSubresources() [2/2]

bool WebCore::StyleSheetContents::isLoadingSubresources ( ) const

◆ isMutable() [1/2]

bool WebCore::StyleSheetContents::isMutable ( ) const
inline

◆ isMutable() [2/2]

bool WebCore::StyleSheetContents::isMutable ( ) const
inline

◆ isUserStyleSheet() [1/2]

bool WebCore::StyleSheetContents::isUserStyleSheet ( ) const
inline

◆ isUserStyleSheet() [2/2]

bool WebCore::StyleSheetContents::isUserStyleSheet ( ) const
inline

◆ loadCompleted() [1/2]

bool WebCore::StyleSheetContents::loadCompleted ( ) const
inline

◆ loadCompleted() [2/2]

bool WebCore::StyleSheetContents::loadCompleted ( ) const
inline

◆ namespaceRules() [1/2]

const Vector<RefPtr<StyleRuleNamespace> >& WebCore::StyleSheetContents::namespaceRules ( ) const
inline

◆ namespaceRules() [2/2]

const Vector<RefPtr<StyleRuleNamespace> >& WebCore::StyleSheetContents::namespaceRules ( ) const
inline

◆ namespaceURIFromPrefix() [1/2]

const AtomicString & WebCore::StyleSheetContents::namespaceURIFromPrefix ( const AtomicString &  prefix)

◆ namespaceURIFromPrefix() [2/2]

const AtomicString& WebCore::StyleSheetContents::namespaceURIFromPrefix ( const AtomicString &  prefix)

◆ notifyLoadedSheet() [1/2]

void WebCore::StyleSheetContents::notifyLoadedSheet ( const CachedCSSStyleSheet *  sheet)

◆ notifyLoadedSheet() [2/2]

void WebCore::StyleSheetContents::notifyLoadedSheet ( const CachedCSSStyleSheet *  )

◆ originalURL() [1/2]

String WebCore::StyleSheetContents::originalURL ( ) const
inline

◆ originalURL() [2/2]

String WebCore::StyleSheetContents::originalURL ( ) const
inline

◆ ownerRule() [1/2]

StyleRuleImport* WebCore::StyleSheetContents::ownerRule ( ) const
inline

◆ ownerRule() [2/2]

StyleRuleImport* WebCore::StyleSheetContents::ownerRule ( ) const
inline

◆ parentStyleSheet() [1/2]

StyleSheetContents * WebCore::StyleSheetContents::parentStyleSheet ( ) const

◆ parentStyleSheet() [2/2]

StyleSheetContents* WebCore::StyleSheetContents::parentStyleSheet ( ) const

◆ parseAuthorStyleSheet() [1/2]

void WebCore::StyleSheetContents::parseAuthorStyleSheet ( const CachedCSSStyleSheet *  ,
const SecurityOrigin *   
)

◆ parseAuthorStyleSheet() [2/2]

void WebCore::StyleSheetContents::parseAuthorStyleSheet ( const CachedCSSStyleSheet *  cachedStyleSheet,
const SecurityOrigin *  securityOrigin 
)

◆ parserAddNamespace() [1/2]

void WebCore::StyleSheetContents::parserAddNamespace ( const AtomicString &  prefix,
const AtomicString &  uri 
)

◆ parserAddNamespace() [2/2]

void WebCore::StyleSheetContents::parserAddNamespace ( const AtomicString &  prefix,
const AtomicString &  uri 
)

◆ parserAppendRule() [1/2]

void WebCore::StyleSheetContents::parserAppendRule ( Ref< StyleRuleBase > &&  rule)

◆ parserAppendRule() [2/2]

void WebCore::StyleSheetContents::parserAppendRule ( Ref< StyleRuleBase > &&  )

◆ parserContext() [1/2]

const CSSParserContext& WebCore::StyleSheetContents::parserContext ( ) const
inline

◆ parserContext() [2/2]

const CSSParserContext& WebCore::StyleSheetContents::parserContext ( ) const
inline

◆ parserSetEncodingFromCharsetRule() [1/2]

void WebCore::StyleSheetContents::parserSetEncodingFromCharsetRule ( const String &  encoding)

◆ parserSetEncodingFromCharsetRule() [2/2]

void WebCore::StyleSheetContents::parserSetEncodingFromCharsetRule ( const String &  encoding)

◆ parserSetUsesStyleBasedEditability() [1/2]

void WebCore::StyleSheetContents::parserSetUsesStyleBasedEditability ( )
inline

◆ parserSetUsesStyleBasedEditability() [2/2]

void WebCore::StyleSheetContents::parserSetUsesStyleBasedEditability ( )
inline

◆ parseString() [1/2]

WEBCORE_EXPORT bool WebCore::StyleSheetContents::parseString ( const String &  )

◆ parseString() [2/2]

bool WebCore::StyleSheetContents::parseString ( const String &  sheetText)

◆ registerClient() [1/2]

void WebCore::StyleSheetContents::registerClient ( CSSStyleSheet *  )

◆ registerClient() [2/2]

void WebCore::StyleSheetContents::registerClient ( CSSStyleSheet *  sheet)

◆ removedFromMemoryCache() [1/2]

void WebCore::StyleSheetContents::removedFromMemoryCache ( )

◆ removedFromMemoryCache() [2/2]

void WebCore::StyleSheetContents::removedFromMemoryCache ( )

◆ rootStyleSheet() [1/2]

StyleSheetContents* WebCore::StyleSheetContents::rootStyleSheet ( ) const

◆ rootStyleSheet() [2/2]

StyleSheetContents * WebCore::StyleSheetContents::rootStyleSheet ( ) const

◆ ruleAt() [1/2]

StyleRuleBase * WebCore::StyleSheetContents::ruleAt ( unsigned  index) const

◆ ruleAt() [2/2]

StyleRuleBase* WebCore::StyleSheetContents::ruleAt ( unsigned  index) const

◆ ruleCount() [1/2]

unsigned WebCore::StyleSheetContents::ruleCount ( ) const

◆ ruleCount() [2/2]

unsigned WebCore::StyleSheetContents::ruleCount ( ) const

◆ setHasSyntacticallyValidCSSHeader() [1/2]

void WebCore::StyleSheetContents::setHasSyntacticallyValidCSSHeader ( bool  b)
inline

◆ setHasSyntacticallyValidCSSHeader() [2/2]

void WebCore::StyleSheetContents::setHasSyntacticallyValidCSSHeader ( bool  b)
inline

◆ setIsUserStyleSheet() [1/2]

void WebCore::StyleSheetContents::setIsUserStyleSheet ( bool  b)
inline

◆ setIsUserStyleSheet() [2/2]

void WebCore::StyleSheetContents::setIsUserStyleSheet ( bool  b)
inline

◆ setMutable() [1/2]

void WebCore::StyleSheetContents::setMutable ( )
inline

◆ setMutable() [2/2]

void WebCore::StyleSheetContents::setMutable ( )
inline

◆ shrinkToFit() [1/2]

void WebCore::StyleSheetContents::shrinkToFit ( )

◆ shrinkToFit() [2/2]

void WebCore::StyleSheetContents::shrinkToFit ( )

◆ singleOwnerDocument() [1/2]

Document * WebCore::StyleSheetContents::singleOwnerDocument ( ) const

◆ singleOwnerDocument() [2/2]

Document* WebCore::StyleSheetContents::singleOwnerDocument ( ) const

◆ singleOwnerNode() [1/2]

Node * WebCore::StyleSheetContents::singleOwnerNode ( ) const

◆ singleOwnerNode() [2/2]

Node* WebCore::StyleSheetContents::singleOwnerNode ( ) const

◆ startLoadingDynamicSheet() [1/2]

void WebCore::StyleSheetContents::startLoadingDynamicSheet ( )

◆ startLoadingDynamicSheet() [2/2]

void WebCore::StyleSheetContents::startLoadingDynamicSheet ( )

◆ subresourcesAllowReuse() [1/2]

bool WebCore::StyleSheetContents::subresourcesAllowReuse ( CachePolicy  cachePolicy) const

◆ subresourcesAllowReuse() [2/2]

bool WebCore::StyleSheetContents::subresourcesAllowReuse ( CachePolicy  ) const

◆ traverseSubresources() [1/2]

bool WebCore::StyleSheetContents::traverseSubresources ( const std::function< bool(const CachedResource &)> &  handler) const

◆ traverseSubresources() [2/2]

bool WebCore::StyleSheetContents::traverseSubresources ( const std::function< bool(const CachedResource &)> &  handler) const

◆ unregisterClient() [1/2]

void WebCore::StyleSheetContents::unregisterClient ( CSSStyleSheet *  sheet)

◆ unregisterClient() [2/2]

void WebCore::StyleSheetContents::unregisterClient ( CSSStyleSheet *  )

◆ usesStyleBasedEditability() [1/2]

bool WebCore::StyleSheetContents::usesStyleBasedEditability ( ) const
inline

◆ usesStyleBasedEditability() [2/2]

bool WebCore::StyleSheetContents::usesStyleBasedEditability ( ) const
inline

◆ wrapperDeleteRule() [1/2]

void WebCore::StyleSheetContents::wrapperDeleteRule ( unsigned  index)

◆ wrapperDeleteRule() [2/2]

void WebCore::StyleSheetContents::wrapperDeleteRule ( unsigned  index)

◆ wrapperInsertRule() [1/2]

bool WebCore::StyleSheetContents::wrapperInsertRule ( Ref< StyleRuleBase > &&  rule,
unsigned  index 
)

◆ wrapperInsertRule() [2/2]

bool WebCore::StyleSheetContents::wrapperInsertRule ( Ref< StyleRuleBase > &&  ,
unsigned  index 
)

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