Title: [291970] trunk/Source/WebCore
- Revision
- 291970
- Author
- [email protected]
- Date
- 2022-03-28 10:04:12 -0700 (Mon, 28 Mar 2022)
Log Message
[GLIB] Fix build error 'not match operator !=' in Ubuntu LTS after r291696
https://bugs.webkit.org/show_bug.cgi?id=238443
Reviewed by Adrian Perez de Castro.
The error was also happening in build bots using GCC 8.3 like Debian
Stable.
* platform/graphics/GraphicsTypes.h:
(WebCore::operator==):
(WebCore::operator!=):
(WebCore::CompositeMode::operator==): Deleted.
* platform/graphics/SourceBrush.h:
(WebCore::operator!=):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (291969 => 291970)
--- trunk/Source/WebCore/ChangeLog 2022-03-28 16:43:04 UTC (rev 291969)
+++ trunk/Source/WebCore/ChangeLog 2022-03-28 17:04:12 UTC (rev 291970)
@@ -1,3 +1,20 @@
+2022-03-28 Diego Pino Garcia <[email protected]>
+
+ [GLIB] Fix build error 'not match operator !=' in Ubuntu LTS after r291696
+ https://bugs.webkit.org/show_bug.cgi?id=238443
+
+ Reviewed by Adrian Perez de Castro.
+
+ The error was also happening in build bots using GCC 8.3 like Debian
+ Stable.
+
+ * platform/graphics/GraphicsTypes.h:
+ (WebCore::operator==):
+ (WebCore::operator!=):
+ (WebCore::CompositeMode::operator==): Deleted.
+ * platform/graphics/SourceBrush.h:
+ (WebCore::operator!=):
+
2022-03-28 Youenn Fablet <[email protected]>
ImageTransferSessionVT::setSize should properly create its buffer pool
Modified: trunk/Source/WebCore/platform/graphics/GraphicsTypes.h (291969 => 291970)
--- trunk/Source/WebCore/platform/graphics/GraphicsTypes.h 2022-03-28 16:43:04 UTC (rev 291969)
+++ trunk/Source/WebCore/platform/graphics/GraphicsTypes.h 2022-03-28 17:04:12 UTC (rev 291970)
@@ -80,15 +80,20 @@
CompositeOperator operation;
BlendMode blendMode;
- bool operator==(const CompositeMode& other)
- {
- return operation == other.operation && blendMode == other.blendMode;
- }
-
template<class Encoder> void encode(Encoder&) const;
template<class Decoder> static std::optional<CompositeMode> decode(Decoder&);
};
+inline bool operator==(const CompositeMode& a, const CompositeMode& b)
+{
+ return a.operation == b.operation && a.blendMode == b.blendMode;
+}
+
+inline bool operator!=(const CompositeMode& a, const CompositeMode& b)
+{
+ return !(a == b);
+}
+
template<class Encoder>
void CompositeMode::encode(Encoder& encoder) const
{
@@ -175,6 +180,11 @@
return a.offset == b.offset && a.blurRadius == b.blurRadius && a.color == b.color && a.radiusMode == b.radiusMode;
}
+inline bool operator!=(const DropShadow& a, const DropShadow& b)
+{
+ return !(a == b);
+}
+
template<class Encoder>
void DropShadow::encode(Encoder& encoder) const
{
Modified: trunk/Source/WebCore/platform/graphics/SourceBrush.h (291969 => 291970)
--- trunk/Source/WebCore/platform/graphics/SourceBrush.h 2022-03-28 16:43:04 UTC (rev 291969)
+++ trunk/Source/WebCore/platform/graphics/SourceBrush.h 2022-03-28 17:04:12 UTC (rev 291970)
@@ -79,6 +79,11 @@
return a.gradient.ptr() == b.gradient.ptr() && a.spaceTransform == b.spaceTransform;
}
+inline bool operator!=(const SourceBrush::Brush::LogicalGradient& a, const SourceBrush::Brush::LogicalGradient& b)
+{
+ return !(a == b);
+}
+
inline bool operator==(const SourceBrush::Brush& a, const SourceBrush::Brush& b)
{
return WTF::switchOn(a.brush,
@@ -95,11 +100,21 @@
);
}
+inline bool operator!=(const SourceBrush::Brush& a, const SourceBrush::Brush& b)
+{
+ return !(a == b);
+}
+
inline bool operator==(const SourceBrush& a, const SourceBrush& b)
{
return a.color() == b.color() && a.brush() == b.brush();
}
+inline bool operator!=(const SourceBrush& a, const SourceBrush& b)
+{
+ return !(a == b);
+}
+
template<typename Encoder>
void SourceBrush::Brush::LogicalGradient::encode(Encoder& encoder) const
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes