mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
3332230cef
The IPCs to request a page's text, layout tree, etc. are currently all synchronous. This can result in a deadlock when WebContent also makes a synchronous IPC call, as both ends will be waiting on each other. This replaces the page info IPCs with a single, asynchronous IPC. This new IPC is promise-based, much like our screenshot IPC.
23 lines
335 B
C++
23 lines
335 B
C++
/*
|
|
* Copyright (c) 2024, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/EnumBits.h>
|
|
|
|
namespace WebView {
|
|
|
|
enum class PageInfoType {
|
|
Text = 1 << 0,
|
|
LayoutTree = 1 << 2,
|
|
PaintTree = 1 << 3,
|
|
GCGraph = 1 << 4,
|
|
};
|
|
|
|
AK_ENUM_BITWISE_OPERATORS(PageInfoType);
|
|
|
|
}
|