This source file includes following definitions.
- setCSSText
- parserContext
- trace
#include "config.h"
#include "core/css/CSSRule.h"
#include "core/css/CSSStyleSheet.h"
#include "core/css/StyleRule.h"
#include "core/css/StyleSheetContents.h"
#include "platform/NotImplemented.h"
namespace WebCore {
struct SameSizeAsCSSRule : public RefCountedWillBeGarbageCollectedFinalized<SameSizeAsCSSRule> {
virtual ~SameSizeAsCSSRule();
unsigned char bitfields;
void* pointerUnion;
};
COMPILE_ASSERT(sizeof(CSSRule) == sizeof(SameSizeAsCSSRule), CSSRule_should_stay_small);
COMPILE_ASSERT(StyleRuleBase::Viewport == static_cast<StyleRuleBase::Type>(CSSRule::VIEWPORT_RULE), enums_should_match);
void CSSRule::setCSSText(const String&)
{
notImplemented();
}
const CSSParserContext& CSSRule::parserContext() const
{
CSSStyleSheet* styleSheet = parentStyleSheet();
return styleSheet ? styleSheet->contents()->parserContext() : strictCSSParserContext();
}
void CSSRule::trace(Visitor* visitor)
{
if (m_parentIsRule)
visitor->trace(m_parentRule);
else
visitor->trace(m_parentStyleSheet);
}
}