1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00
serenity/Libraries/LibWeb
Matthew Olsson 5ae9419a06 LibJS: Object index properties have descriptors; Handle sparse indices
This patch adds an IndexedProperties object for storing indexed
properties within an Object. This accomplishes two goals: indexed
properties now have an associated descriptor, and objects now gracefully
handle sparse properties.

The IndexedProperties class is a wrapper around two other classes, one
for simple indexed properties storage, and one for general indexed
property storage. Simple indexed property storage is the common-case,
and is simply a vector of properties which all have attributes of
default_attributes (writable, enumerable, and configurable).

General indexed property storage is for a collection of indexed
properties where EITHER one or more properties have attributes other
than default_attributes OR there is a property with a large index (in
particular, large is '200' or higher).

Indexed properties are now treated relatively the same as storage within
the various Object methods. Additionally, there is a custom iterator
class for IndexedProperties which makes iteration easy. The iterator
skips empty values by default, but can be configured otherwise.
Likewise, it evaluates getters by default, but can be set not to.
2020-05-28 17:17:13 +02:00
..
Bindings LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
CodeGenerators Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
CSS LibWeb: Add default UA style for some table-related elements 2020-05-28 12:43:29 +02:00
DOM LibWeb: Fall back to block layout for unimplemented CSS display values 2020-05-28 12:44:34 +02:00
Layout LibWeb: LayoutMode line_break_policy => LayoutMode layout_mode 2020-05-27 19:52:18 +02:00
Parser LibWeb: Plumb content encoding into the new HTML parser 2020-05-28 12:35:19 +02:00
Scripts LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
CMakeLists.txt LibWeb: Support named character references (e.g "&") 2020-05-28 11:44:19 +02:00
DOMTreeModel.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
DOMTreeModel.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Dump.cpp LibWeb: Colorize tag names in layout tree dumps + show element IDs 2020-05-23 21:08:25 +02:00
Dump.h LibWeb: Add naive support for document.querySelectorAll() 2020-03-30 11:35:39 +02:00
FontCache.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
FontCache.h LibWeb: Use FlyString in FontCache keys 2020-05-26 23:45:48 +02:00
Forward.h LibWeb: Add HTMLScriptElement to the forwarding header 2020-05-24 23:54:22 +02:00
Frame.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Frame.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
HtmlView.cpp LibWeb: Plumb content encoding into the new HTML parser 2020-05-28 12:35:19 +02:00
HtmlView.h LibWeb+Browser: Add ability to run Browser with the new HTML parser 2020-05-27 21:57:30 +02:00
Origin.h LibWeb: Add Origin concept (protocol, host, port tuple) 2020-04-07 23:01:45 +02:00
RenderingContext.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
ResourceLoader.cpp LibWeb: Provide some properties to inspectors of ResourceLoader 2020-05-27 11:13:02 +02:00
ResourceLoader.h LibWeb: Provide some properties to inspectors of ResourceLoader 2020-05-27 11:13:02 +02:00
StylePropertiesModel.cpp LibWeb: replace some tab characters with spaces 2020-05-28 17:01:31 +02:00
StylePropertiesModel.h LibWeb: replace some tab characters with spaces 2020-05-28 17:01:31 +02:00
TreeNode.h LibWeb: Add a way to opt out of TreeNode::append_child() notifications 2020-05-24 23:54:22 +02:00
URLEncoder.cpp LibWeb: Make the URL encoding function a little less copy-happy 2020-05-05 15:50:28 +02:00
URLEncoder.h LibWeb: Make the URL encoding function a little less copy-happy 2020-05-05 15:50:28 +02:00