| Index: Source/core/rendering/style/GridCoordinate.h
|
| diff --git a/Source/core/rendering/style/GridCoordinate.h b/Source/core/rendering/style/GridCoordinate.h
|
| index a55b7fb79ae705980ce250cfbf3fcb6578c36670..ec0d890a43bafffc23d2e0e630d1228960b9f8b8 100644
|
| --- a/Source/core/rendering/style/GridCoordinate.h
|
| +++ b/Source/core/rendering/style/GridCoordinate.h
|
| @@ -31,7 +31,9 @@
|
| #ifndef GridCoordinate_h
|
| #define GridCoordinate_h
|
|
|
| +#include "wtf/HashMap.h"
|
| #include "wtf/PassOwnPtr.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -51,6 +53,11 @@ struct GridSpan {
|
| ASSERT(initialPositionIndex <= finalPositionIndex);
|
| }
|
|
|
| + bool operator==(const GridSpan& o) const
|
| + {
|
| + return initialPositionIndex == o.initialPositionIndex && finalPositionIndex == o.finalPositionIndex;
|
| + }
|
| +
|
| size_t initialPositionIndex;
|
| size_t finalPositionIndex;
|
| };
|
| @@ -70,10 +77,22 @@ struct GridCoordinate {
|
| {
|
| }
|
|
|
| + bool operator==(const GridCoordinate& o) const
|
| + {
|
| + return columns == o.columns && rows == o.rows;
|
| + }
|
| +
|
| + bool operator!=(const GridCoordinate& o) const
|
| + {
|
| + return !(*this == o);
|
| + }
|
| +
|
| GridSpan columns;
|
| GridSpan rows;
|
| };
|
|
|
| +typedef HashMap<String, GridCoordinate> NamedGridAreaMap;
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // GridCoordinate_h
|
|
|