Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/CSSConditionRule.cpp |
| diff --git a/third_party/WebKit/Source/core/css/CSSConditionRule.cpp b/third_party/WebKit/Source/core/css/CSSConditionRule.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..beefb7e93125440d386ee93d91707b0f7a7be199 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/CSSConditionRule.cpp |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "core/css/CSSConditionRule.h" |
| + |
| +#include "core/css/CSSStyleSheet.h" |
| + |
| +namespace blink { |
| + |
| +CSSConditionRule::CSSConditionRule(StyleRuleCondition* conditionRule, |
| + CSSStyleSheet* parent) |
| + : CSSGroupingRule(conditionRule, parent) {} |
| + |
| +CSSConditionRule::~CSSConditionRule() {} |
| + |
| +String CSSConditionRule::conditionText() const { |
| + return static_cast<StyleRuleCondition*>(m_groupRule.get())->conditionText(); |
| +} |
| + |
| +DEFINE_TRACE(CSSConditionRule) { |
|
meade_UTC10
2016/10/17 02:58:44
So long as CSSGroupingRule has a TRACE method, you
|
| + CSSGroupingRule::trace(visitor); |
| +} |
| + |
| +} // namespace blink |