summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/css_revert_value.cc
blob: e0d1b7b7a7857c7ef8d900be5a25b1de4885c9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2020 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_revert_value.h"

#include "third_party/blink/renderer/core/css/css_value_pool.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {
namespace cssvalue {

CSSRevertValue* CSSRevertValue::Create() {
  DCHECK(RuntimeEnabledFeatures::CSSRevertEnabled());
  return CssValuePool().RevertValue();
}

String CSSRevertValue::CustomCSSText() const {
  return "revert";
}

}  // namespace cssvalue
}  // namespace blink