1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00
serenity/Libraries/LibWeb/CSS
Linus Groh 5e7945e26f LibWeb: Add a simple StyleInvalidator class
This patch adds a simple, naive & inefficient class for document-wide
style invalidation, e.g. after element attribute updates. During
construction it collects a HashMap of a document's elements and their
matching rules, during destruction it does the same and then compares
the results; dirtying all elements that have a different number or order
of matching rules afterwards.

Much room for improvement, but it solves the problem of stale element
styling after attribute updates for now :^)

Fixes #4404.
2020-12-14 23:38:08 +01:00
..
Parser LibWeb: Convert remaining CSS identifiers to use IdentifierStyleValue 2020-12-14 22:22:35 +01:00
.gitignore LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Default.css LibWeb: Improvements to font lookup 2020-12-14 20:43:25 +01:00
Length.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
Length.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
LengthBox.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
Properties.json LibWeb: Expand border-{top,right,bottom-left} CSS shorthand properties 2020-06-10 16:14:31 +02:00
QuirksMode.css LibWeb: Add a separate UA style sheet for documents in quirks mode 2020-09-24 10:33:33 +02:00
Selector.cpp LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
Selector.h LibWeb: Parse :before and :after pseudo-elements 2020-12-01 16:53:10 +01:00
SelectorEngine.cpp LibWeb: Parse :before and :after pseudo-elements 2020-12-01 16:53:10 +01:00
SelectorEngine.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleDeclaration.cpp LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleDeclaration.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleInvalidator.cpp LibWeb: Add a simple StyleInvalidator class 2020-12-14 23:38:08 +01:00
StyleInvalidator.h LibWeb: Add a simple StyleInvalidator class 2020-12-14 23:38:08 +01:00
StyleProperties.cpp LibWeb: Convert remaining CSS identifiers to use IdentifierStyleValue 2020-12-14 22:22:35 +01:00
StyleProperties.h LibWeb: Use IdentifierStyleValue for CSS 'position' 2020-12-14 20:43:25 +01:00
StyleResolver.cpp LibWeb: Add a simple StyleInvalidator class 2020-12-14 23:38:08 +01:00
StyleResolver.h LibWeb: Add a simple StyleInvalidator class 2020-12-14 23:38:08 +01:00
StyleRule.cpp LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleRule.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleSheet.cpp LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleSheet.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleSheetList.cpp LibWeb: Move DOM classes into the Web::DOM namespace 2020-07-26 20:05:15 +02:00
StyleSheetList.h LibWeb: Move DOM classes into the Web::DOM namespace 2020-07-26 20:05:15 +02:00
StyleValue.cpp LibWeb: Convert remaining CSS identifiers to use IdentifierStyleValue 2020-12-14 22:22:35 +01:00
StyleValue.h LibWeb: Convert remaining CSS identifiers to use IdentifierStyleValue 2020-12-14 22:22:35 +01:00