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

Side by Side Diff: Source/core/rendering/OrderIterator.h

Issue 18516007: Add support for 'order' on grid items (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Squashed the 2 constructors per Ojan's review comment 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 19 matching lines...) Expand all
30 30
31 #ifndef OrderIterator_h 31 #ifndef OrderIterator_h
32 #define OrderIterator_h 32 #define OrderIterator_h
33 33
34 #include "wtf/Noncopyable.h" 34 #include "wtf/Noncopyable.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class RenderBox; 39 class RenderBox;
40 class RenderFlexibleBox;
41 40
42 class OrderIterator { 41 class OrderIterator {
43 WTF_MAKE_NONCOPYABLE(OrderIterator); 42 WTF_MAKE_NONCOPYABLE(OrderIterator);
44 public: 43 public:
45 OrderIterator(const RenderFlexibleBox*); 44 OrderIterator(const RenderBox*);
45
46 void setOrderValues(Vector<int>&); 46 void setOrderValues(Vector<int>&);
47 RenderBox* currentChild() const { return m_currentChild; } 47 RenderBox* currentChild() const { return m_currentChild; }
48 RenderBox* first(); 48 RenderBox* first();
49 RenderBox* next(); 49 RenderBox* next();
50 void reset(); 50 void reset();
51 51
52 private: 52 private:
53 const RenderFlexibleBox* m_flexibleBox; 53 const RenderBox* m_containerBox;
54 RenderBox* m_currentChild; 54 RenderBox* m_currentChild;
55 Vector<int> m_orderValues; 55 Vector<int> m_orderValues;
56 Vector<int>::const_iterator m_orderValuesIterator; 56 Vector<int>::const_iterator m_orderValuesIterator;
57 }; 57 };
58 58
59 } // namespace WebCore 59 } // namespace WebCore
60 60
61 #endif // OrderIterator_h 61 #endif // OrderIterator_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css-grid-layout/grid-item-order-paint-order-expected.html ('k') | Source/core/rendering/OrderIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698