summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h')
-rw-r--r--chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h b/chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h
index b79c7e4e4e4..278f07d6f65 100644
--- a/chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h
+++ b/chromium/third_party/blink/renderer/core/css/css_variable_reference_value.h
@@ -16,13 +16,25 @@ class CSSVariableReferenceValue : public CSSValue {
public:
static CSSVariableReferenceValue* Create(
scoped_refptr<CSSVariableData> data) {
- return new CSSVariableReferenceValue(std::move(data));
+ return MakeGarbageCollected<CSSVariableReferenceValue>(std::move(data));
}
static CSSVariableReferenceValue* Create(scoped_refptr<CSSVariableData> data,
const CSSParserContext& context) {
- return new CSSVariableReferenceValue(std::move(data), context);
+ return MakeGarbageCollected<CSSVariableReferenceValue>(std::move(data),
+ context);
}
+ CSSVariableReferenceValue(scoped_refptr<CSSVariableData> data)
+ : CSSValue(kVariableReferenceClass),
+ data_(std::move(data)),
+ parser_context_(nullptr) {}
+
+ CSSVariableReferenceValue(scoped_refptr<CSSVariableData> data,
+ const CSSParserContext& context)
+ : CSSValue(kVariableReferenceClass),
+ data_(std::move(data)),
+ parser_context_(context) {}
+
CSSVariableData* VariableDataValue() const { return data_.get(); }
const CSSParserContext* ParserContext() const {
DCHECK(parser_context_);
@@ -37,18 +49,6 @@ class CSSVariableReferenceValue : public CSSValue {
void TraceAfterDispatch(blink::Visitor*);
private:
- CSSVariableReferenceValue(scoped_refptr<CSSVariableData> data)
- : CSSValue(kVariableReferenceClass),
- data_(std::move(data)),
- parser_context_(nullptr) {}
-
- CSSVariableReferenceValue(scoped_refptr<CSSVariableData> data,
- const CSSParserContext& context)
- : CSSValue(kVariableReferenceClass),
- data_(std::move(data)),
- parser_context_(context) {
- }
-
scoped_refptr<CSSVariableData> data_;
Member<const CSSParserContext> parser_context_;
};