#include "third_party/blink/renderer/bindings/core/v8/v8_node.h"
#include "third_party/blink/public/mojom/origin_trial_feature/origin_trial_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_document.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_element.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_event_target.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_get_root_node_options.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_node_list.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_set_return_value_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_trusted_script.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_string_trustedscript.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node.h"
#include "third_party/blink/renderer/core/dom/node_list.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/core/html/custom/ce_reactions_scope.h"
#include "third_party/blink/renderer/core/trustedtypes/trusted_script.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/idl_member_installer.h"
#include "third_party/blink/renderer/platform/bindings/runtime_call_stats.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/bindings/wrapper_type_info.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
bool V8Node::IsExposed(ExecutionContext* execution_context) { … }
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
#endif
const WrapperTypeInfo V8Node::wrapper_type_info_{ … };
#if defined(COMPONENT_BUILD) && defined(WIN32) && defined(__clang__)
#pragma clang diagnostic pop
#endif
const WrapperTypeInfo& Node::wrapper_type_info_ = …;
static_assert …;
namespace {
namespace v8_node {
void NodeTypeAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NodeNameAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void BaseURIAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsConnectedAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OwnerDocumentAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void OwnerDocumentAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ParentNodeAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ParentNodeAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ParentElementAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ParentElementAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ChildNodesAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ChildNodesAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FirstChildAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void FirstChildAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LastChildAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LastChildAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PreviousSiblingAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void PreviousSiblingAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NextSiblingAttributeGetCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NextSiblingAttributeGetCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NodeValueAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NodeValueAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TextContentAttributeGetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void TextContentAttributeSetCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AppendChildOperationCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AppendChildOperationCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CloneNodeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void CompareDocumentPositionOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ContainsOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void GetRootNodeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void HasChildNodesOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void InsertBeforeOperationCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void InsertBeforeOperationCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsDefaultNamespaceOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsEqualNodeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void IsSameNodeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LookupNamespaceURIOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void LookupPrefixOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void MoveBeforeOperationCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void MoveBeforeOperationCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void NormalizeOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void RemoveChildOperationCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ReplaceChildOperationCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void ReplaceChildOperationCallbackForNonMainWorlds(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
usingnamespacev8_node;
}
void V8Node::InstallInterfaceTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> interface_template) { … }
void V8Node::InstallUnconditionalProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
void V8Node::InstallContextIndependentProperties(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
namespace bindings {
namespace v8_context_snapshot {
base::span<const intptr_t> GetRefTableOfV8Node() { … }
void InstallPropsOfV8Node(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> instance_object, v8::Local<v8::Object> prototype_object, v8::Local<v8::Object> interface_object, v8::Local<v8::Template> interface_template) { … }
void InstallPropsOfV8Node(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Template> instance_template, v8::Local<v8::Template> prototype_template, v8::Local<v8::Template> interface_template) { … }
}
}
}