Andreas Kling
992697d99f
LibWeb: Add HTML::TagNames namespace for global tag name FlyStrings
...
Instead of "iframe", we can now say HTML::TagNames::iframe and avoid
a FlyString lookup.
2020-06-07 23:27:03 +02:00
Andreas Kling
959de19418
LibWeb: Process style sheets in document order
...
Until now we would simply apply stylesheets in the order they finished
loading. This patch adds a StyleSheetList object that hangs off of each
Document and contains all the style sheets in document order.
There's still a lot of work to do for a proper cascade, but at least
this makes us consistently wrong every time. :^)
2020-06-04 16:06:32 +02:00
Andreas Kling
2149820260
LibWeb: Use HTML::AttributeNames::foo instead of FlyString("foo")
...
To avoid the costly instantiation of FlyStrings whenever we're looking
up attributes, use the premade HTML::AttributeNames globals. :^)
2020-06-03 21:53:00 +02:00
Andreas Kling
7197adbd55
LibWeb: Port HTMLLinkElement to the ResourceClient interface
2020-06-02 13:51:57 +02:00
Andreas Kling
7309642ca8
LibWeb: Use FlyString for Element tag names
...
This makes selector matching a lot more efficient, and also reduces the
number of strings on the heap.
2020-03-22 19:12:10 +01:00
Andreas Kling
830a57c6b2
LibWeb: Rename directory LibHTML => LibWeb
...
Let's rename this to LibWeb since it aims to provide more parts of the
web platform than just HTML. :^)
2020-03-07 10:32:51 +01:00