Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: Source/core/css/CSSGradientValue.h

Issue 249363002: Use macros instead of specializing VectorTraits explicitly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/CSSProperty.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGradientValue.h
diff --git a/Source/core/css/CSSGradientValue.h b/Source/core/css/CSSGradientValue.h
index 4ba5d843f245ada8f68f5740ec2739ba0e6e2baf..ff1df831ea78eff23316760cb3a8328ff7c1d452 100644
--- a/Source/core/css/CSSGradientValue.h
+++ b/Source/core/css/CSSGradientValue.h
@@ -74,14 +74,7 @@ public:
// We have to declare the VectorTraits specialization before CSSGradientValue
// declares its inline capacity vector below.
-namespace WTF {
-
-template <> struct VectorTraits<WebCore::CSSGradientColorStop> : VectorTraitsBase<WebCore::CSSGradientColorStop> {
- static const bool canInitializeWithMemset = true;
- static const bool canMoveWithMemcpy = true;
-};
-
-}
+WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(WebCore::CSSGradientColorStop);
namespace WebCore {
« no previous file with comments | « no previous file | Source/core/css/CSSProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698