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

Unified Diff: Source/core/rendering/style/GridResolvedPosition.h

Issue 235663004: [CSS Grid Layout] Add GridSpan::iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patch 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 | « Source/core/rendering/style/GridCoordinate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/GridResolvedPosition.h
diff --git a/Source/core/rendering/style/GridResolvedPosition.h b/Source/core/rendering/style/GridResolvedPosition.h
index e9a32a2164fa6471e125c95cc576edd9b53c629b..9de016b8d2e97f58e9457c3eea7a5f83d2f65ee1 100644
--- a/Source/core/rendering/style/GridResolvedPosition.h
+++ b/Source/core/rendering/style/GridResolvedPosition.h
@@ -74,6 +74,11 @@ public:
return m_integerPosition == other.m_integerPosition;
}
+ bool operator!=(const GridResolvedPosition& other) const
+ {
+ return m_integerPosition != other.m_integerPosition;
+ }
+
bool operator<(const GridResolvedPosition& other) const
{
return m_integerPosition < other.m_integerPosition;
@@ -99,6 +104,11 @@ public:
return m_integerPosition;
}
+ GridResolvedPosition next() const
+ {
+ return GridResolvedPosition(m_integerPosition + 1);
+ }
+
static size_t explicitGridColumnCount(const RenderStyle&);
static size_t explicitGridRowCount(const RenderStyle&);
« no previous file with comments | « Source/core/rendering/style/GridCoordinate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698