mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Libraries: Create top level directory for libraries.
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
This commit is contained in:
parent
63814ffebf
commit
04b9dc2d30
328 changed files with 36 additions and 36 deletions
29
Libraries/LibHTML/CSS/Selector.h
Normal file
29
Libraries/LibHTML/CSS/Selector.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibHTML/CSS/Specificity.h>
|
||||
|
||||
class Selector {
|
||||
public:
|
||||
struct Component {
|
||||
enum class Type {
|
||||
Invalid,
|
||||
TagName,
|
||||
Id,
|
||||
Class
|
||||
};
|
||||
Type type { Type::Invalid };
|
||||
String value;
|
||||
};
|
||||
|
||||
explicit Selector(Vector<Component>&&);
|
||||
~Selector();
|
||||
|
||||
const Vector<Component>& components() const { return m_components; }
|
||||
|
||||
Specificity specificity() const;
|
||||
|
||||
private:
|
||||
Vector<Component> m_components;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue