Skip to content

Commit 154949e

Browse files
author
openwebf-bot
committed
Committing clang-format changes
1 parent 997b2c1 commit 154949e

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

bridge/bindings/v8/atomic_string.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ const uint16_t* AtomicString::Character16() const {
139139
}
140140

141141
int AtomicString::Find(bool (*CharacterMatchFunction)(char)) const {
142-
// return JS_FindCharacterInAtom(runtime_, atom_, CharacterMatchFunction);
142+
// return JS_FindCharacterInAtom(runtime_, atom_, CharacterMatchFunction);
143143
}
144144

145145
int AtomicString::Find(bool (*CharacterMatchFunction)(uint16_t)) const {
146-
// return JS_FindWCharacterInAtom(runtime_, atom_, CharacterMatchFunction);
146+
// return JS_FindWCharacterInAtom(runtime_, atom_, CharacterMatchFunction);
147147
}
148148

149149
std::string AtomicString::ToStdString(v8::Isolate* isolate) const {

bridge/bindings/v8/atomic_string.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class AtomicString {
4242
AtomicString(v8::Isolate* isolate, const uint16_t* str, size_t length);
4343

4444
// Return the undefined string value from atom key.
45-
v8::Local<v8::Value> ToV8(v8::Isolate* isolate) const {
46-
return string_.As<v8::Value>();
47-
}
45+
v8::Local<v8::Value> ToV8(v8::Isolate* isolate) const { return string_.As<v8::Value>(); }
4846

4947
bool IsEmpty() const;
5048
bool IsNull() const;

bridge/core/dart_isolate_context.cc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include <v8/v8-platform.h>
77
#include "v8/libplatform/libplatform.h"
88
#endif
9-
#include "dart_isolate_context.h"
109
#include <unordered_set>
10+
#include "dart_isolate_context.h"
1111
#include "event_factory.h"
1212
#include "html_element_factory.h"
1313
#include "names_installer.h"
@@ -61,8 +61,8 @@ const std::unique_ptr<DartContextData>& DartIsolateContext::EnsureData() const {
6161
}
6262

6363
#if WEBF_V8_JS_ENGINE
64-
std::unique_ptr<v8::Platform> platform = nullptr;
65-
thread_local v8::Isolate* isolate_{nullptr};
64+
std::unique_ptr<v8::Platform> platform = nullptr;
65+
thread_local v8::Isolate* isolate_{nullptr};
6666
#elif WEBF_QUICKJS_JS_ENGINE
6767
thread_local JSRuntime* runtime_{nullptr};
6868
#endif
@@ -105,8 +105,7 @@ void DartIsolateContext::InitializeJSRuntime() {
105105
}
106106
// Create a new Isolate and make it the current one.
107107
v8::Isolate::CreateParams create_params;
108-
create_params.array_buffer_allocator =
109-
v8::ArrayBuffer::Allocator::NewDefaultAllocator();
108+
create_params.array_buffer_allocator = v8::ArrayBuffer::Allocator::NewDefaultAllocator();
110109
isolate_ = v8::Isolate::New(create_params);
111110
#endif
112111
}
@@ -136,7 +135,7 @@ void DartIsolateContext::FinalizeJSRuntime() {
136135
DartIsolateContext::DartIsolateContext(const uint64_t* dart_methods, int32_t dart_methods_length)
137136
: is_valid_(true),
138137
running_thread_(std::this_thread::get_id()),
139-
dart_method_ptr_(std::make_unique<DartMethodPointer>(this, dart_methods, dart_methods_length)){
138+
dart_method_ptr_(std::make_unique<DartMethodPointer>(this, dart_methods, dart_methods_length)) {
140139
is_valid_ = true;
141140
running_dart_isolates++;
142141
InitializeJSRuntime();

bridge/core/executing_context.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class ExecutingContext {
9898
ExecutionContextData* contextData();
9999
uint8_t* DumpByteCode(const char* code, uint32_t codeLength, const char* sourceURL, uint64_t* bytecodeLength);
100100

101-
102101
#if WEBF_QUICKJS_JS_ENGINE
103102
static ExecutingContext* From(JSContext* ctx);
104103
JSValue Global();

0 commit comments

Comments
 (0)