mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
We currently have StylePropertiesModel and AriaPropertiesStateModel in LibWebView. These depend on GUI::Model and GUI::ModelIndex, which is the only reason that the non-Serenity Ladybird chromes require LibGUI. Further, these classes are very nearly idenitical. This creates a PropertyTableModel to provide the base functionality for all table-based model types used by all Ladybird chromes. It contains code common to the style / ARIA table models, and handles the slight differences between the two (namely, just the manner in which the values are flattened into a list during construction). The Qt and Serenity chromes can create thin wrappers around this class to adapt its interface to their chrome-specific model classes (i.e. QAbstractItemModel and GUI::Model).
2.4 KiB
2.4 KiB