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

Unified Diff: Source/core/layout/MultiColumnFragmentainerGroup.h

Issue 1292163002: Initial support for nested multicol layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review Created 5 years, 4 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/layout/LayoutMultiColumnSet.cpp ('k') | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/MultiColumnFragmentainerGroup.h
diff --git a/Source/core/layout/MultiColumnFragmentainerGroup.h b/Source/core/layout/MultiColumnFragmentainerGroup.h
index bdb24d0841e9d48b8186d3480a3307740e580bab..2c64712fb7fc1dbcaa5428108f81c0f2cd5114fe 100644
--- a/Source/core/layout/MultiColumnFragmentainerGroup.h
+++ b/Source/core/layout/MultiColumnFragmentainerGroup.h
@@ -33,11 +33,16 @@ public:
// Position within the LayoutMultiColumnSet.
LayoutUnit logicalTop() const { return m_logicalTop; }
+ void setLogicalTop(LayoutUnit logicalTop) { m_logicalTop = logicalTop; }
LayoutUnit logicalHeight() const { return m_columnHeight; }
LayoutSize offsetFromColumnSet() const;
+ // Return the block offset from the enclosing flow thread, if nested. In the coordinate space
+ // of the enclosing flow thread.
+ LayoutUnit blockOffsetInEnclosingFlowThread() const;
+
// The top of our flow thread portion
LayoutUnit logicalTopInFlowThread() const { return m_logicalTopInFlowThread; }
void setLogicalTopInFlowThread(LayoutUnit logicalTopInFlowThread) { m_logicalTopInFlowThread = logicalTopInFlowThread; }
@@ -174,8 +179,11 @@ public:
iterator end() { return m_groups.end(); }
const_iterator end() const { return m_groups.end(); }
- void append(const MultiColumnFragmentainerGroup& group) { m_groups.append(group); }
+ size_t size() const { return m_groups.size(); }
+ MultiColumnFragmentainerGroup& operator[](size_t i) { return m_groups.at(i); }
+ const MultiColumnFragmentainerGroup& operator[](size_t i) const { return m_groups.at(i); }
+ void append(const MultiColumnFragmentainerGroup& group) { m_groups.append(group); }
void shrink(size_t size) { m_groups.shrink(size); }
private:
« no previous file with comments | « Source/core/layout/LayoutMultiColumnSet.cpp ('k') | Source/core/layout/MultiColumnFragmentainerGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698