mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
LibWeb: Use different builder name for layout tree identifier string
Stops shadowing the outer `builder`. No functional changes.
This commit is contained in:
parent
b92764dcc0
commit
fc86cc3375
Notes:
github-actions[bot]
2025-08-27 10:55:15 +00:00
Author: https://github.com/gmta
Commit: fc86cc3375
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5999
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 6 additions and 6 deletions
|
@ -175,16 +175,16 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
|
|||
String identifier;
|
||||
if (layout_node.dom_node() && is<DOM::Element>(*layout_node.dom_node())) {
|
||||
auto& element = as<DOM::Element>(*layout_node.dom_node());
|
||||
StringBuilder builder;
|
||||
StringBuilder identifier_builder;
|
||||
if (element.id().has_value() && !element.id()->is_empty()) {
|
||||
builder.append('#');
|
||||
builder.append(*element.id());
|
||||
identifier_builder.append('#');
|
||||
identifier_builder.append(*element.id());
|
||||
}
|
||||
for (auto& class_name : element.class_names()) {
|
||||
builder.append('.');
|
||||
builder.append(class_name);
|
||||
identifier_builder.append('.');
|
||||
identifier_builder.append(class_name);
|
||||
}
|
||||
identifier = MUST(builder.to_string());
|
||||
identifier = MUST(identifier_builder.to_string());
|
||||
}
|
||||
|
||||
StringView nonbox_color_on = ""sv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue