Skip to content

Commit a0878d5

Browse files
openwebf-botandycall
authored andcommitted
Committing clang-format changes
1 parent 3dde698 commit a0878d5

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

bridge/core/events/hashchange_event.cc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ HashchangeEvent::HashchangeEvent(webf::ExecutingContext* context,
3838
webf::NativeHashchangeEvent* native_hash_change_event)
3939
: Event(context, type, &native_hash_change_event->native_event),
4040
#if ANDROID_32_BIT
41-
new_url_(AtomicString(
42-
ctx(),
43-
std::unique_ptr<AutoFreeNativeString>(reinterpret_cast<AutoFreeNativeString*>(native_gesture_event->newURL)))),
44-
old_url_(AtomicString(ctx(),
41+
new_url_(AtomicString(ctx(),
4542
std::unique_ptr<AutoFreeNativeString>(
46-
reinterpret_cast<AutoFreeNativeString*>(native_gesture_event->oldURL))))
43+
reinterpret_cast<AutoFreeNativeString*>(native_gesture_event->newURL)))),
44+
old_url_(AtomicString(
45+
ctx(),
46+
std::unique_ptr<AutoFreeNativeString>(reinterpret_cast<AutoFreeNativeString*>(native_gesture_event->oldURL))))
4747
#else
4848
new_url_(AtomicString(ctx(),
4949
std::unique_ptr<AutoFreeNativeString>(
@@ -52,7 +52,8 @@ HashchangeEvent::HashchangeEvent(webf::ExecutingContext* context,
5252
std::unique_ptr<AutoFreeNativeString>(
5353
reinterpret_cast<AutoFreeNativeString*>(native_hash_change_event->oldURL))))
5454
#endif
55-
{}
55+
{
56+
}
5657

5758
bool HashchangeEvent::IsHashChangeEvent() const {
5859
return true;

bridge/core/events/hashchange_event.h

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2022-present The WebF authors. All rights reserved.
3-
*/
2+
* Copyright (C) 2022-present The WebF authors. All rights reserved.
3+
*/
44

55
#ifndef WEBF_CORE_EVENTS_HASHCHANGE_EVENT_H_
66
#define WEBF_CORE_EVENTS_HASHCHANGE_EVENT_H_
@@ -23,18 +23,20 @@ class HashchangeEvent : public Event {
2323
static HashchangeEvent* Create(ExecutingContext* context, const AtomicString& type, ExceptionState& exception_state);
2424

2525
static HashchangeEvent* Create(ExecutingContext* context,
26-
const AtomicString& type,
27-
const std::shared_ptr<HashchangeEventInit>& initializer,
28-
ExceptionState& exception_state);
26+
const AtomicString& type,
27+
const std::shared_ptr<HashchangeEventInit>& initializer,
28+
ExceptionState& exception_state);
2929

3030
explicit HashchangeEvent(ExecutingContext* context, const AtomicString& type, ExceptionState& exception_state);
3131

3232
explicit HashchangeEvent(ExecutingContext* context,
33-
const AtomicString& type,
34-
const std::shared_ptr<HashchangeEventInit>& initializer,
35-
ExceptionState& exception_state);
33+
const AtomicString& type,
34+
const std::shared_ptr<HashchangeEventInit>& initializer,
35+
ExceptionState& exception_state);
3636

37-
explicit HashchangeEvent(ExecutingContext* context, const AtomicString& type, NativeHashchangeEvent* native_hash_change_event);
37+
explicit HashchangeEvent(ExecutingContext* context,
38+
const AtomicString& type,
39+
NativeHashchangeEvent* native_hash_change_event);
3840

3941
const AtomicString& newURL() const;
4042
const AtomicString& oldURL() const;
@@ -46,6 +48,6 @@ class HashchangeEvent : public Event {
4648
AtomicString old_url_;
4749
};
4850

49-
}
51+
} // namespace webf
5052

5153
#endif // WEBF_CORE_EVENTS_HASHCHANGE_EVENT_H_

0 commit comments

Comments
 (0)