1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00
serenity/Userland/Libraries
Ben Wiederhake 0db6ca4065 LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule
Previously: CSSImportRule::loaded_style_sheet() (and others) depend on
the definition of class CSSStyleSheet. Meanwhile,
CSSStyleSheet::template for_each_effective_style_rule (and others)
depend on the definition of class CSSImportRule.

This hasn't caused any problems so far because CSSStyleSheet.h happened
to be always included after CSSImportRule.h (in part due to alphabetical
ordering).

However, a compilation unit that (for example) only contains
    #include <Userland/Libraries/LibWeb/CSSImportRule.h>
would fail to compile.

This patch resolves this issue by pushing the inline definition of
Web::CSS::CSSStyleSheet::for_each_effective_style_rule and
for_first_not_loaded_import_rule into a different file, and adding the
missing headers.
2021-10-06 23:52:40 +01:00
..
LibArchive Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
LibAudio Audio: Add per-client volume 2021-09-12 23:38:57 +02:00
LibC LibC: Fix redeclaration in x86_64/regs.h 2021-10-06 23:52:40 +01:00
LibCards LibGfx: Use "try_" prefix for static factory functions 2021-07-21 18:02:15 +02:00
LibChess LibChess: Fix hashing of the chess board 2021-07-30 20:49:18 +02:00
LibCompress LibCompress: Add missing header to DeflateTables.h 2021-10-06 23:52:40 +01:00
LibConfig ConfigServer+LibConfig: Add way for clients to listen for config changes 2021-08-26 23:41:38 +02:00
LibCore LibCore: Add a Socket::set_idle() API that turns the notifiers on/off 2021-10-04 15:31:26 +02:00
LibCoredump LibCoredump: Don't copy uncompressed coredumps into a ByteBuffer 2021-09-22 00:40:07 +02:00
LibCpp LibCpp: Remove redundant comparison to Token::Type::PipePipe 2021-09-28 10:58:09 +02:00
LibCrypt Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
LibCrypto LibCrypto: Add missing header to EMSA_PSS.h 2021-10-06 23:52:40 +01:00
LibDebug LibDebug: Add missing break in AddressRanges::for_each_range() 2021-09-28 18:05:42 +02:00
LibDesktop Userland: Use Core::Process::spawn() instead of posix_spawn() in places 2021-08-06 01:06:42 +02:00
LibDiff LibDiff: Coalesce adjacent changes into the same Hunk 2021-09-24 14:32:52 +02:00
LibDl Toolchain+Userland: Enable TLS for x86_64 2021-07-04 01:07:28 +02:00
LibDSP LibDSP: Remove unused Effects::Delay::m_old_delay_size member 2021-09-28 10:58:09 +02:00
LibELF LibELF: Fix dynamic linking of dlopen()-ed libs 2021-10-06 12:33:21 +02:00
LibFileSystemAccessClient LibFileSystemAccessClient: Convert request paths to absolute if needed 2021-09-10 20:46:50 +04:30
LibGemini LibHTTP+LibGemini: Set underlying sockets as idle when detaching 2021-10-04 15:31:26 +02:00
LibGfx LibGUI: Add missing headers 2021-10-06 23:52:40 +01:00
LibGL LibGL: Remove duplicate GLboolean typedef 2021-10-02 21:10:13 +01:00
LibGUI LibGUI: Add missing headers 2021-10-06 23:52:40 +01:00
LibHTTP LibHTTP: Bump max HTTP header size up to 32KiB 2021-10-04 18:26:16 +02:00
LibImageDecoderClient Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
LibIMAP LibIMAP: Remove unused Variant option 2021-09-21 04:22:52 +04:30
LibIPC LibIPC: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
LibJS LibJS: Add missing headers 2021-10-06 23:52:40 +01:00
LibKeyboard AK: Make Utf8View constructors inline and remove C string constructor 2021-09-18 19:54:24 +02:00
LibLine Everywhere: Behaviour => Behavior 2021-09-07 13:53:14 +02:00
LibM Libraries: Fix typos 2021-10-01 01:06:40 +01:00
LibMarkdown LibMarkdown: Add blockquotes 2021-10-06 12:35:46 +02:00
LibPCIDB Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
LibPDF LibPDF: Rely on default-constructor of Variant 2021-09-21 04:22:52 +04:30
LibProtocol RequestServer+LibProtocol: Add an 'EnsureConnection' IPC endpoint 2021-09-28 22:32:31 +02:00
LibPthread LibPthread: Correct nonsensical loop exit condition in RWLock unlock 2021-09-28 12:34:51 +03:30
LibRegex LibRegex: Use a match table for character classes 2021-10-03 19:16:36 +02:00
LibSanitizer LibSanitizer+AK: Add float cast overflow handler 2021-08-08 10:55:36 +02:00
LibSQL LibSQL: Resolve cyclic dependency 2021-10-06 23:52:40 +01:00
LibSymbolication LibSymbolication+SystemMonitor: Show ELF object in stack 2021-09-30 00:51:08 +02:00
LibSyntax LibSyntax: Add missing headers to HighlighterClient.h 2021-10-06 23:52:40 +01:00
LibSystem Kernel+LibSystem: Add a 4th syscall argument 2021-07-25 14:08:50 +02:00
LibTest LibJS: Convert Object::get() to ThrowCompletionOr 2021-10-03 20:14:03 +01:00
LibTextCodec LibTextCodec: Ignore BYTE ORDER MARK at the start of utf8/16 strings 2021-09-15 17:00:18 +02:00
LibThreading LibThreading: Add missing headers to Mutex.h 2021-10-06 23:52:40 +01:00
LibTLS LibTLS: Add missing headers to CipherSuite.h 2021-10-06 23:52:40 +01:00
LibUnicode LibUnicode: Add some data related to currency codes 2021-09-11 11:05:50 +01:00
LibUSBDB LibUSBDB: Fix vendor id decoding 2021-06-18 19:41:25 +04:30
LibVideo Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
LibVT LibVT: Add missing headers 2021-10-06 23:52:40 +01:00
LibWasm LibWasm: Add missing forward declaration to Printer/Printer.h 2021-10-06 23:52:40 +01:00
LibWeb LibWeb: Resolve cyclic dependency between StyleSheet and ImportRule 2021-10-06 23:52:40 +01:00
LibWebSocket LibTLS: Use a setter for on_tls_ready_to_write with some more smarts 2021-09-19 21:10:23 +04:30
LibX86 LibX86: Use default instead of an empty constructor/destructor 2021-09-16 17:17:13 +02:00
CMakeLists.txt Libraries: Add LibDSP 2021-08-31 17:03:55 +04:30