blob: b838c2129dcd529678251745ec9f878996eda906 [file] [log] [blame]
// Copyright 2016 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 "core/dom/custom/CustomElementDefinition.h"
namespace blink {
CustomElementDefinition::CustomElementDefinition(
CustomElementsRegistry* registry,
CustomElementsRegistry::Id id,
const CustomElementDescriptor& descriptor)
: m_registry(registry)
, m_id(id)
, m_descriptor(descriptor)
{
}
v8::Local<v8::Object> CustomElementDefinition::prototype(
ScriptState* scriptState) const
{
return m_registry->prototype(scriptState, *this);
}
} // namespace blink