1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00
serenity/Libraries/LibWeb/Bindings
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
..
CanvasRenderingContext2DWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
CanvasRenderingContext2DWrapper.h LibWeb: Add CanvasRenderingContext2D.canvas 2020-05-21 01:24:36 +02:00
DocumentWrapper.cpp LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
DocumentWrapper.h LibWeb: Add document.querySelector() 2020-05-26 00:12:20 +02:00
ElementWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
ElementWrapper.h LibWeb: Add Element.getAttribute() and Element.setAttribute() :^) 2020-05-26 12:27:10 +02:00
EventListenerWrapper.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
EventListenerWrapper.h LibWeb: Use a JS::Handle to keep the EventListener function alive 2020-03-18 20:05:52 +01:00
EventTargetWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
EventTargetWrapper.h LibJS+LibWeb: Move native JS functions into dedicated member functions 2020-03-28 23:10:37 +01:00
EventWrapper.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
EventWrapper.h LibWeb: Add a DOM Event class (instead of events being simple strings) 2020-03-21 18:17:18 +01:00
HTMLCanvasElementWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
HTMLCanvasElementWrapper.h LibJS+LibWeb: Move native properties to separate getters/setters 2020-03-29 00:37:33 +01:00
HTMLImageElementWrapper.cpp LibWeb: Add a JavaScript wrapper for HTMLImageElement :^) 2020-04-14 20:37:01 +02:00
HTMLImageElementWrapper.h LibWeb: Add a JavaScript wrapper for HTMLImageElement :^) 2020-04-14 20:37:01 +02:00
ImageDataWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
ImageDataWrapper.h LibWeb: Add ImageData objects and implement 2D context putImageData() 2020-04-21 23:49:51 +02:00
LocationObject.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
LocationObject.h LibWeb: Allow reloading the current page with location.reload() 2020-05-18 22:05:13 +02:00
MouseEventWrapper.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
MouseEventWrapper.h LibJS+LibWeb: Move native properties to separate getters/setters 2020-03-29 00:37:33 +01:00
NavigatorObject.cpp LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
NavigatorObject.h LibWeb: Send User-Agent in HTTP requests 2020-05-21 12:58:57 +02:00
NodeWrapper.cpp LibWeb: Add a JavaScript wrapper for HTMLImageElement :^) 2020-04-14 20:37:01 +02:00
NodeWrapper.h LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
WindowObject.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
WindowObject.h LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
Wrappable.cpp LibWeb: Add missing copyright headers 2020-03-15 10:24:05 +01:00
Wrappable.h LibWeb: Add <canvas> element and start fleshing out CRC2D 2020-03-19 19:07:56 +01:00
Wrapper.h LibJS+LibWeb: Pass prototype to Object constructor 2020-04-18 11:00:55 +02:00
XMLHttpRequestConstructor.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
XMLHttpRequestConstructor.h LibWeb: Add XMLHttpRequest object :^) 2020-04-08 21:46:43 +02:00
XMLHttpRequestPrototype.cpp LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
XMLHttpRequestPrototype.h LibWeb: Add XMLHttpRequest.readyState and constants 2020-04-23 11:03:17 +02:00
XMLHttpRequestWrapper.cpp LibWeb: Add XMLHttpRequest object :^) 2020-04-08 21:46:43 +02:00
XMLHttpRequestWrapper.h LibWeb: Add XMLHttpRequest object :^) 2020-04-08 21:46:43 +02:00