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

LibWeb: Make Document::{visibility,read}_state return a StringView

Also using the visibility state enum to change strcmp to a simple
enum state check :^)
This commit is contained in:
Shannon Booth 2023-09-12 23:17:07 +12:00 committed by Andreas Kling
parent 49eb3bfb1d
commit c3e6077cfc
3 changed files with 6 additions and 6 deletions

View file

@ -1339,7 +1339,7 @@ WebIDL::ExceptionOr<void> BrowsingContext::traverse_the_history(size_t entry_ind
// FIXME: 6. If newDocument has any form controls whose autofill field name is "off", invoke the reset algorithm of each of those elements.
// 7. If newDocument's current document readiness "complete",
if (new_document->ready_state() == "complete"sv) {
if (new_document->readiness() == HTML::DocumentReadyState::Complete) {
// then queue a global task on the DOM manipulation task source given newDocument's relevant global object to run the following steps:
queue_global_task(Task::Source::DOMManipulation, relevant_global_object(*new_document), [new_document] {