Skip to content

Conversation

@annevk
Copy link
Contributor

@annevk annevk commented Oct 27, 2023

f3216a0

Add explicit to some single argument constructors
https://bugs.webkit.org/show_bug.cgi?id=263793
rdar://117597310

Reviewed by Chris Dumez.

During development of
https://bugs.webkit.org/show_bug.cgi?id=263435 I copied some incorrect
prior art:

1. Single argument constructors should use explicit.
2. "static constexpr" should be in that order.

This change addresses 2 with the exception of third party code. It only
addresses 1 for code in Source/WebCore/html/shadow.

* Source/WebCore/Modules/model-element/HTMLModelElement.h:
* Source/WebCore/dom/Node.h:
* Source/WebCore/html/HTMLDivElement.h:
* Source/WebCore/html/HTMLFormControlElement.h:
* Source/WebCore/html/HTMLFrameElementBase.h:
* Source/WebCore/html/HTMLFrameOwnerElement.h:
* Source/WebCore/html/HTMLFrameSetElement.h:
* Source/WebCore/html/HTMLImageElement.h:
* Source/WebCore/html/HTMLLIElement.h:
* Source/WebCore/html/HTMLMediaElement.h:
* Source/WebCore/html/HTMLOptionElement.h:
* Source/WebCore/html/HTMLPlugInElement.h:
* Source/WebCore/html/HTMLProgressElement.h:
* Source/WebCore/html/shadow/DateTimeFieldElement.h:
* Source/WebCore/html/shadow/DetailsMarkerControl.h:
* Source/WebCore/html/shadow/ProgressShadowElement.h:
* Source/WebCore/html/shadow/SliderThumbElement.h:
* Source/WebCore/html/shadow/SpinButtonElement.h:
* Source/WebCore/html/shadow/TextControlInnerElements.h:
* Source/WebCore/html/shadow/YouTubeEmbedShadowElement.h:
* Source/WebCore/html/track/TextTrackCue.h:
* Source/WebCore/mathml/MathMLMathElement.h:
* Source/WebCore/mathml/MathMLPresentationElement.h:
* Source/WebCore/mathml/MathMLRowElement.h:
* Source/WebCore/mathml/MathMLTokenElement.h:
* Source/WebCore/svg/SVGPathSegImpl.h:

Canonical link: https://commits.webkit.org/269865@main

9b957ad

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ✅ 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🛠 gtk
🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 🧪 gtk-wk2
🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 api-gtk
🛠 tv 🧪 mac-AS-debug-wk2
✅ 🛠 tv-sim
✅ 🛠 🧪 merge 🛠 watch
✅ 🛠 watch-sim

@annevk annevk self-assigned this Oct 27, 2023
@annevk annevk added the DOM For bugs specific to XML/HTML DOM elements (including parsing). label Oct 27, 2023
@annevk annevk added the merge-queue Applied to send a pull request to merge-queue label Oct 27, 2023
https://bugs.webkit.org/show_bug.cgi?id=263793
rdar://117597310

Reviewed by Chris Dumez.

During development of
https://bugs.webkit.org/show_bug.cgi?id=263435 I copied some incorrect
prior art:

1. Single argument constructors should use explicit.
2. "static constexpr" should be in that order.

This change addresses 2 with the exception of third party code. It only
addresses 1 for code in Source/WebCore/html/shadow.

* Source/WebCore/Modules/model-element/HTMLModelElement.h:
* Source/WebCore/dom/Node.h:
* Source/WebCore/html/HTMLDivElement.h:
* Source/WebCore/html/HTMLFormControlElement.h:
* Source/WebCore/html/HTMLFrameElementBase.h:
* Source/WebCore/html/HTMLFrameOwnerElement.h:
* Source/WebCore/html/HTMLFrameSetElement.h:
* Source/WebCore/html/HTMLImageElement.h:
* Source/WebCore/html/HTMLLIElement.h:
* Source/WebCore/html/HTMLMediaElement.h:
* Source/WebCore/html/HTMLOptionElement.h:
* Source/WebCore/html/HTMLPlugInElement.h:
* Source/WebCore/html/HTMLProgressElement.h:
* Source/WebCore/html/shadow/DateTimeFieldElement.h:
* Source/WebCore/html/shadow/DetailsMarkerControl.h:
* Source/WebCore/html/shadow/ProgressShadowElement.h:
* Source/WebCore/html/shadow/SliderThumbElement.h:
* Source/WebCore/html/shadow/SpinButtonElement.h:
* Source/WebCore/html/shadow/TextControlInnerElements.h:
* Source/WebCore/html/shadow/YouTubeEmbedShadowElement.h:
* Source/WebCore/html/track/TextTrackCue.h:
* Source/WebCore/mathml/MathMLMathElement.h:
* Source/WebCore/mathml/MathMLPresentationElement.h:
* Source/WebCore/mathml/MathMLRowElement.h:
* Source/WebCore/mathml/MathMLTokenElement.h:
* Source/WebCore/svg/SVGPathSegImpl.h:

Canonical link: https://commits.webkit.org/269865@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Add-explicit-to-some-single-argument-constructors branch from 9b957ad to f3216a0 Compare October 27, 2023 20:39
@webkit-commit-queue
Copy link
Collaborator

Committed 269865@main (f3216a0): https://commits.webkit.org/269865@main

Reviewed commits have been landed. Closing PR #19649 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit f3216a0 into WebKit:main Oct 27, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Oct 27, 2023
@annevk annevk deleted the eng/Add-explicit-to-some-single-argument-constructors branch October 27, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DOM For bugs specific to XML/HTML DOM elements (including parsing).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants