summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSSupportsRule.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSSupportsRule.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/css/CSSSupportsRule.h')
-rw-r--r--Source/WebCore/css/CSSSupportsRule.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/Source/WebCore/css/CSSSupportsRule.h b/Source/WebCore/css/CSSSupportsRule.h
index 838685196..5ede1aa5c 100644
--- a/Source/WebCore/css/CSSSupportsRule.h
+++ b/Source/WebCore/css/CSSSupportsRule.h
@@ -26,38 +26,34 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CSSSupportsRule_h
-#define CSSSupportsRule_h
+#pragma once
#include "CSSGroupingRule.h"
-#if ENABLE(CSS3_CONDITIONAL_RULES)
-
namespace WebCore {
class CSSRule;
class StyleRuleSupports;
-class CSSSupportsRule : public CSSGroupingRule {
+class CSSSupportsRule final : public CSSGroupingRule {
public:
- static PassRefPtr<CSSSupportsRule> create(StyleRuleSupports* rule, CSSStyleSheet* sheet)
+ static Ref<CSSSupportsRule> create(StyleRuleSupports& rule, CSSStyleSheet* sheet)
{
- return adoptRef(new CSSSupportsRule(rule, sheet));
+ return adoptRef(*new CSSSupportsRule(rule, sheet));
}
virtual ~CSSSupportsRule() { }
- virtual CSSRule::Type type() const override { return SUPPORTS_RULE; }
- virtual String cssText() const override;
+ String cssText() const final;
String conditionText() const;
private:
- CSSSupportsRule(StyleRuleSupports*, CSSStyleSheet*);
+ CSSSupportsRule(StyleRuleSupports&, CSSStyleSheet*);
+
+ CSSRule::Type type() const final { return SUPPORTS_RULE; }
};
} // namespace WebCore
-#endif // ENABLE(CSS3_CONDITIONAL_RULES)
-
-#endif // CSSSupportsRule_h
+SPECIALIZE_TYPE_TRAITS_CSS_RULE(CSSSupportsRule, CSSRule::SUPPORTS_RULE)