Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / css / StyleSheet.h
index 2207b5a..f9075c7 100644 (file)
 #ifndef StyleSheet_h
 #define StyleSheet_h
 
-#include "core/css/CSSParserMode.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "platform/heap/Handle.h"
 #include "wtf/Forward.h"
 #include "wtf/RefCounted.h"
 
-namespace WebCore {
+namespace blink {
 
 class CSSRule;
 class KURL;
@@ -33,8 +34,10 @@ class MediaList;
 class Node;
 class StyleSheet;
 
-class StyleSheet : public RefCounted<StyleSheet> {
+class StyleSheet : public RefCountedWillBeGarbageCollectedFinalized<StyleSheet>, public ScriptWrappable {
+    DEFINE_WRAPPERTYPEINFO();
 public:
+    StyleSheet() { }
     virtual ~StyleSheet();
 
     virtual bool disabled() const = 0;
@@ -51,8 +54,10 @@ public:
     virtual KURL baseURL() const = 0;
     virtual bool isLoading() const = 0;
     virtual bool isCSSStyleSheet() const { return false; }
+
+    virtual void trace(Visitor*) { }
 };
 
-} // namespace
+} // namespace blink
 
 #endif