blob: 887cbed453733d619f6443db1c99c5c0db7b0d1f [file] [log] [blame]
// Copyright 2015 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 "third_party/blink/renderer/core/css/css_custom_property_declaration.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token_range.h"
namespace blink {
void CSSCustomPropertyDeclaration::TraceAfterDispatch(
blink::Visitor* visitor) const {
CSSValue::TraceAfterDispatch(visitor);
}
String CSSCustomPropertyDeclaration::CustomCSSText() const {
if (value_)
return value_->TokenRange().Serialize();
DCHECK(value_id_ != CSSValueID::kInternalVariableValue);
return getValueName(value_id_);
}
} // namespace blink