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

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

Issue 688703003: [New Multicolumn] Add RenderMultiColumnSpannerSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: There won't ever be any intervening non-multicol fragmentation contexts. Created 6 years, 1 month 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef RenderMultiColumnSpannerSet_h
6 #define RenderMultiColumnSpannerSet_h
7
8 #include "core/rendering/RenderMultiColumnSet.h"
9
10 namespace blink {
11
12 // "Column" set for column-span:all elements. Positions the portion of the flow thread that a
13 // spanner takes up. The actual renderer that sets column-span all is laid out a s part of flow
14 // thread layout (although it cannot use the flow thread width when calculating its own with; it has
15 // to pretend that the containing block is the multicol container, not the flow
16 // thread). RenderMultiColumnSpannerSet just makes sure that it's positioned cor rectly among other
17 // column sets, within the multicol container.
18 //
19 // FIXME: should consider not inheriting from RenderMultiColumnSet (but rather f rom some common base
20 // class). Most of what's in RenderMultiColumnSet is of no interest to us.
21 class RenderMultiColumnSpannerSet final : public RenderMultiColumnSet {
22 public:
23 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRenderMultiColumnSpannerSet || RenderMultiColumnSet::isOfType(type) ; }
24
25 static RenderMultiColumnSpannerSet* createAnonymous(RenderMultiColumnFlowThr ead*, RenderStyle* parentStyle, RenderBox*);
26
27 RenderBox* rendererInFlowThread() const { return m_rendererInFlowThread; }
28
29 protected:
30 virtual bool recalculateColumnHeight(BalancedHeightCalculation) override;
31 virtual const char* renderName() const override;
32
33 private:
34 RenderMultiColumnSpannerSet(RenderMultiColumnFlowThread*, RenderBox*);
35
36 RenderBox* m_rendererInFlowThread; // The actual column-span:all renderer in side the flow thread.
37 };
38
39 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSpannerSet, isRenderMultiColumn SpannerSet());
40
41 } // namespace blink
42
43 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMultiColumnSet.cpp ('k') | Source/core/rendering/RenderMultiColumnSpannerSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698