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

Side by Side Diff: Source/core/rendering/style/StyleGridItemData.h

Issue 17601010: [CSS Grid Layout] Rename grid placement properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: missing webposed/ changes Created 7 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class StyleGridItemData : public RefCounted<StyleGridItemData> { 42 class StyleGridItemData : public RefCounted<StyleGridItemData> {
43 public: 43 public:
44 static PassRefPtr<StyleGridItemData> create() { return adoptRef(new StyleGri dItemData); } 44 static PassRefPtr<StyleGridItemData> create() { return adoptRef(new StyleGri dItemData); }
45 PassRefPtr<StyleGridItemData> copy() const { return adoptRef(new StyleGridIt emData(*this)); } 45 PassRefPtr<StyleGridItemData> copy() const { return adoptRef(new StyleGridIt emData(*this)); }
46 46
47 bool operator==(const StyleGridItemData& o) const 47 bool operator==(const StyleGridItemData& o) const
48 { 48 {
49 return m_gridStart == o.m_gridStart && m_gridEnd == o.m_gridEnd 49 return m_gridColumnStart == o.m_gridColumnStart && m_gridColumnEnd == o. m_gridColumnEnd
50 && m_gridBefore == o.m_gridBefore && m_gridAfter == o.m_gridAfter; 50 && m_gridRowStart == o.m_gridRowStart && m_gridRowEnd == o.m_gridRow End;
51 } 51 }
52 52
53 bool operator!=(const StyleGridItemData& o) const 53 bool operator!=(const StyleGridItemData& o) const
54 { 54 {
55 return !(*this == o); 55 return !(*this == o);
56 } 56 }
57 57
58 GridPosition m_gridStart; 58 GridPosition m_gridColumnStart;
59 GridPosition m_gridEnd; 59 GridPosition m_gridColumnEnd;
60 GridPosition m_gridBefore; 60 GridPosition m_gridRowStart;
61 GridPosition m_gridAfter; 61 GridPosition m_gridRowEnd;
62 62
63 private: 63 private:
64 StyleGridItemData(); 64 StyleGridItemData();
65 StyleGridItemData(const StyleGridItemData&); 65 StyleGridItemData(const StyleGridItemData&);
66 }; 66 };
67 67
68 } // namespace WebCore 68 } // namespace WebCore
69 69
70 #endif // StyleGridItemData_h 70 #endif // StyleGridItemData_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.h ('k') | Source/core/rendering/style/StyleGridItemData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698