mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibHTML: Fetch the box edge values needed for block width computation.
This commit is contained in:
parent
af23b38418
commit
f88c5860df
4 changed files with 42 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/NonnullRefPtr.h>
|
||||
#include <AK/AKString.h>
|
||||
#include <LibHTML/TreeNode.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <LibHTML/CSS/StyleValue.h>
|
||||
#include <LibHTML/TreeNode.h>
|
||||
|
||||
class Node;
|
||||
|
||||
|
@ -50,6 +51,14 @@ public:
|
|||
m_property_values.set(name, move(value));
|
||||
}
|
||||
|
||||
Optional<NonnullRefPtr<StyleValue>> property(const String& name) const
|
||||
{
|
||||
auto it = m_property_values.find(name);
|
||||
if (it == m_property_values.end())
|
||||
return {};
|
||||
return it->value;
|
||||
}
|
||||
|
||||
Display display() const;
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue