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

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: Updated to just use improved VectorTraits.h 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
« no previous file with comments | « Source/core/html/canvas/WebGLVertexArrayObjectOES.h ('k') | Source/core/rendering/RenderTableSection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderGrid.cpp
diff --git a/Source/core/rendering/RenderGrid.cpp b/Source/core/rendering/RenderGrid.cpp
index 1a6669f2c704a11c5a7ba5f9029fe7c530577e18..20261e8abb847a3f052d982dd12f856ba9a9bec9 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 {
-
bool RenderGrid::spanningItemCrossesFlexibleSizedTracks(const GridCoordinate& coordinate, GridTrackSizingDirection direction) const
{
const GridResolvedPosition initialTrackPosition = (direction == ForColumns) ? coordinate.columns.resolvedInitialPosition : coordinate.rows.resolvedInitialPosition;
« no previous file with comments | « Source/core/html/canvas/WebGLVertexArrayObjectOES.h ('k') | Source/core/rendering/RenderTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698