| File: | Volumes/Data/worker/Apple-iOS-26-Safer-CPP-Checks-EWS/build/Source/WebCore/rendering/svg/RenderSVGImage.cpp |
| Warning: | line 79, column 22 Local variable 'cachedImage' is uncounted and unsafe |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
| 1 | /* |
| 2 | * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 3 | * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 4 | * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 5 | * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 6 | * Copyright (C) 2009 Google, Inc. |
| 7 | * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 | * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> |
| 9 | * Copyright (c) 2020, 2021, 2022 Igalia S.L. |
| 10 | * |
| 11 | * This library is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU Library General Public |
| 13 | * License as published by the Free Software Foundation; either |
| 14 | * version 2 of the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This library is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 19 | * Library General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU Library General Public License |
| 22 | * along with this library; see the file COPYING.LIB. If not, write to |
| 23 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 | * Boston, MA 02110-1301, USA. |
| 25 | */ |
| 26 | |
| 27 | #include "config.h" |
| 28 | #include "RenderSVGImage.h" |
| 29 | |
| 30 | #include "AXObjectCache.h" |
| 31 | #include "BitmapImage.h" |
| 32 | #include "GeometryUtilities.h" |
| 33 | #include "GraphicsContext.h" |
| 34 | #include "HitTestResult.h" |
| 35 | #include "ImageBuffer.h" |
| 36 | #include "ImageQualityController.h" |
| 37 | #include "LayoutRepainter.h" |
| 38 | #include "PointerEventsHitRules.h" |
| 39 | #include "RenderElementStyleInlines.h" |
| 40 | #include "RenderImageResource.h" |
| 41 | #include "RenderLayer.h" |
| 42 | #include "RenderObjectInlines.h" |
| 43 | #include "RenderSVGModelObjectInlines.h" |
| 44 | #include "SVGElementTypeHelpers.h" |
| 45 | #include "SVGImageElement.h" |
| 46 | #include "SVGVisitedRendererTracking.h" |
| 47 | #include "Settings.h" |
| 48 | #include <wtf/StackStats.h> |
| 49 | #include <wtf/TZoneMallocInlines.h> |
| 50 | |
| 51 | namespace WebCore { |
| 52 | |
| 53 | WTF_MAKE_TZONE_ALLOCATED_IMPL(RenderSVGImage)::bmalloc::api::HeapRef RenderSVGImage::s_heapRef; const TZoneSpecification RenderSVGImage::s_heapSpec = { &RenderSVGImage::s_heapRef , TZoneSpecification::encodeSize<RenderSVGImage>(), TZoneSpecification ::encodeAlignment<RenderSVGImage>(), TZoneSpecification ::encodeCategory<RenderSVGImage>(), ::bmalloc::api::compactAllocationMode <RenderSVGImage>(), TZoneSpecification::encodeDescriptor <RenderSVGImage>(), }; void* RenderSVGImage::operatorNewSlow (size_t size) { if constexpr (::bmalloc::api::compactAllocationMode <RenderSVGImage>() == CompactAllocationMode::Compact) return ::bmalloc::api::tzoneAllocateCompactSlow(size, s_heapSpec); return ::bmalloc::api::tzoneAllocateNonCompactSlow(size, s_heapSpec ); } using __makeBtzoneMallocedInlineMacroSemicolonifier __attribute__ ((unused)) = int; |
| 54 | |
| 55 | RenderSVGImage::RenderSVGImage(SVGImageElement& element, RenderStyle&& style) |
| 56 | : RenderSVGModelObject(Type::SVGImage, element, WTF::move(style)) |
| 57 | , m_imageResource(makeUniqueRef<RenderImageResource>()) |
| 58 | { |
| 59 | ASSERT(isRenderSVGImage())((void)0); |
| 60 | imageResource().initialize(*this); |
| 61 | } |
| 62 | |
| 63 | RenderSVGImage::~RenderSVGImage() = default; |
| 64 | |
| 65 | void RenderSVGImage::willBeDestroyed() |
| 66 | { |
| 67 | imageResource().willBeDestroyed(); |
| 68 | RenderSVGModelObject::willBeDestroyed(); |
| 69 | } |
| 70 | |
| 71 | SVGImageElement& RenderSVGImage::imageElement() const |
| 72 | { |
| 73 | return downcast<SVGImageElement>(RenderSVGModelObject::element()); |
| 74 | } |
| 75 | |
| 76 | FloatRect RenderSVGImage::calculateObjectBoundingBox() const |
| 77 | { |
| 78 | LayoutSize intrinsicSize; |
| 79 | if (CachedImage* cachedImage = imageResource().cachedImage()) |
Local variable 'cachedImage' is uncounted and unsafe | |
| 80 | intrinsicSize = cachedImage->imageSizeForRenderer(nullptr, style().usedZoom()); |
| 81 | |
| 82 | Ref imageElement = this->imageElement(); |
| 83 | SVGLengthContext lengthContext(imageElement.ptr()); |
| 84 | |
| 85 | CheckedRef style = this->style(); |
| 86 | auto& width = style->width(); |
| 87 | auto& height = style->height(); |
| 88 | auto usedZoom = style->usedZoomForLength(); |
| 89 | |
| 90 | float concreteWidth; |
| 91 | if (!width.isAuto()) |
| 92 | concreteWidth = lengthContext.valueForLength(width, usedZoom, SVGLengthMode::Width); |
| 93 | else if (!height.isAuto() && !intrinsicSize.isEmpty()) |
| 94 | concreteWidth = lengthContext.valueForLength(height, usedZoom, SVGLengthMode::Height) * intrinsicSize.width() / intrinsicSize.height(); |
| 95 | else |
| 96 | concreteWidth = intrinsicSize.width(); |
| 97 | |
| 98 | float concreteHeight; |
| 99 | if (!height.isAuto()) |
| 100 | concreteHeight = lengthContext.valueForLength(height, usedZoom, SVGLengthMode::Height); |
| 101 | else if (!width.isAuto() && !intrinsicSize.isEmpty()) |
| 102 | concreteHeight = lengthContext.valueForLength(width, usedZoom, SVGLengthMode::Width) * intrinsicSize.height() / intrinsicSize.width(); |
| 103 | else |
| 104 | concreteHeight = intrinsicSize.height(); |
| 105 | |
| 106 | return { imageElement->x().value(lengthContext), imageElement->y().value(lengthContext), concreteWidth, concreteHeight }; |
| 107 | } |
| 108 | |
| 109 | void RenderSVGImage::layout() |
| 110 | { |
| 111 | StackStats::LayoutCheckPoint layoutCheckPoint; |
| 112 | |
| 113 | LayoutRepainter repainter(*this); |
| 114 | |
| 115 | updateImageViewport(); |
| 116 | setCurrentSVGLayoutRect(enclosingLayoutRect(m_objectBoundingBox)); |
| 117 | m_cachedVisualOverflowRect = std::nullopt; |
| 118 | |
| 119 | updateLayerTransform(); |
| 120 | |
| 121 | repainter.repaintAfterLayout(); |
| 122 | clearNeedsLayout(); |
| 123 | } |
| 124 | |
| 125 | void RenderSVGImage::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 126 | { |
| 127 | OptionSet<PaintPhase> relevantPaintPhases { PaintPhase::Foreground, PaintPhase::ClippingMask, PaintPhase::Mask, PaintPhase::Outline, PaintPhase::SelfOutline }; |
| 128 | if (!shouldPaintSVGRenderer(paintInfo, relevantPaintPhases) || !imageResource().cachedImage()) |
| 129 | return; |
| 130 | |
| 131 | if (paintInfo.phase == PaintPhase::ClippingMask) { |
| 132 | paintSVGClippingMask(paintInfo, objectBoundingBox()); |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | auto adjustedPaintOffset = paintOffset + currentSVGLayoutLocation(); |
| 137 | if (paintInfo.phase == PaintPhase::Mask) { |
| 138 | paintSVGMask(paintInfo, adjustedPaintOffset); |
| 139 | return; |
| 140 | } |
| 141 | |
| 142 | auto visualOverflowRect = visualOverflowRectEquivalent(); |
| 143 | visualOverflowRect.moveBy(adjustedPaintOffset); |
| 144 | if (!visualOverflowRect.intersects(paintInfo.rect)) |
| 145 | return; |
| 146 | |
| 147 | GraphicsContextStateSaver stateSaver(paintInfo.context()); |
| 148 | |
| 149 | if (paintInfo.phase == PaintPhase::Outline || paintInfo.phase == PaintPhase::SelfOutline) { |
| 150 | paintInfo.context().resetClip(); |
| 151 | paintSVGOutline(paintInfo, adjustedPaintOffset); |
| 152 | return; |
| 153 | } |
| 154 | |
| 155 | ASSERT(paintInfo.phase == PaintPhase::Foreground)((void)0); |
| 156 | |
| 157 | auto coordinateSystemOriginTranslation = adjustedPaintOffset - flooredLayoutPoint(objectBoundingBox().location()); |
| 158 | paintInfo.context().translate(coordinateSystemOriginTranslation.width(), coordinateSystemOriginTranslation.height()); |
| 159 | |
| 160 | if (style().bufferedRendering() == BufferedRendering::Static && bufferForeground(paintInfo, flooredLayoutPoint(objectBoundingBox().location()))) |
| 161 | return; |
| 162 | |
| 163 | paintForeground(paintInfo, flooredLayoutPoint(objectBoundingBox().location())); |
| 164 | } |
| 165 | |
| 166 | ImageDrawResult RenderSVGImage::paintIntoRect(PaintInfo& paintInfo, const FloatRect& rect, const FloatRect& sourceRect) |
| 167 | { |
| 168 | if (!imageResource().cachedImage() || rect.width() <= 0 || rect.height() <= 0) |
| 169 | return ImageDrawResult::DidNothing; |
| 170 | |
| 171 | RefPtr<Image> image = imageResource().image(); |
| 172 | if (!image || image->isNull()) |
| 173 | return ImageDrawResult::DidNothing; |
| 174 | |
| 175 | ImagePaintingOptions options { |
| 176 | CompositeOperator::SourceOver, |
| 177 | DecodingMode::Synchronous, |
| 178 | imageOrientation(), |
| 179 | ImageQualityController::chooseInterpolationQualityForSVG(paintInfo.context(), *this, *image), |
| 180 | settings().imageSubsamplingEnabled() ? AllowImageSubsampling::Yes : AllowImageSubsampling::No, |
| 181 | settings().showDebugBorders() ? ShowDebugBackground::Yes : ShowDebugBackground::No |
| 182 | }; |
| 183 | |
| 184 | auto drawResult = paintInfo.context().drawImage(*image, rect, sourceRect, options); |
| 185 | if (drawResult == ImageDrawResult::DidRequestDecoding) |
| 186 | imageResource().cachedImage()->addClientWaitingForAsyncDecoding(cachedImageClient()); |
| 187 | |
| 188 | return drawResult; |
| 189 | } |
| 190 | |
| 191 | void RenderSVGImage::paintForeground(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 192 | { |
| 193 | GraphicsContext& context = paintInfo.context(); |
| 194 | if (context.invalidatingImagesWithAsyncDecodes()) { |
| 195 | if (cachedImage() && cachedImage()->isClientWaitingForAsyncDecoding(cachedImageClient())) |
| 196 | cachedImage()->removeAllClientsWaitingForAsyncDecoding(); |
| 197 | return; |
| 198 | } |
| 199 | |
| 200 | if (!imageResource().cachedImage()) { |
| 201 | page().addRelevantUnpaintedObject(*this, visualOverflowRectEquivalent()); |
| 202 | return; |
| 203 | } |
| 204 | |
| 205 | RefPtr<Image> image = imageResource().image(); |
| 206 | if (!image || image->isNull()) { |
| 207 | page().addRelevantUnpaintedObject(*this, visualOverflowRectEquivalent()); |
| 208 | return; |
| 209 | } |
| 210 | |
| 211 | FloatRect contentBoxRect = borderBoxRectEquivalent(); |
| 212 | FloatRect replacedContentRect(0, 0, image->width(), image->height()); |
| 213 | protect(imageElement())->preserveAspectRatio().transformRect(contentBoxRect, replacedContentRect); |
| 214 | |
| 215 | contentBoxRect.moveBy(paintOffset); |
| 216 | |
| 217 | ImageDrawResult result = paintIntoRect(paintInfo, contentBoxRect, replacedContentRect); |
| 218 | |
| 219 | if (cachedImage() && !context.paintingDisabled()) { |
| 220 | // For now, count images as unpainted if they are still progressively loading. We may want |
| 221 | // to refine this in the future to account for the portion of the image that has painted. |
| 222 | replacedContentRect.moveBy(paintOffset); |
| 223 | auto visibleRect = intersection(replacedContentRect, contentBoxRect); |
| 224 | if (cachedImage()->isLoading() || result == ImageDrawResult::DidRequestDecoding) |
| 225 | page().addRelevantUnpaintedObject(*this, enclosingLayoutRect(visibleRect)); |
| 226 | else |
| 227 | page().addRelevantRepaintedObject(*this, enclosingLayoutRect(visibleRect)); |
| 228 | |
| 229 | auto localVisibleRect = visibleRect; |
| 230 | localVisibleRect.moveBy(-paintOffset); |
| 231 | protect(document())->didPaintImage(protect(imageElement()).get(), cachedImage(), localVisibleRect); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | bool RenderSVGImage::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) |
| 236 | { |
| 237 | if (hitTestAction != HitTestForeground) |
| 238 | return false; |
| 239 | |
| 240 | auto adjustedLocation = accumulatedOffset + currentSVGLayoutLocation(); |
| 241 | |
| 242 | auto visualOverflowRect = visualOverflowRectEquivalent(); |
| 243 | visualOverflowRect.moveBy(adjustedLocation); |
| 244 | if (!locationInContainer.intersects(visualOverflowRect)) |
| 245 | return false; |
| 246 | |
| 247 | static NeverDestroyed<SVGVisitedRendererTracking::VisitedSet> s_visitedSet; |
| 248 | |
| 249 | SVGVisitedRendererTracking recursionTracking(s_visitedSet); |
| 250 | if (recursionTracking.isVisiting(*this)) |
| 251 | return false; |
| 252 | |
| 253 | SVGVisitedRendererTracking::Scope recursionScope(recursionTracking, *this); |
| 254 | |
| 255 | auto localPoint = locationInContainer.point(); |
| 256 | auto boundingBoxTopLeftCorner = flooredLayoutPoint(objectBoundingBox().minXMinYCorner()); |
| 257 | auto coordinateSystemOriginTranslation = boundingBoxTopLeftCorner - adjustedLocation; |
| 258 | localPoint.move(coordinateSystemOriginTranslation); |
| 259 | |
| 260 | if (!pointInSVGClippingArea(localPoint)) |
| 261 | return false; |
| 262 | |
| 263 | PointerEventsHitRules hitRules(PointerEventsHitRules::HitTestingTargetType::SVGImage, request, style().pointerEvents()); |
| 264 | if (request.isVisibleForStyle(style()) || !hitRules.requireVisible) { |
| 265 | if (hitRules.canHitFill) { |
| 266 | if (m_objectBoundingBox.contains(localPoint)) { |
| 267 | updateHitTestResult(result, locationInContainer.point() - toLayoutSize(adjustedLocation)); |
| 268 | if (result.addNodeToListBasedTestResult(protect(nodeForHitTest()).get(), request, locationInContainer, visualOverflowRect) == HitTestProgress::Stop) |
| 269 | return true; |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | return false; |
| 275 | } |
| 276 | |
| 277 | bool RenderSVGImage::updateImageViewport() |
| 278 | { |
| 279 | auto oldBoundaries = m_objectBoundingBox; |
| 280 | m_objectBoundingBox = calculateObjectBoundingBox(); |
| 281 | |
| 282 | bool updatedViewport = false; |
| 283 | Ref imageElement = this->imageElement(); |
| 284 | URL imageSourceURL = document().completeURL(imageElement->imageSourceURL()); |
| 285 | |
| 286 | // Images with preserveAspectRatio=none should force non-uniform scaling. This can be achieved |
| 287 | // by setting the image's container size to its intrinsic size. |
| 288 | // See: http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute. |
| 289 | if (imageElement->preserveAspectRatio().align() == SVGPreserveAspectRatioValue::SVG_PRESERVEASPECTRATIO_NONE) { |
| 290 | if (CachedImage* cachedImage = imageResource().cachedImage()) { |
| 291 | LayoutSize intrinsicSize = cachedImage->imageSizeForRenderer(nullptr, style().usedZoom()); |
| 292 | if (intrinsicSize != imageResource().imageSize(style().usedZoom())) { |
| 293 | imageResource().setContainerContext(roundedIntSize(intrinsicSize), imageSourceURL); |
| 294 | updatedViewport = true; |
| 295 | } |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | if (oldBoundaries != m_objectBoundingBox) { |
| 300 | if (!updatedViewport) |
| 301 | imageResource().setContainerContext(enclosingIntRect(m_objectBoundingBox).size(), imageSourceURL); |
| 302 | updatedViewport = true; |
| 303 | } |
| 304 | |
| 305 | return updatedViewport; |
| 306 | } |
| 307 | |
| 308 | void RenderSVGImage::repaintOrMarkForLayout(const IntRect* rect) |
| 309 | { |
| 310 | // Update the SVGImageCache sizeAndScales entry in case image loading finished after layout. |
| 311 | // (https://bugs.webkit.org/show_bug.cgi?id=99489) |
| 312 | m_objectBoundingBox = FloatRect(); |
| 313 | if (updateImageViewport()) |
| 314 | setNeedsLayout(); |
| 315 | |
| 316 | m_bufferedForeground = nullptr; |
| 317 | |
| 318 | FloatRect repaintRect = borderBoxRectEquivalent(); |
| 319 | if (rect) { |
| 320 | // The image changed rect is in source image coordinates (pre-zooming), |
| 321 | // so map from the bounds of the image to the contentsBox. |
| 322 | repaintRect.intersect(enclosingIntRect(mapRect(*rect, FloatRect(FloatPoint(), imageResource().imageSize(1.0f)), repaintRect))); |
| 323 | } |
| 324 | |
| 325 | repaintRectangle(enclosingLayoutRect(repaintRect)); |
| 326 | |
| 327 | // Tell any potential compositing layers that the image needs updating. |
| 328 | if (hasLayer()) |
| 329 | layer()->contentChanged(ContentChangeType::Image); |
| 330 | } |
| 331 | |
| 332 | void RenderSVGImage::notifyFinished(CachedResource& newImage, const NetworkLoadMetrics& metrics, LoadWillContinueInAnotherProcess loadWillContinueInAnotherProcess) |
| 333 | { |
| 334 | if (renderTreeBeingDestroyed()) |
| 335 | return; |
| 336 | |
| 337 | invalidateBackgroundObscurationStatus(); |
| 338 | |
| 339 | if (&newImage == cachedImage()) { |
| 340 | // tell any potential compositing layers |
| 341 | // that the image is done and they can reference it directly. |
| 342 | if (hasLayer()) |
| 343 | layer()->contentChanged(ContentChangeType::Image); |
| 344 | } |
| 345 | |
| 346 | RenderSVGModelObject::notifyFinished(newImage, metrics, loadWillContinueInAnotherProcess); |
| 347 | } |
| 348 | |
| 349 | void RenderSVGImage::imageChanged(WrappedImagePtr newImage, const IntRect* rect) |
| 350 | { |
| 351 | if (renderTreeBeingDestroyed() || !parent()) |
| 352 | return; |
| 353 | |
| 354 | repaintClientsOfReferencedSVGResources(); |
| 355 | |
| 356 | if (hasVisibleBoxDecorations() || hasMask() || hasShapeOutside()) |
| 357 | RenderSVGModelObject::imageChanged(newImage, rect); |
| 358 | |
| 359 | if (newImage != imageResource().imagePtr() || !newImage) |
| 360 | return; |
| 361 | |
| 362 | repaintOrMarkForLayout(rect); |
| 363 | |
| 364 | if (CheckedPtr cache = document().existingAXObjectCache()) |
| 365 | cache->deferRecomputeIsIgnoredIfNeeded(protect(imageElement()).ptr()); |
| 366 | |
| 367 | if (auto* image = imageResource().cachedImage(); image && image->currentFrameIsComplete(this)) { |
| 368 | if (auto styleable = Styleable::fromRenderer(*this)) |
| 369 | protect(document())->didLoadImage(protect(styleable->element).get(), image); |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | bool RenderSVGImage::bufferForeground(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 374 | { |
| 375 | auto& destinationContext = paintInfo.context(); |
| 376 | |
| 377 | auto repaintBoundingBox = borderBoxRectEquivalent(); |
| 378 | repaintBoundingBox.moveBy(paintOffset); |
| 379 | |
| 380 | // Invalidate an existing buffer if the scale is not correct. |
| 381 | const auto& absoluteTransform = destinationContext.getCTM(GraphicsContext::DefinitelyIncludeDeviceScale); |
| 382 | |
| 383 | auto absoluteTargetRect = enclosingIntRect(absoluteTransform.mapRect(repaintBoundingBox)); |
| 384 | if (m_bufferedForeground) { |
| 385 | if (absoluteTargetRect.size() != m_bufferedForeground->backendSize()) |
| 386 | m_bufferedForeground = nullptr; |
| 387 | else { |
| 388 | const auto& absoluteTransformBuffer = m_bufferedForeground->context().getCTM(GraphicsContext::DefinitelyIncludeDeviceScale); |
| 389 | if (absoluteTransformBuffer != absoluteTransform) |
| 390 | m_bufferedForeground = nullptr; |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | // Create a new buffer and paint the foreground into it. |
| 395 | if (!m_bufferedForeground) { |
| 396 | m_bufferedForeground = destinationContext.createAlignedImageBuffer(expandedIntSize(repaintBoundingBox.size())); |
| 397 | if (!m_bufferedForeground) |
| 398 | return false; |
| 399 | } |
| 400 | |
| 401 | auto& bufferedContext = m_bufferedForeground->context(); |
| 402 | bufferedContext.clearRect(absoluteTargetRect); |
| 403 | |
| 404 | PaintInfo bufferedInfo(paintInfo); |
| 405 | bufferedInfo.setContext(bufferedContext); |
| 406 | paintForeground(bufferedInfo, paintOffset); |
| 407 | |
| 408 | destinationContext.concatCTM(absoluteTransform.inverse().value_or(AffineTransform())); |
| 409 | RefPtr bufferedForeground = m_bufferedForeground.copyRef(); |
| 410 | destinationContext.drawImageBuffer(*bufferedForeground, absoluteTargetRect); |
| 411 | destinationContext.concatCTM(absoluteTransform); |
| 412 | |
| 413 | return true; |
| 414 | } |
| 415 | |
| 416 | bool RenderSVGImage::needsHasSVGTransformFlags() const |
| 417 | { |
| 418 | return protect(imageElement())->hasTransformRelatedAttributes(); |
| 419 | } |
| 420 | |
| 421 | void RenderSVGImage::applyTransform(TransformationMatrix& transform, const RenderStyle& style, const FloatRect& boundingBox, OptionSet<Style::TransformResolverOption> options) const |
| 422 | { |
| 423 | applySVGTransform(transform, protect(imageElement()), style, boundingBox, std::nullopt, std::nullopt, options); |
| 424 | } |
| 425 | |
| 426 | } // namespace WebCore |