Skip to content
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

Inline CustomElementElementQueue into CustomElementReactionStack #25516

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Mar 6, 2024

c602819

Inline CustomElementElementQueue into CustomElementReactionStack
https://bugs.webkit.org/show_bug.cgi?id=270551

Reviewed by Chris Dumez.

Inline CustomElementElementQueue into CustomElementReactionStack to avoid heap allocation.

* Source/WebCore/dom/CustomElementReactionQueue.cpp:
(WebCore::CustomElementQueue::processQueue):
(WebCore::CustomElementReactionQueue::enqueueElementOnAppropriateElementQueue):
(WebCore::CustomElementReactionStack::processQueue): Deleted.
(WebCore::CustomElementReactionStack::takeElements): Deleted.
* Source/WebCore/dom/CustomElementReactionQueue.h:
(WebCore::CustomElementQueue::CustomElementQueue): Inlined.
(WebCore::CustomElementQueue::~CustomElementQueue): Ditto.
(WebCore::CustomElementQueue::isEmpty const): Added.
(WebCore::CustomElementReactionStack::~CustomElementReactionStack):
(WebCore::CustomElementReactionStack::takeElements): Inlined.
* Source/WebCore/dom/GCReachableRef.h:

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

3a68cdd

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 βœ… πŸ§ͺ api-wpe
  πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 βœ… πŸ›  wpe-skia
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ›  gtk
  πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2 ⏳ πŸ§ͺ gtk-wk2
  πŸ›  tv-sim ⏳ πŸ§ͺ api-gtk
βœ… πŸ›  watch
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim

@rniwa rniwa requested a review from cdumez as a code owner March 6, 2024 01:12
@rniwa rniwa self-assigned this Mar 6, 2024
@rniwa rniwa added the DOM For bugs specific to XML/HTML DOM elements (including parsing). label Mar 6, 2024
@rniwa rniwa requested a review from Constellation March 6, 2024 01:13
Source/WebCore/dom/CustomElementReactionQueue.h Outdated Show resolved Hide resolved
@rniwa rniwa added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 6, 2024
https://bugs.webkit.org/show_bug.cgi?id=270551

Reviewed by Chris Dumez.

Inline CustomElementElementQueue into CustomElementReactionStack to avoid heap allocation.

* Source/WebCore/dom/CustomElementReactionQueue.cpp:
(WebCore::CustomElementQueue::processQueue):
(WebCore::CustomElementReactionQueue::enqueueElementOnAppropriateElementQueue):
(WebCore::CustomElementReactionStack::processQueue): Deleted.
(WebCore::CustomElementReactionStack::takeElements): Deleted.
* Source/WebCore/dom/CustomElementReactionQueue.h:
(WebCore::CustomElementQueue::CustomElementQueue): Inlined.
(WebCore::CustomElementQueue::~CustomElementQueue): Ditto.
(WebCore::CustomElementQueue::isEmpty const): Added.
(WebCore::CustomElementReactionStack::~CustomElementReactionStack):
(WebCore::CustomElementReactionStack::takeElements): Inlined.
* Source/WebCore/dom/GCReachableRef.h:

Canonical link: https://commits.webkit.org/275734@main
@webkit-commit-queue
Copy link
Collaborator

Committed 275734@main (c602819): https://commits.webkit.org/275734@main

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

@webkit-commit-queue webkit-commit-queue merged commit c602819 into WebKit:main Mar 6, 2024
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 6, 2024
@rniwa rniwa deleted the fix270551 branch May 21, 2024 17:13
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
4 participants