New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove non-standard width()
and height()
functions of HTMLDocument
#26082
Remove non-standard width()
and height()
functions of HTMLDocument
#26082
Conversation
EWS run on previous version of this PR (hash bc9b1fc) |
width()
and height()
functions of HTMLDocument (from WebKit and WebKitLegacy)width()
and height()
functions of HTMLDocument (from WebKit and WebKitLegacy)
bc9b1fc
to
2a7c420
Compare
EWS run on previous version of this PR (hash 2a7c420) |
2a7c420
to
5cb57af
Compare
EWS run on previous version of this PR (hash 5cb57af) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove " (from WebKit and WebKitLegacy)" as it's inaccurate. These are still exposed in WebKitLegacy.
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp
Outdated
Show resolved
Hide resolved
5cb57af
to
1f1978a
Compare
width()
and height()
functions of HTMLDocument (from WebKit and WebKitLegacy)width()
and height()
functions of HTMLDocument
798f2db
to
f35e335
Compare
EWS run on previous version of this PR (hash f35e335) |
f35e335
to
450f296
Compare
EWS run on current version of this PR (hash 450f296) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DOM API has been deprecated since WebKitGTK version 2.22.0 (September 2018, four and a half years ago), and has never been part of WPE. Building WebKitGTK against GTK4 disables the whole DOM API. At this point we would expect everybody to have moved on; we only keep the library and its symbols around to prevent old applications that haven't been updated from segfaulting at load time.
I think this change is okay for the GTK port, if @carlosgcampos agrees let's merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If Apple is OK with the API changes in DOMHTMLDocument.mm, then this is good.
LGTM |
https://bugs.webkit.org/show_bug.cgi?id=271190 Reviewed by Ryosuke Niwa and Michael Catanzaro. This patch is to remove remaining code for dropped `HTMLDocument.width / height` attributes, which were dropped in 171244@main (via IDL changes) and later removed in 179619@main (both in 2016 - via removal from IDL). * Source/WebCore/html/HTMLDocument.cpp: (HTMLDocument::width): Deleted (HTMLDocument::height): Deleted * Source/WebCore/html/HTMLDocument.h: * Source/WebKitLegacy/mac/DOM/DOMHTMLDocument.mm: (width): (height): * Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp: (webkit_dom_html_document_get_width): (webkit_dom_html_document_get_height): Canonical link: https://commits.webkit.org/276488@main
450f296
to
9e4d690
Compare
Committed 276488@main (9e4d690): https://commits.webkit.org/276488@main Reviewed commits have been landed. Closing PR #26082 and removing active labels. |
9e4d690
450f296
π π§ͺ merge