-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Remove document.implementation.createCSSStyleSheet() #38377
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
base: main
Are you sure you want to change the base?
Conversation
|
EWS run on previous version of this PR (hash 2ff87a0) Details |
aproskuryakov
left a comment
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.
We cannot modify released benchmarks.
yes I thought about it when doing it. |
https://bugs.webkit.org/show_bug.cgi?id=285157 rdar://142045904 The code has never been implemented in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=63850 This was part of DOM Level 2 https://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html#CSS-DOMImplementationCSS Safari, Firefox and Chrome returns undefined document.implementation.createCSSStyleSheet * LayoutTests/fast/css/DOMImplementation.createCSSStyleSheet-obsolete-expected.txt: Removed. * LayoutTests/fast/css/DOMImplementation.createCSSStyleSheet-obsolete.html: Removed. * LayoutTests/platform/mac-site-isolation/TestExpectations: * LayoutTests/webgl/2.0.0/resources/webgl_test_files/deqp/temp_externs/w3c_css.js: (DOMImplementationCSS.prototype.createCSSStyleSheet): Deleted. * Source/WebCore/dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createCSSStyleSheet): Deleted. * Source/WebCore/dom/DOMImplementation.h: * Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js: * Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp: (webkit_dom_dom_implementation_create_css_style_sheet): Deleted. * Source/WebKitLegacy/mac/DOM/DOMImplementation.h: * Source/WebKitLegacy/mac/DOM/DOMImplementation.mm: (-[DOMImplementation createCSSStyleSheet:media:]): Deleted. (-[DOMImplementation createCSSStyleSheet::]): Deleted.
2ff87a0 to
7a15673
Compare
|
EWS run on current version of this PR (hash 7a15673) Details |
|
I don't understand your question. Is it about performance benchmarks? Another thing we shouldn't be doing is removing WebKitLegacy public APIs. |
I understand and agree but in this specific case, see https://bugzilla.mozilla.org/show_bug.cgi?id=63850#c6 from 2002-06-13
The missing piece of standard to associate the stylesheet to the DOM was never created. And then later on, it was removed from the spec, when people realized that there is nothing that could be done with it. So I doubt it's in any use elsewhere. |
|
It's sometimes OK to leave in a stub API with empty implementation, but we can not "clean up" Objective-C APIs. |
| - (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media | ||
| { | ||
| return [self createCSSStyleSheet:title media:media]; | ||
| } |
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.
Instead of removing all this, use "return nil" as the body instead.
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.
Maybe you can remove some of the includes.
|
This PR is probably best to be reviewed by @cdumez, as it revisits choices made in his 2017 change. |
7a15673
7a15673