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

Unified Diff: Source/core/rendering/RenderGrid.cpp

Issue 654933004: Remove now-unnecessary VectorTraits specializations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
Index: Source/core/rendering/RenderGrid.cpp
diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp
index a459c51506629a0765ae64109fd4ab4de0e1b92e..3176096c22ee9f1ff4ed8027fda47a3300d56eca 100644
--- a/Source/core/rendering/RenderGrid.cpp
+++ b/Source/core/rendering/RenderGrid.cpp
@@ -33,7 +33,6 @@
#include "core/rendering/style/GridCoordinate.h"
#include "core/rendering/style/RenderStyle.h"
#include "platform/LengthFunctions.h"
-#include "wtf/VectorTraits.h"
namespace blink {
@@ -696,22 +695,6 @@ private:
size_t m_span;
};
-} // namespace blink
-
-namespace WTF {
-
-template<>
-struct VectorTraits<blink::GridItemWithSpan> : SimpleClassVectorTraits<blink::GridItemWithSpan> {
- // needsDestruction is by default defined in terms of IsPod<>, but as
- // it doesn't handle embedded structs/enums (e.g., GridCoordinate),
- // override it here.
- static const bool needsDestruction = false;
-};
-
-} // namespace WTF
-
-namespace blink {
-
void RenderGrid::resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection direction, GridSizingData& sizingData, LayoutUnit& availableLogicalSpace)
{
sizingData.itemsSortedByIncreasingSpan.shrink(0);

Powered by Google App Engine
This is Rietveld 408576698