From 94bb5a779b47ca20502e0f53154758eede33b4a4 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Tue, 10 May 2022 11:08:02 +0200 Subject: [PATCH] LibWeb: Use `long long` where it was replaced with `long` --- .../NavigationTiming/PerformanceTiming.h | 42 +++++++++---------- .../NavigationTiming/PerformanceTiming.idl | 42 +++++++++---------- Userland/Libraries/LibWeb/XHR/ProgressEvent.h | 8 ++-- .../Libraries/LibWeb/XHR/ProgressEvent.idl | 4 +- 4 files changed, 48 insertions(+), 48 deletions(-) diff --git a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.h b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.h index 1c9739b90a5..6ab59bbf336 100644 --- a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.h +++ b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.h @@ -23,27 +23,27 @@ public: explicit PerformanceTiming(HTML::Window&); ~PerformanceTiming(); - u32 navigation_start() { return 0; } - u32 unload_event_start() { return 0; } - u32 unload_event_end() { return 0; } - u32 redirect_start() { return 0; } - u32 redirect_end() { return 0; } - u32 fetch_start() { return 0; } - u32 domain_lookup_start() { return 0; } - u32 domain_lookup_end() { return 0; } - u32 connect_start() { return 0; } - u32 connect_end() { return 0; } - u32 secure_connection_start() { return 0; } - u32 request_start() { return 0; } - u32 response_start() { return 0; } - u32 response_end() { return 0; } - u32 dom_loading() { return 0; } - u32 dom_interactive() { return 0; } - u32 dom_content_loaded_event_start() { return 0; } - u32 dom_content_loaded_event_end() { return 0; } - u32 dom_complete() { return 0; } - u32 load_event_start() { return 0; } - u32 load_event_end() { return 0; } + u64 navigation_start() { return 0; } + u64 unload_event_start() { return 0; } + u64 unload_event_end() { return 0; } + u64 redirect_start() { return 0; } + u64 redirect_end() { return 0; } + u64 fetch_start() { return 0; } + u64 domain_lookup_start() { return 0; } + u64 domain_lookup_end() { return 0; } + u64 connect_start() { return 0; } + u64 connect_end() { return 0; } + u64 secure_connection_start() { return 0; } + u64 request_start() { return 0; } + u64 response_start() { return 0; } + u64 response_end() { return 0; } + u64 dom_loading() { return 0; } + u64 dom_interactive() { return 0; } + u64 dom_content_loaded_event_start() { return 0; } + u64 dom_content_loaded_event_end() { return 0; } + u64 dom_complete() { return 0; } + u64 load_event_start() { return 0; } + u64 load_event_end() { return 0; } }; } diff --git a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl index 87c87c64a3c..e08fab360ae 100644 --- a/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl +++ b/Userland/Libraries/LibWeb/NavigationTiming/PerformanceTiming.idl @@ -1,25 +1,25 @@ interface PerformanceTiming { - readonly attribute unsigned long navigationStart; - readonly attribute unsigned long unloadEventStart; - readonly attribute unsigned long unloadEventEnd; - readonly attribute unsigned long redirectStart; - readonly attribute unsigned long redirectEnd; - readonly attribute unsigned long fetchStart; - readonly attribute unsigned long domainLookupStart; - readonly attribute unsigned long domainLookupEnd; - readonly attribute unsigned long connectStart; - readonly attribute unsigned long connectEnd; - readonly attribute unsigned long secureConnectionStart; - readonly attribute unsigned long requestStart; - readonly attribute unsigned long responseStart; - readonly attribute unsigned long responseEnd; - readonly attribute unsigned long domLoading; - readonly attribute unsigned long domInteractive; - readonly attribute unsigned long domContentLoadedEventStart; - readonly attribute unsigned long domContentLoadedEventEnd; - readonly attribute unsigned long domComplete; - readonly attribute unsigned long loadEventStart; - readonly attribute unsigned long loadEventEnd; + readonly attribute unsigned long long navigationStart; + readonly attribute unsigned long long unloadEventStart; + readonly attribute unsigned long long unloadEventEnd; + readonly attribute unsigned long long redirectStart; + readonly attribute unsigned long long redirectEnd; + readonly attribute unsigned long long fetchStart; + readonly attribute unsigned long long domainLookupStart; + readonly attribute unsigned long long domainLookupEnd; + readonly attribute unsigned long long connectStart; + readonly attribute unsigned long long connectEnd; + readonly attribute unsigned long long secureConnectionStart; + readonly attribute unsigned long long requestStart; + readonly attribute unsigned long long responseStart; + readonly attribute unsigned long long responseEnd; + readonly attribute unsigned long long domLoading; + readonly attribute unsigned long long domInteractive; + readonly attribute unsigned long long domContentLoadedEventStart; + readonly attribute unsigned long long domContentLoadedEventEnd; + readonly attribute unsigned long long domComplete; + readonly attribute unsigned long long loadEventStart; + readonly attribute unsigned long long loadEventEnd; }; diff --git a/Userland/Libraries/LibWeb/XHR/ProgressEvent.h b/Userland/Libraries/LibWeb/XHR/ProgressEvent.h index cad8d1f1394..e7ed17eb692 100644 --- a/Userland/Libraries/LibWeb/XHR/ProgressEvent.h +++ b/Userland/Libraries/LibWeb/XHR/ProgressEvent.h @@ -35,8 +35,8 @@ public: virtual ~ProgressEvent() override = default; bool length_computable() const { return m_length_computable; } - u32 loaded() const { return m_loaded; } - u32 total() const { return m_total; } + u64 loaded() const { return m_loaded; } + u64 total() const { return m_total; } protected: ProgressEvent(FlyString const& event_name, ProgressEventInit const& event_init) @@ -48,8 +48,8 @@ protected: } bool m_length_computable { false }; - u32 m_loaded { 0 }; - u32 m_total { 0 }; + u64 m_loaded { 0 }; + u64 m_total { 0 }; }; } diff --git a/Userland/Libraries/LibWeb/XHR/ProgressEvent.idl b/Userland/Libraries/LibWeb/XHR/ProgressEvent.idl index c92731e934c..b8d8515be99 100644 --- a/Userland/Libraries/LibWeb/XHR/ProgressEvent.idl +++ b/Userland/Libraries/LibWeb/XHR/ProgressEvent.idl @@ -4,8 +4,8 @@ interface ProgressEvent : Event { constructor(DOMString type, optional ProgressEventInit eventInitDict = {}); readonly attribute boolean lengthComputable; - readonly attribute unsigned long loaded; - readonly attribute unsigned long total; + readonly attribute unsigned long long loaded; + readonly attribute unsigned long long total; }; dictionary ProgressEventInit : EventInit {