1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00
serenity/Userland/Libraries/LibWeb
Max Wipfli ce6d6706a6 LibWeb: Use Optional<String> for encoding_from_content_type
This patch changes the encoding_from_content_type function to only
return an encoding if it actually finds one, and leave it up to the
caller to decided on a default to use.

It also modifies the caller to expect an Optional<String> (instead of
relying on the null state of the String class) as a return value and
separates the encoding and MIME type determination. This will be built
upon in a further commit.
2021-05-18 21:02:07 +02:00
..
Bindings LibWeb: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:09 +02:00
CodeGenerators LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
Cookie Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CSS LibWeb: Resolve 2-part and 3-part border-color values 2021-05-17 23:24:32 +02:00
DOM LibWeb: Fix "adopt" => "adopt_ref" change in adoptNode exceptions 2021-05-16 22:08:49 +01:00
DumpLayoutTree Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HighResolutionTime Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HTML LibTextCodec: Use Optional<String> for get_standardized_encoding 2021-05-18 21:02:07 +02:00
Layout LibWeb: Propagate body background properties to root HTML element 2021-05-13 16:16:25 +02:00
Loader LibWeb: Use Optional<String> for encoding_from_content_type 2021-05-18 21:02:07 +02:00
NavigationTiming Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Page LibWeb: Make frames nesting-aware and disallow deep nesting 2021-05-07 22:34:34 +02:00
Painting LibWeb: Paint an element's foreground before painting its children 2021-05-11 18:03:21 +02:00
Scripts Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVG Userland: Move non-standard math constants from math.h 2021-04-27 23:06:16 +02:00
Tests LibWeb: Implement test-web in terms of LibTest/JavaScriptTestRunner 2021-05-18 18:48:15 +01:00
UIEvents AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
XHR AK+Userland: Remove nullability feature for the ByteBuffer type 2021-05-16 17:49:42 +02:00
CMakeLists.txt Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
DOMTreeModel.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DOMTreeModel.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
Dump.cpp LibWeb: Implement :nth-last-child pseudo-class 2021-05-11 21:17:16 +01:00
Dump.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FontCache.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FontCache.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Forward.h LibWeb: Add WebSocket bindings 2021-04-25 19:04:34 +02:00
InProcessWebView.cpp LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
InProcessWebView.h LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
LayoutTreeModel.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LayoutTreeModel.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
Namespace.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Namespace.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Origin.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
OutOfProcessWebView.cpp Userland: Use snake case names in .ipc files 2021-05-03 21:14:40 +02:00
OutOfProcessWebView.h LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
QualifiedName.h LibWeb: Use HTML-uppercased qualified name for the Element node name 2021-05-04 23:24:03 +01:00
StylePropertiesModel.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StylePropertiesModel.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
TreeNode.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
URLEncoder.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
URLEncoder.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
WebContentClient.cpp Userland: Use snake case names in .ipc files 2021-05-03 21:14:40 +02:00
WebContentClient.h Userland: Use snake case names in .ipc files 2021-05-03 21:14:40 +02:00
WebViewHooks.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00