Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
openwebf-bot authored and yifei8 committed Feb 27, 2024
1 parent c98dec9 commit 4b38fea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bridge/core/dom/element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ BoundingClientRect* Element::getBoundingClientRect(ExceptionState& exception_sta
NativeValue result = InvokeBindingMethod(
binding_call_methods::kgetBoundingClientRect, 0, nullptr,
FlushUICommandReason::kDependentsOnElement | FlushUICommandReason::kDependentsOnLayout, exception_state);
NativeBindingObject* native_binding_object = NativeValueConverter<NativeTypePointer<NativeBindingObject>>::FromNativeValue(result);
NativeBindingObject* native_binding_object =
NativeValueConverter<NativeTypePointer<NativeBindingObject>>::FromNativeValue(result);

if (native_binding_object == nullptr) {
return nullptr;
}

return BoundingClientRect::Create(
GetExecutingContext(), native_binding_object);
return BoundingClientRect::Create(GetExecutingContext(), native_binding_object);
}

std::vector<BoundingClientRect*> Element::getClientRects(ExceptionState& exception_state) {
Expand Down
9 changes: 5 additions & 4 deletions bridge/core/frame/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ Screen* Window::screen() {
NativeValue value = GetBindingProperty(
binding_call_methods::kscreen,
FlushUICommandReason::kDependentsOnElement | FlushUICommandReason::kDependentsOnLayout, ASSERT_NO_EXCEPTION());
NativeBindingObject* native_binding_object = NativeValueConverter<NativeTypePointer<NativeBindingObject>>::FromNativeValue(value);
if (native_binding_object == nullptr) return nullptr;
screen_ = MakeGarbageCollected<Screen>(
this, native_binding_object);
NativeBindingObject* native_binding_object =
NativeValueConverter<NativeTypePointer<NativeBindingObject>>::FromNativeValue(value);
if (native_binding_object == nullptr)
return nullptr;
screen_ = MakeGarbageCollected<Screen>(this, native_binding_object);
}
return screen_;
}
Expand Down

0 comments on commit 4b38fea

Please sign in to comment.