Title: [295216] trunk/Source/WebCore
Revision
295216
Author
[email protected]
Date
2022-06-03 10:11:25 -0700 (Fri, 03 Jun 2022)

Log Message

[GTK] Fix a couple clang warnings related with DESTINATION_COLOR_SPACE_LINEAR_SRGB and atspi
https://bugs.webkit.org/show_bug.cgi?id=241269

Patch by Philippe Normand <[email protected]> on 2022-06-03
Reviewed by Michael Catanzaro.

* Source/WebCore/accessibility/atspi/AXObjectCacheAtspi.cpp:
(WebCore::AXObjectCache::postPlatformNotification): Add switch case for AXHasPopupChanged, stubbed for now.
* Source/WebCore/platform/graphics/cairo/ImageBufferCairoBackend.cpp:
(WebCore::ImageBufferCairoBackend::transformToColorSpace): makr newColorSpace as unused when
DESTINATION_COLOR_SPACE_LINEAR_SRGB is disabled.
* Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp:
(WebCore::RenderSVGResourceMasker::applyResource): Move svgStyle declaration to
DESTINATION_COLOR_SPACE_LINEAR_SRGB code path.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/accessibility/atspi/AXObjectCacheAtspi.cpp (295215 => 295216)


--- trunk/Source/WebCore/accessibility/atspi/AXObjectCacheAtspi.cpp	2022-06-03 16:30:27 UTC (rev 295215)
+++ trunk/Source/WebCore/accessibility/atspi/AXObjectCacheAtspi.cpp	2022-06-03 17:11:25 UTC (rev 295216)
@@ -201,6 +201,8 @@
         break;
     case AXDescribedByChanged:
         break;
+    case AXHasPopupChanged:
+        break;
     }
 }
 

Modified: trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairoBackend.cpp (295215 => 295216)


--- trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairoBackend.cpp	2022-06-03 16:30:27 UTC (rev 295215)
+++ trunk/Source/WebCore/platform/graphics/cairo/ImageBufferCairoBackend.cpp	2022-06-03 17:11:25 UTC (rev 295216)
@@ -96,6 +96,7 @@
 #else
     ASSERT(newColorSpace == DestinationColorSpace::SRGB());
     ASSERT(m_parameters.colorSpace == DestinationColorSpace::SRGB());
+    UNUSED_PARAM(newColorSpace);
 #endif
 }
 

Modified: trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp (295215 => 295216)


--- trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp	2022-06-03 16:30:27 UTC (rev 295215)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGResourceMasker.cpp	2022-06-03 17:11:25 UTC (rev 295216)
@@ -76,12 +76,11 @@
     ImageBuffer::sizeNeedsClamping(repaintRect.size(), scale);
 
     if (!maskerData->maskImage && !repaintRect.isEmpty()) {
-        const SVGRenderStyle& svgStyle = style().svgStyle();
-
         auto maskColorSpace = DestinationColorSpace::SRGB();
         auto drawColorSpace = DestinationColorSpace::SRGB();
 
 #if ENABLE(DESTINATION_COLOR_SPACE_LINEAR_SRGB)
+        const SVGRenderStyle& svgStyle = style().svgStyle();
         if (svgStyle.colorInterpolation() == ColorInterpolation::LinearRGB) {
 #if USE(CG)
             maskColorSpace = DestinationColorSpace::LinearSRGB();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to