#include "config.h"
#include "CSSRule.h"
#include "CSSStyleSheet.h"
#include "NotImplemented.h"
#include "StyleRule.h"
#include "StyleSheetContents.h"
namespace WebCore {
struct SameSizeAsCSSRule : public RefCounted<SameSizeAsCSSRule> {
virtual ~SameSizeAsCSSRule();
unsigned char bitfields;
void* pointerUnion;
};
COMPILE_ASSERT(sizeof(CSSRule) == sizeof(SameSizeAsCSSRule), CSSRule_should_stay_small);
#if ENABLE(CSS_REGIONS)
COMPILE_ASSERT(StyleRuleBase::Region == static_cast<StyleRuleBase::Type>(CSSRule::WEBKIT_REGION_RULE), enums_should_match);
#endif
#if ENABLE(CSS_DEVICE_ADAPTATION)
COMPILE_ASSERT(StyleRuleBase::Viewport == static_cast<StyleRuleBase::Type>(CSSRule::WEBKIT_VIEWPORT_RULE), enums_should_match);
#endif
void CSSRule::setCssText(const String& , ExceptionCode& )
{
notImplemented();
}
const CSSParserContext& CSSRule::parserContext() const
{
CSSStyleSheet* styleSheet = parentStyleSheet();
return styleSheet ? styleSheet->contents().parserContext() : strictCSSParserContext();
}
}