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

Unified Diff: Source/core/rendering/OrderIterator.h

Issue 22642010: [CSS Grid Layout] Speed up painting on large grids (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined change Created 7 years, 3 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 | « no previous file | Source/core/rendering/OrderIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/OrderIterator.h
diff --git a/Source/core/rendering/OrderIterator.h b/Source/core/rendering/OrderIterator.h
index 8639bdcb1001f7a24c31fcdf2470ab73822bf86d..3f769852bf32da6be00c9e7473c66ecccf1a4654 100644
--- a/Source/core/rendering/OrderIterator.h
+++ b/Source/core/rendering/OrderIterator.h
@@ -51,8 +51,16 @@ public:
void reset();
private:
+ RenderBox* firstChildBox();
+ RenderBox* nextSiblingBox();
+
+ // If |m_children| is not empty, we will use it to iterate over this fixed subset.
const RenderBox* m_containerBox;
+ Vector<RenderBox*> m_children;
+
RenderBox* m_currentChild;
+ size_t m_childIndex;
+
// The inline capacity for a single item is used to cover the most
// common case by far: if we only have the default 'order' value 0.
typedef Vector<int, 1> OrderValues;
@@ -73,6 +81,7 @@ public:
~OrderIteratorPopulator();
+ void storeChild(RenderBox*);
void collectChild(const RenderBox*);
private:
« no previous file with comments | « no previous file | Source/core/rendering/OrderIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698