1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

LibWeb: Start implementing the Element scroll attributes

These are required for hit testing the document in Google Docs. If they
aren't defined, the Google Docs hit test code will add undefined to
certain values, causing them to turn into NaN. This causes NaNs to
propagate through their hit test code, which eventually makes it
infinitely loop.
This commit is contained in:
Luke Wilde 2022-11-05 15:10:13 +00:00 committed by Andreas Kling
parent 6b0152e150
commit a268026e4e
4 changed files with 264 additions and 0 deletions

View file

@ -298,6 +298,7 @@ public:
WebIDL::ExceptionOr<void> close();
HTML::Window* default_view() { return m_window.ptr(); }
HTML::Window const* default_view() const { return m_window.ptr(); }
String const& content_type() const { return m_content_type; }
void set_content_type(String const& content_type) { m_content_type = content_type; }