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

Side by Side Diff: Source/core/css/CSSRule.h

Issue 699043003: bindings: Makes CSSRule inherit from ScriptWrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSPageRule.h ('k') | Source/core/css/CSSRule.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2006, 2007, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) 5 * Copyright (C) 2011 Andreas Kling (kling@webkit.org)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 16 matching lines...) Expand all
27 #include "platform/heap/Handle.h" 27 #include "platform/heap/Handle.h"
28 #include "wtf/RefCounted.h" 28 #include "wtf/RefCounted.h"
29 #include "wtf/text/WTFString.h" 29 #include "wtf/text/WTFString.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class CSSParserContext; 33 class CSSParserContext;
34 class CSSStyleSheet; 34 class CSSStyleSheet;
35 class StyleRuleBase; 35 class StyleRuleBase;
36 36
37 class CSSRule : public RefCountedWillBeGarbageCollectedFinalized<CSSRule>, publi c ScriptWrappableBase { 37 class CSSRule : public RefCountedWillBeGarbageCollectedFinalized<CSSRule>, publi c ScriptWrappable {
38 DEFINE_WRAPPERTYPEINFO();
38 public: 39 public:
39 virtual ~CSSRule() { } 40 virtual ~CSSRule() { }
40 41
41 enum Type { 42 enum Type {
42 UNKNOWN_RULE, 43 UNKNOWN_RULE,
43 STYLE_RULE, 44 STYLE_RULE,
44 CHARSET_RULE, 45 CHARSET_RULE,
45 IMPORT_RULE, 46 IMPORT_RULE,
46 MEDIA_RULE, 47 MEDIA_RULE,
47 FONT_FACE_RULE, 48 FONT_FACE_RULE,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 CSSStyleSheet* m_parentStyleSheet; 112 CSSStyleSheet* m_parentStyleSheet;
112 }; 113 };
113 }; 114 };
114 115
115 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \ 116 #define DEFINE_CSS_RULE_TYPE_CASTS(ToType, TYPE_NAME) \
116 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME) 117 DEFINE_TYPE_CASTS(ToType, CSSRule, rule, rule->type() == CSSRule::TYPE_NAME, rule.type() == CSSRule::TYPE_NAME)
117 118
118 } // namespace blink 119 } // namespace blink
119 120
120 #endif // CSSRule_h 121 #endif // CSSRule_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSPageRule.h ('k') | Source/core/css/CSSRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698