Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: Source/core/css/StyleSheet.h

Issue 412183003: bindings: Makes more DOM classes inherit from ScriptWrappable (part 3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted RGBColor and Rect. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/StyleMedia.cpp ('k') | Source/core/css/StyleSheetList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleSheet.h
diff --git a/Source/core/css/StyleSheet.h b/Source/core/css/StyleSheet.h
index 46c364edddee468b04b171ebf6f2afaf1982333c..87972a9734a8b5d77099b1f415f1f190f0f5bcaf 100644
--- a/Source/core/css/StyleSheet.h
+++ b/Source/core/css/StyleSheet.h
@@ -21,6 +21,7 @@
#ifndef StyleSheet_h
#define StyleSheet_h
+#include "bindings/core/v8/ScriptWrappable.h"
#include "core/css/CSSParserMode.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -34,8 +35,12 @@ class MediaList;
class Node;
class StyleSheet;
-class StyleSheet : public RefCountedWillBeGarbageCollectedFinalized<StyleSheet> {
+class StyleSheet : public RefCountedWillBeGarbageCollectedFinalized<StyleSheet>, public ScriptWrappable {
public:
+ StyleSheet()
+ {
+ ScriptWrappable::init(this);
+ }
virtual ~StyleSheet();
virtual bool disabled() const = 0;
« no previous file with comments | « Source/core/css/StyleMedia.cpp ('k') | Source/core/css/StyleSheetList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698