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

Side by Side Diff: third_party/WebKit/Source/core/layout/MultiColumnFragmentainerGroup.h

Issue 1492143002: Add support for printing multicol containers, and enable it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MultiColumnFragmentainerGroup_h 5 #ifndef MultiColumnFragmentainerGroup_h
6 #define MultiColumnFragmentainerGroup_h 6 #define MultiColumnFragmentainerGroup_h
7 7
8 #include "core/layout/LayoutMultiColumnFlowThread.h" 8 #include "core/layout/LayoutMultiColumnFlowThread.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
(...skipping 26 matching lines...) Expand all
37 bool isLastGroup() const; 37 bool isLastGroup() const;
38 38
39 // Position within the LayoutMultiColumnSet. 39 // Position within the LayoutMultiColumnSet.
40 LayoutUnit logicalTop() const { return m_logicalTop; } 40 LayoutUnit logicalTop() const { return m_logicalTop; }
41 void setLogicalTop(LayoutUnit logicalTop) { m_logicalTop = logicalTop; } 41 void setLogicalTop(LayoutUnit logicalTop) { m_logicalTop = logicalTop; }
42 42
43 LayoutUnit logicalHeight() const { return m_columnHeight; } 43 LayoutUnit logicalHeight() const { return m_columnHeight; }
44 44
45 LayoutSize offsetFromColumnSet() const; 45 LayoutSize offsetFromColumnSet() const;
46 46
47 // Return the block offset from the enclosing flow thread, if nested. In the coordinate space 47 // Return the block offset from the enclosing fragmentation context, if nest ed. In the
48 // of the enclosing flow thread. 48 // coordinate space of the enclosing fragmentation context.
49 LayoutUnit blockOffsetInEnclosingFlowThread() const; 49 LayoutUnit blockOffsetInEnclosingFragmentationContext() const;
50 50
51 // The top of our flow thread portion 51 // The top of our flow thread portion
52 LayoutUnit logicalTopInFlowThread() const { return m_logicalTopInFlowThread; } 52 LayoutUnit logicalTopInFlowThread() const { return m_logicalTopInFlowThread; }
53 void setLogicalTopInFlowThread(LayoutUnit logicalTopInFlowThread) { m_logica lTopInFlowThread = logicalTopInFlowThread; } 53 void setLogicalTopInFlowThread(LayoutUnit logicalTopInFlowThread) { m_logica lTopInFlowThread = logicalTopInFlowThread; }
54 54
55 // The bottom of our flow thread portion 55 // The bottom of our flow thread portion
56 LayoutUnit logicalBottomInFlowThread() const { return m_logicalBottomInFlowT hread; } 56 LayoutUnit logicalBottomInFlowThread() const { return m_logicalBottomInFlowT hread; }
57 void setLogicalBottomInFlowThread(LayoutUnit logicalBottomInFlowThread) { AS SERT(logicalBottomInFlowThread >= m_logicalTopInFlowThread); m_logicalBottomInFl owThread = logicalBottomInFlowThread; } 57 void setLogicalBottomInFlowThread(LayoutUnit logicalBottomInFlowThread) { AS SERT(logicalBottomInFlowThread >= m_logicalTopInFlowThread); m_logicalBottomInFl owThread = logicalBottomInFlowThread; }
58 58
59 // The height of our flow thread portion 59 // The height of our flow thread portion
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 private: 152 private:
153 LayoutMultiColumnSet& m_columnSet; 153 LayoutMultiColumnSet& m_columnSet;
154 154
155 Vector<MultiColumnFragmentainerGroup, 1> m_groups; 155 Vector<MultiColumnFragmentainerGroup, 1> m_groups;
156 }; 156 };
157 157
158 } // namespace blink 158 } // namespace blink
159 159
160 #endif // MultiColumnFragmentainerGroup_h 160 #endif // MultiColumnFragmentainerGroup_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698