blob: 676d24238d622d4e31156d92cc9c406f2d874f20 [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) {
CSSValue::TraceAfterDispatch(visitor);
}
String CSSCustomPropertyDeclaration::CustomCSSText() const {
if (value_)
return value_->TokenRange().Serialize();
DCHECK(value_id_ != CSSValueInternalVariableValue);
return getValueName(value_id_);
}
} // namespace blink