mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -31,7 +31,7 @@ void EditEventHandler::handle_delete_character_after(const DOM::Position& cursor
|
|||
StringBuilder builder;
|
||||
builder.append(text.substring_view(0, cursor_position.offset()));
|
||||
builder.append(text.substring_view(cursor_position.offset() + code_point_length));
|
||||
node.set_data(builder.to_string());
|
||||
node.set_data(builder.to_deprecated_string());
|
||||
|
||||
// FIXME: When nodes are removed from the DOM, the associated layout nodes become stale and still
|
||||
// remain in the layout tree. This has to be fixed, this just causes everything to be recomputed
|
||||
|
@ -52,7 +52,7 @@ void EditEventHandler::handle_delete(DOM::Range& range)
|
|||
builder.append(start->data().substring_view(0, range.start_offset()));
|
||||
builder.append(end->data().substring_view(range.end_offset()));
|
||||
|
||||
start->set_data(builder.to_string());
|
||||
start->set_data(builder.to_deprecated_string());
|
||||
} else {
|
||||
// Remove all the nodes that are fully enclosed in the range.
|
||||
HashTable<DOM::Node*> queued_for_deletion;
|
||||
|
@ -90,7 +90,7 @@ void EditEventHandler::handle_delete(DOM::Range& range)
|
|||
builder.append(start->data().substring_view(0, range.start_offset()));
|
||||
builder.append(end->data().substring_view(range.end_offset()));
|
||||
|
||||
start->set_data(builder.to_string());
|
||||
start->set_data(builder.to_deprecated_string());
|
||||
end->remove();
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ void EditEventHandler::handle_insert(DOM::Position position, u32 code_point)
|
|||
builder.append(node.data().substring_view(0, position.offset()));
|
||||
builder.append_code_point(code_point);
|
||||
builder.append(node.data().substring_view(position.offset()));
|
||||
node.set_data(builder.to_string());
|
||||
node.set_data(builder.to_deprecated_string());
|
||||
|
||||
node.invalidate_style();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue