[webkit-changes] [WebKit/WebKit] e05acd: Use smart pointers for members of SVG classes

Rob Buis noreply at github.com
Mon May 13 11:11:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e05acd940a06b9c9070c748bdd563a8e0d8550f9
      https://github.com/WebKit/WebKit/commit/e05acd940a06b9c9070c748bdd563a8e0d8550f9
  Author: Rob Buis <rbuis at igalia.com>
  Date:   2024-05-13 (Mon, 13 May 2024)

  Changed paths:
    M Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp
    M Source/WebCore/rendering/svg/SVGBoundingBoxComputation.h
    M Source/WebCore/rendering/svg/SVGContainerLayout.cpp
    M Source/WebCore/rendering/svg/SVGContainerLayout.h
    M Source/WebCore/rendering/svg/SVGLayerTransformComputation.h
    M Source/WebCore/rendering/svg/SVGLayerTransformUpdater.h
    M Source/WebCore/rendering/svg/SVGTextLayoutAttributes.cpp
    M Source/WebCore/rendering/svg/SVGTextLayoutAttributes.h
    M Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
    M Source/WebCore/rendering/svg/SVGTextMetricsBuilder.h

  Log Message:
  -----------
  Use smart pointers for members of SVG classes
https://bugs.webkit.org/show_bug.cgi?id=273061

Reviewed by Chris Dumez.

Use smart pointers for members of SVG classes instead of raw pointers.

* Source/WebCore/rendering/svg/SVGBoundingBoxComputation.cpp:
(WebCore::SVGBoundingBoxComputation::handleShapeOrTextOrInline const):
(WebCore::SVGBoundingBoxComputation::handleRootOrContainer const):
(WebCore::SVGBoundingBoxComputation::handleForeignObjectOrImage const):
(WebCore::SVGBoundingBoxComputation::adjustBoxForClippingAndEffects const):
* Source/WebCore/rendering/svg/SVGBoundingBoxComputation.h:
* Source/WebCore/rendering/svg/SVGContainerLayout.cpp:
(WebCore::SVGContainerLayout::layoutChildren):
(WebCore::SVGContainerLayout::positionChildrenRelativeToContainer):
(WebCore::SVGContainerLayout::layoutSizeOfNearestViewportChanged const):
* Source/WebCore/rendering/svg/SVGContainerLayout.h:
* Source/WebCore/rendering/svg/SVGLayerTransformComputation.h:
(WebCore::SVGLayerTransformComputation::computeAccumulatedTransform const):
(WebCore::SVGLayerTransformComputation::calculateScreenFontSizeScalingFactor const):
* Source/WebCore/rendering/svg/SVGLayerTransformUpdater.h:
(WebCore::SVGLayerTransformUpdater::SVGLayerTransformUpdater):
(WebCore::SVGLayerTransformUpdater::~SVGLayerTransformUpdater):
(WebCore::SVGLayerTransformUpdater::layerTransformChanged const):
* Source/WebCore/rendering/svg/SVGTextLayoutAttributes.cpp:
(WebCore::SVGTextLayoutAttributes::context):
(WebCore::SVGTextLayoutAttributes::context const):
* Source/WebCore/rendering/svg/SVGTextLayoutAttributes.h:
(WebCore::SVGTextLayoutAttributes::context): Deleted.
(WebCore::SVGTextLayoutAttributes::context const): Deleted.
* Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp:
(WebCore::SVGTextMetricsBuilder::SVGTextMetricsBuilder):
* Source/WebCore/rendering/svg/SVGTextMetricsBuilder.h:

Canonical link: https://commits.webkit.org/278697@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