mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibWeb: Use "namespace Web::Foo {" since C++20 allows it :^)
Thanks @nico for teaching me about this!
This commit is contained in:
parent
4065182811
commit
685e006e27
15 changed files with 22 additions and 46 deletions
|
@ -26,8 +26,7 @@
|
|||
|
||||
#include <LibWeb/CSS/StyleSheetList.h>
|
||||
|
||||
namespace Web {
|
||||
namespace CSS {
|
||||
namespace Web::CSS {
|
||||
|
||||
void StyleSheetList::add_sheet(NonnullRefPtr<StyleSheet> sheet)
|
||||
{
|
||||
|
@ -40,4 +39,3 @@ StyleSheetList::StyleSheetList(Document& document)
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include <AK/RefCounted.h>
|
||||
#include <LibWeb/CSS/StyleSheet.h>
|
||||
|
||||
namespace Web {
|
||||
namespace CSS {
|
||||
namespace Web::CSS {
|
||||
|
||||
class StyleSheetList : public RefCounted<StyleSheetList> {
|
||||
public:
|
||||
|
@ -51,4 +50,3 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,13 +36,11 @@
|
|||
#include <LibGfx/Color.h>
|
||||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/CSS/PropertyID.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Loader/ImageResource.h>
|
||||
|
||||
namespace Web {
|
||||
namespace Web::CSS {
|
||||
|
||||
class Document;
|
||||
|
||||
namespace CSS {
|
||||
enum class ValueID {
|
||||
Invalid,
|
||||
VendorSpecificLink,
|
||||
|
@ -153,6 +151,8 @@ enum class Float {
|
|||
|
||||
}
|
||||
|
||||
namespace Web {
|
||||
|
||||
class StyleValue : public RefCounted<StyleValue> {
|
||||
public:
|
||||
virtual ~StyleValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue