summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/css_import_rule.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/css_import_rule.h')
-rw-r--r--chromium/third_party/blink/renderer/core/css/css_import_rule.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/css_import_rule.h b/chromium/third_party/blink/renderer/core/css/css_import_rule.h
index 546eb5da4a6..d9be4fdcdfd 100644
--- a/chromium/third_party/blink/renderer/core/css/css_import_rule.h
+++ b/chromium/third_party/blink/renderer/core/css/css_import_rule.h
@@ -35,9 +35,10 @@ class CSSImportRule final : public CSSRule {
public:
static CSSImportRule* Create(StyleRuleImport* rule, CSSStyleSheet* sheet) {
- return new CSSImportRule(rule, sheet);
+ return MakeGarbageCollected<CSSImportRule>(rule, sheet);
}
+ CSSImportRule(StyleRuleImport*, CSSStyleSheet*);
~CSSImportRule() override;
String cssText() const override;
@@ -50,8 +51,6 @@ class CSSImportRule final : public CSSRule {
void Trace(blink::Visitor*) override;
private:
- CSSImportRule(StyleRuleImport*, CSSStyleSheet*);
-
CSSRule::Type type() const override { return kImportRule; }
Member<StyleRuleImport> import_rule_;