Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 37596fbc831cee2db32d1a6424cc3480b4ed4ab5
https://github.com/WebKit/WebKit/commit/37596fbc831cee2db32d1a6424cc3480b4ed4ab5
Author: Karl Dubost <[email protected]>
Date: 2026-10-05 (Mon, 05 Oct 2026)
Changed paths:
M Source/WebCore/dom/DOMImplementation.cpp
M Source/WebCore/dom/DOMImplementation.h
M
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp
M Source/WebKitLegacy/mac/DOM/DOMImplementation.mm
Log Message:
-----------
Remove DOMImplementation::createCSSStyleSheet()
https://bugs.webkit.org/show_bug.cgi?id=285157
rdar://142045904
Reviewed by Anne van Kesteren.
document.implementation.createCSSStyleSheet() was dropped from the web
in 2017. See https://webkit.org/b/171825
The WebCore function stayed, only for the WebKitLegacy Objective-C and
the GTK DOM bindings. Remove it.
Both bindings are public API, so keep their methods. The Objective-C
methods return nil, like other stubs in DOMDocument.mm. The GTK function
warns and returns nullptr, like the functions in WebKitDOMDeprecated.cpp.
No behavior change for web content. The existing test
fast/css/DOMImplementation.createCSSStyleSheet-obsolete.html still
checks that the method is not exposed.
* Source/WebCore/dom/DOMImplementation.cpp:
(WebCore::DOMImplementation::createCSSStyleSheet): Deleted.
* Source/WebCore/dom/DOMImplementation.h:
*
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
(webkit_dom_dom_implementation_create_css_style_sheet):
* Source/WebKitLegacy/mac/DOM/DOMImplementation.mm:
(-[DOMImplementation createCSSStyleSheet:media:]):
Canonical link: https://commits.webkit.org/322805@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications