mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 15:25:08 +00:00
LibHTML: Refactor to go from DOM -> styled tree -> layout tree.
Frame::layout() drives everything now, it takes the DOM contained in the frame and puts it through the tree transformations.
This commit is contained in:
parent
6e95b11395
commit
7eef69ad4b
20 changed files with 132 additions and 131 deletions
|
@ -36,7 +36,7 @@ static bool matches(const Selector& selector, const Element& element)
|
|||
NonnullRefPtrVector<StyleRule> StyleResolver::collect_matching_rules(const Element& element) const
|
||||
{
|
||||
NonnullRefPtrVector<StyleRule> matching_rules;
|
||||
for (auto& sheet : m_sheets) {
|
||||
for (auto& sheet : document().stylesheets()) {
|
||||
for (auto& rule : sheet.rules()) {
|
||||
for (auto& selector : rule.selectors()) {
|
||||
if (matches(selector, element)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue