1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:08:12 +00:00

LibWeb: Convert a bunch of dbg() to dbgln()

This commit is contained in:
Andreas Kling 2021-01-09 14:02:45 +01:00
parent 4714b04d32
commit 0a3b834346
12 changed files with 31 additions and 38 deletions

View file

@ -39,11 +39,11 @@ Position::~Position()
{
}
const LogStream& operator<<(const LogStream& stream, const Position& position)
String Position::to_string() const
{
if (!position.node())
return stream << "DOM::Position(nullptr, " << position.offset() << ")";
return stream << "DOM::Position(" << position.node()->node_name() << "{" << position.node() << "}, " << position.offset() << ")";
if (!node())
return String::formatted("DOM::Position(nullptr, {})", offset());
return String::formatted("DOM::Position({} ({})), {})", node()->node_name(), node(), offset());
}
}