gui: function extracted to WebkitMessagesViewDisplay

Signed-off-by: Rafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
gui: remove dependency on core from WebkitMessagesViewDisplay

Signed-off-by: Rafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>