This source file includes following definitions.
- wrap
#include "config.h"
#include "V8CSSRule.h"
#include "V8CSSCharsetRule.h"
#include "V8CSSFontFaceRule.h"
#include "V8CSSImportRule.h"
#include "V8CSSKeyframeRule.h"
#include "V8CSSKeyframesRule.h"
#include "V8CSSMediaRule.h"
#include "V8CSSPageRule.h"
#include "V8CSSStyleRule.h"
#include "V8CSSSupportsRule.h"
#include "V8CSSViewportRule.h"
#include "V8WebKitCSSFilterRule.h"
namespace WebCore {
v8::Handle<v8::Object> wrap(CSSRule* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
ASSERT(impl);
switch (impl->type()) {
case CSSRule::UNKNOWN_RULE:
return V8CSSRule::createWrapper(impl, creationContext, isolate);
case CSSRule::STYLE_RULE:
return wrap(toCSSStyleRule(impl), creationContext, isolate);
case CSSRule::CHARSET_RULE:
return wrap(toCSSCharsetRule(impl), creationContext, isolate);
case CSSRule::IMPORT_RULE:
return wrap(toCSSImportRule(impl), creationContext, isolate);
case CSSRule::MEDIA_RULE:
return wrap(toCSSMediaRule(impl), creationContext, isolate);
case CSSRule::FONT_FACE_RULE:
return wrap(toCSSFontFaceRule(impl), creationContext, isolate);
case CSSRule::PAGE_RULE:
return wrap(toCSSPageRule(impl), creationContext, isolate);
case CSSRule::KEYFRAME_RULE:
return wrap(toCSSKeyframeRule(impl), creationContext, isolate);
case CSSRule::KEYFRAMES_RULE:
return wrap(toCSSKeyframesRule(impl), creationContext, isolate);
case CSSRule::SUPPORTS_RULE:
return wrap(toCSSSupportsRule(impl), creationContext, isolate);
case CSSRule::VIEWPORT_RULE:
return wrap(toCSSViewportRule(impl), creationContext, isolate);
case CSSRule::WEBKIT_FILTER_RULE:
return wrap(toCSSFilterRule(impl), creationContext, isolate);
}
return V8CSSRule::createWrapper(impl, creationContext, isolate);
}
}