[webkit-changes] [WebKit/WebKit] b6966d: Prefer '=default' and implicit constructor fore mo...

Vitor Roriz noreply at github.com
Thu Jun 20 15:45:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b6966d585e085d03a2de9f7d1211c03741214a58
      https://github.com/WebKit/WebKit/commit/b6966d585e085d03a2de9f7d1211c03741214a58
  Author: Vitor Roriz <vitor.roriz at apple.com>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M Source/WebCore/dom/NodeRareData.h
    M Source/WebCore/dom/SlotAssignment.h
    M Source/WebCore/dom/TextEncoder.h
    M Source/WebCore/dom/TreeScopeOrderedMap.h
    M Source/WebCore/layout/formattingContexts/inline/AvailableLineWidthOverride.h
    M Source/WebCore/layout/integration/inline/InlineIteratorInlineBox.h
    M Source/WebCore/layout/integration/inline/InlineIteratorTextBox.h
    M Source/WebCore/rendering/AncestorSubgridIterator.cpp
    M Source/WebCore/rendering/TextPaintStyle.h
    M Source/WebCore/rendering/mathml/MathMLStyle.h
    M Source/WebCore/rendering/svg/legacy/SVGResourcesCycleSolver.h
    M Source/WebCore/style/StyleResolver.cpp

  Log Message:
  -----------
  Prefer '=default' and implicit constructor fore more classes at Source/WebCore
rdar://129890943
https://bugs.webkit.org/show_bug.cgi?id=275522

Reviewed by Sammy Gill.

We prefer to let the compiler generate default constructors
rather than explicitly defining it. When the default
constructor is the only constructor we can omit it instead,
so it is implicitly generated.

* Source/WebCore/dom/NodeRareData.h:
(WebCore::NodeMutationObserverData::NodeMutationObserverData): Deleted.
* Source/WebCore/dom/SlotAssignment.h:
(WebCore::NamedSlotAssignment::Slot::Slot): Deleted.
* Source/WebCore/dom/TextEncoder.h:
(WebCore::TextEncoder::TextEncoder): Deleted.
* Source/WebCore/dom/TreeScopeOrderedMap.h:
* Source/WebCore/layout/formattingContexts/inline/AvailableLineWidthOverride.h:
* Source/WebCore/layout/integration/inline/InlineIteratorInlineBox.h:
(WebCore::InlineIterator::InlineBoxIterator::InlineBoxIterator): Deleted.
* Source/WebCore/layout/integration/inline/InlineIteratorTextBox.h:
(WebCore::InlineIterator::TextBoxIterator::TextBoxIterator): Deleted.
* Source/WebCore/rendering/AncestorSubgridIterator.cpp:
* Source/WebCore/rendering/TextPaintStyle.h:
(WebCore::TextPaintStyle::TextPaintStyle): Deleted.
* Source/WebCore/rendering/mathml/MathMLStyle.h:
* Source/WebCore/rendering/svg/legacy/SVGResourcesCycleSolver.h:
(WebCore::SVGResourcesCycleSolver::SVGResourcesCycleSolver): Deleted.
* Source/WebCore/style/StyleResolver.cpp:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list