Title: [264593] trunk/Source/WebCore
Revision
264593
Author
[email protected]
Date
2020-07-20 01:37:28 -0700 (Mon, 20 Jul 2020)

Log Message

Use forward template declarations for ColorComponents instead of including ColorComponents.h
https://bugs.webkit.org/show_bug.cgi?id=214540

Reviewed by Darin Adler.

* platform/graphics/ColorMatrix.h:
* platform/graphics/ColorTypes.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (264592 => 264593)


--- trunk/Source/WebCore/ChangeLog	2020-07-20 08:24:51 UTC (rev 264592)
+++ trunk/Source/WebCore/ChangeLog	2020-07-20 08:37:28 UTC (rev 264593)
@@ -1,3 +1,13 @@
+2020-07-20  Fujii Hironori  <[email protected]>
+
+        Use forward template declarations for ColorComponents instead of including ColorComponents.h
+        https://bugs.webkit.org/show_bug.cgi?id=214540
+
+        Reviewed by Darin Adler.
+
+        * platform/graphics/ColorMatrix.h:
+        * platform/graphics/ColorTypes.h:
+
 2020-07-19  Lauro Moura  <[email protected]>
 
         Unreviewed, fix GTK build in Debian/LTS

Modified: trunk/Source/WebCore/platform/graphics/ColorMatrix.h (264592 => 264593)


--- trunk/Source/WebCore/platform/graphics/ColorMatrix.h	2020-07-20 08:24:51 UTC (rev 264592)
+++ trunk/Source/WebCore/platform/graphics/ColorMatrix.h	2020-07-20 08:37:28 UTC (rev 264593)
@@ -25,12 +25,13 @@
 
 #pragma once
 
-#include "ColorComponents.h"
 #include <math.h>
 #include <wtf/MathExtras.h>
 
 namespace WebCore {
 
+template<typename> struct ColorComponents;
+
 template<size_t Columns, size_t Rows>
 class ColorMatrix {
 public:

Modified: trunk/Source/WebCore/platform/graphics/ColorTypes.h (264592 => 264593)


--- trunk/Source/WebCore/platform/graphics/ColorTypes.h	2020-07-20 08:24:51 UTC (rev 264592)
+++ trunk/Source/WebCore/platform/graphics/ColorTypes.h	2020-07-20 08:37:28 UTC (rev 264593)
@@ -25,11 +25,11 @@
 
 #pragma once
 
-#include "ColorComponents.h"
 #include "ColorSpace.h"
 
 namespace WebCore {
 
+template<typename> struct ColorComponents;
 template<typename> struct ComponentTraits;
 
 template<> struct ComponentTraits<uint8_t> {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to