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

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

Issue 179993006: [New multicol] Eliminate the need for RenderMultiColumnBlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 // as well). 41 // as well).
42 // 42 //
43 // Column spans result in the creation of new column sets as well, since a spann ing region has to be placed in between the column sets that 43 // Column spans result in the creation of new column sets as well, since a spann ing region has to be placed in between the column sets that
44 // come before and after the span. 44 // come before and after the span.
45 class RenderMultiColumnSet FINAL : public RenderRegionSet { 45 class RenderMultiColumnSet FINAL : public RenderRegionSet {
46 public: 46 public:
47 static RenderMultiColumnSet* createAnonymous(RenderFlowThread*); 47 static RenderMultiColumnSet* createAnonymous(RenderFlowThread*);
48 48
49 virtual bool isRenderMultiColumnSet() const OVERRIDE { return true; } 49 virtual bool isRenderMultiColumnSet() const OVERRIDE { return true; }
50 50
51 RenderBlockFlow* multiColumnBlockFlow() const { return toRenderBlockFlow(par ent()); }
52 RenderMultiColumnFlowThread* multiColumnFlowThread() const { return multiCol umnBlockFlow()->multiColumnFlowThread(); }
51 unsigned computedColumnCount() const { return m_computedColumnCount; } 53 unsigned computedColumnCount() const { return m_computedColumnCount; }
52 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; } 54 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; }
53 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; } 55 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; }
54 56
55 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count) 57 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count)
56 { 58 {
57 m_computedColumnWidth = width; 59 m_computedColumnWidth = width;
58 m_computedColumnCount = count; 60 m_computedColumnCount = count;
59 } 61 }
60 62
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 }; 169 };
168 Vector<ContentRun, 1> m_contentRuns; 170 Vector<ContentRun, 1> m_contentRuns;
169 }; 171 };
170 172
171 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet()); 173 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet());
172 174
173 } // namespace WebCore 175 } // namespace WebCore
174 176
175 #endif // RenderMultiColumnSet_h 177 #endif // RenderMultiColumnSet_h
176 178
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698