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

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

Issue 153233002: *** DO NOT LAND *** Remove regions support, keeping a bare minimum to support "region-based"... (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/rendering/RenderMedia.cpp ('k') | Source/core/rendering/RenderNamedFlowFragment.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void paintObject(PaintInfo&, const LayoutPoint& paintOffset) OVERRID E; 105 virtual void paintObject(PaintInfo&, const LayoutPoint& paintOffset) OVERRID E;
106 106
107 virtual LayoutUnit pageLogicalWidth() const OVERRIDE { return m_computedColu mnWidth; } 107 virtual LayoutUnit pageLogicalWidth() const OVERRIDE { return m_computedColu mnWidth; }
108 virtual LayoutUnit pageLogicalHeight() const OVERRIDE { return m_computedCol umnHeight; } 108 virtual LayoutUnit pageLogicalHeight() const OVERRIDE { return m_computedCol umnHeight; }
109 109
110 virtual LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const OVERRIDE ; 110 virtual LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const OVERRIDE ;
111 111
112 // FIXME: This will change once we have column sets constrained by enclosing pages, etc. 112 // FIXME: This will change once we have column sets constrained by enclosing pages, etc.
113 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const OVERRIDE { re turn m_computedColumnHeight; } 113 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const OVERRIDE { re turn m_computedColumnHeight; }
114 114
115 // FIXME: For now we return false, but it's likely we will leverage the auto height region code to do column
116 // balancing. That's why we have an override of this function that is distin ct from RenderRegionSet's override.
117 virtual bool shouldHaveAutoLogicalHeight() const OVERRIDE { return false; }
118
119 virtual void repaintFlowThreadContent(const LayoutRect& repaintRect) const O VERRIDE; 115 virtual void repaintFlowThreadContent(const LayoutRect& repaintRect) const O VERRIDE;
120 116
121 virtual void collectLayerFragments(LayerFragments&, const LayoutRect& layerB oundingBox, const LayoutRect& dirtyRect) OVERRIDE; 117 virtual void collectLayerFragments(LayerFragments&, const LayoutRect& layerB oundingBox, const LayoutRect& dirtyRect) OVERRIDE;
122 118
123 virtual const char* renderName() const OVERRIDE; 119 virtual const char* renderName() const OVERRIDE;
124 120
125 void paintColumnRules(PaintInfo&, const LayoutPoint& paintOffset); 121 void paintColumnRules(PaintInfo&, const LayoutPoint& paintOffset);
126 122
127 LayoutUnit columnGap() const; 123 LayoutUnit columnGap() const;
128 LayoutRect columnRectAt(unsigned index) const; 124 LayoutRect columnRectAt(unsigned index) const;
(...skipping 22 matching lines...) Expand all
151 LayoutUnit m_maximumDistanceBetweenForcedBreaks; 147 LayoutUnit m_maximumDistanceBetweenForcedBreaks;
152 LayoutUnit m_forcedBreakOffset; 148 LayoutUnit m_forcedBreakOffset;
153 }; 149 };
154 150
155 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet()); 151 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet());
156 152
157 } // namespace WebCore 153 } // namespace WebCore
158 154
159 #endif // RenderMultiColumnSet_h 155 #endif // RenderMultiColumnSet_h
160 156
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMedia.cpp ('k') | Source/core/rendering/RenderNamedFlowFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698