diff --git a/Documentation/Browser/AddNewIDLFile.md b/Documentation/AddNewIDLFile.md similarity index 83% rename from Documentation/Browser/AddNewIDLFile.md rename to Documentation/AddNewIDLFile.md index 512a3f5194e..acb0e2fa4c1 100644 --- a/Documentation/Browser/AddNewIDLFile.md +++ b/Documentation/AddNewIDLFile.md @@ -23,10 +23,10 @@ interface CSSRule { }; ``` -3. Add a `libweb_js_bindings(HTML/HTMLDetailsElement)` call to [`LibWeb/idl_files.cmake`](../../Userland/Libraries/LibWeb/idl_files.cmake) +3. Add a `libweb_js_bindings(HTML/HTMLDetailsElement)` call to [`LibWeb/idl_files.cmake`](../Userland/Libraries/LibWeb/idl_files.cmake) -4. Forward declare the generated class in [`LibWeb/Forward.h`](../../Userland/Libraries/LibWeb/Forward.h): +4. Forward declare the generated class in [`LibWeb/Forward.h`](../Userland/Libraries/LibWeb/Forward.h): - `HTMLDetailsElement` in its namespace. -5. If your type isn't an Event or Element, you will need to add it to [`is_platform_object()`](../../Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp) +5. If your type isn't an Event or Element, you will need to add it to [`is_platform_object()`](../Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp) so that it can be accepted as an IDL parameter, attribute or return type. diff --git a/Documentation/Browser/classes.png b/Documentation/Browser/classes.png deleted file mode 100644 index bd51a40fdb9..00000000000 Binary files a/Documentation/Browser/classes.png and /dev/null differ diff --git a/Documentation/Browser/processes.png b/Documentation/Browser/processes.png deleted file mode 100644 index 1df16e82d96..00000000000 Binary files a/Documentation/Browser/processes.png and /dev/null differ diff --git a/Documentation/Browser/BrowsingContextsAndNavigables.md b/Documentation/BrowsingContextsAndNavigables.md similarity index 100% rename from Documentation/Browser/BrowsingContextsAndNavigables.md rename to Documentation/BrowsingContextsAndNavigables.md diff --git a/Documentation/Browser/CSSGeneratedFiles.md b/Documentation/CSSGeneratedFiles.md similarity index 98% rename from Documentation/Browser/CSSGeneratedFiles.md rename to Documentation/CSSGeneratedFiles.md index e1e0aae239c..73911a70985 100644 --- a/Documentation/Browser/CSSGeneratedFiles.md +++ b/Documentation/CSSGeneratedFiles.md @@ -1,11 +1,11 @@ # CSS Generated Files We generate a significant amount of CSS-related code, taking in one or more .json files in -[`Userland/Libraries/LibWeb/CSS`](../../Userland/Libraries/LibWeb/CSS) and producing C++ code from them, located in +[`Userland/Libraries/LibWeb/CSS`](../Userland/Libraries/LibWeb/CSS) and producing C++ code from them, located in `Build//Lagom/Userland/Libraries/LibWeb/CSS/`. It's likely that you'll need to work with these if you add or modify a CSS property or its values. -The generators are found in [`Meta/Lagom/Tools/CodeGenerators/LibWeb`](../../Meta/Lagom/Tools/CodeGenerators/LibWeb). +The generators are found in [`Meta/Lagom/Tools/CodeGenerators/LibWeb`](../Meta/Lagom/Tools/CodeGenerators/LibWeb). They are run automatically as part of the build, and most of the time you can ignore them. ## Properties.json diff --git a/Documentation/Images/classes.png b/Documentation/Images/classes.png new file mode 100644 index 00000000000..83acd18f697 Binary files /dev/null and b/Documentation/Images/classes.png differ diff --git a/Documentation/Images/processes.png b/Documentation/Images/processes.png new file mode 100644 index 00000000000..071ee67428e Binary files /dev/null and b/Documentation/Images/processes.png differ diff --git a/Documentation/Browser/LibWebFromLoadingToPainting.md b/Documentation/LibWebFromLoadingToPainting.md similarity index 100% rename from Documentation/Browser/LibWebFromLoadingToPainting.md rename to Documentation/LibWebFromLoadingToPainting.md diff --git a/Documentation/Browser/Patterns.md b/Documentation/LibWebPatterns.md similarity index 100% rename from Documentation/Browser/Patterns.md rename to Documentation/LibWebPatterns.md diff --git a/Documentation/Browser/ProcessArchitecture.md b/Documentation/ProcessArchitecture.md similarity index 98% rename from Documentation/Browser/ProcessArchitecture.md rename to Documentation/ProcessArchitecture.md index 9f912df82ee..9becaabd76f 100644 --- a/Documentation/Browser/ProcessArchitecture.md +++ b/Documentation/ProcessArchitecture.md @@ -6,7 +6,7 @@ The SerenityOS web browser (**"Browser"**) uses a multi-process architecture to ## Process overview -![](processes.png) +![](Images/processes.png) Every instance of the **Browser** application can have one or more tabs open. Each tab has a unique **WebContent** service process spawned on its behalf. @@ -39,7 +39,7 @@ by **WebContent** as needed, not by **Browser**. ## Class overview -![](classes.png) +![](Images/classes.png) In the GUI application process, a `OutOfProcessWebView` widget is placed somewhere in a window, and it takes care of spawning all of the helper processes, etc. diff --git a/Documentation/README.md b/Documentation/README.md index 2e19d67da8c..61f5bd0fc77 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -31,10 +31,9 @@ you are welcome to ask on [Discord](../README.md#get-in-touch-and-participate). * [String Formatting](StringFormatting.md) ## Browser/LibWeb -* [Ladybird Browser Build Instructions](BuildInstructionsLadybird.md) -* [General Architecture](Browser/ProcessArchitecture.md) -* [LibWeb: From Loading to Painting](Browser/LibWebFromLoadingToPainting.md) -* [LibWeb: Browsing Contexts and Navigables](Browser/BrowsingContextsAndNavigables.md) -* [How to Add an IDL File](Browser/AddNewIDLFile.md) +* [General Architecture](ProcessArchitecture.md) +* [LibWeb: From Loading to Painting](LibWebFromLoadingToPainting.md) +* [LibWeb: Browsing Contexts and Navigables](BrowsingContextsAndNavigables.md) +* [How to Add an IDL File](AddNewIDLFile.md) * [LibWeb Code Style & Patterns](Browser/Patterns.md) -* [CSS Generated Files](Browser/CSSGeneratedFiles.md) +* [CSS Generated Files](CSSGeneratedFiles.md)