ladybird/Libraries/LibWeb/CSS
Tom 75f61fe3d9 AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe
This makes most operations thread safe, especially so that they
can safely be used in the Kernel. This includes obtaining a strong
reference from a weak reference, which now requires an explicit
call to WeakPtr::strong_ref(). Another major change is that
Weakable::make_weak_ref() may require the explicit target type.
Previously we used reinterpret_cast in WeakPtr, assuming that it
can be properly converted. But WeakPtr does not necessarily have
the knowledge to be able to do this. Instead, we now ask the class
itself to deliver a WeakPtr to the type that we want.

Also, WeakLink is no longer specific to a target type. The reason
for this is that we want to be able to safely convert e.g. WeakPtr<T>
to WeakPtr<U>, and before this we just reinterpret_cast the internal
WeakLink<T> to WeakLink<U>, which is a bold assumption that it would
actually produce the correct code. Instead, WeakLink now operates
on just a raw pointer and we only make those constructors/operators
available if we can verify that it can be safely cast.

In order to guarantee thread safety, we now use the least significant
bit in the pointer for locking purposes. This also means that only
properly aligned pointers can be used.
2020-11-10 19:11:52 +01:00
..
Parser LibWeb: Add pc CSS unit 2020-10-05 20:05:40 +02:00
.gitignore LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
Default.css LibWeb: Don't use 'font-weight: lighter' for Csilla in Default.css 2020-10-31 20:52:54 +01:00
Length.cpp LibWeb: Add pc CSS unit 2020-10-05 20:05:40 +02:00
Length.h LibWeb: Add pc CSS unit 2020-10-05 20:05:40 +02: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: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
SelectorEngine.cpp LibWeb: Mark compilation-unit-only functions as static 2020-08-12 20:40:59 +02: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
StyleProperties.cpp Fonts: Rename font files consistently 2020-10-25 10:12:03 +01:00
StyleProperties.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00
StyleResolver.cpp LibWeb: Ignore non-URL values for background-image for now 2020-10-09 21:27:01 +02:00
StyleResolver.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02: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 AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
StyleValue.h LibWeb: Move CSS classes into the Web::CSS namespace 2020-07-26 20:05:15 +02:00