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

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

Issue 256743006: [New Multicolumn] Make offsetLeft, offsetTop and getClientRects() behave. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master Created 6 years, 7 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 unsigned computedColumnCount() const { return m_computedColumnCount; } 63 unsigned computedColumnCount() const { return m_computedColumnCount; }
64 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; } 64 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; }
65 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; } 65 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; }
66 66
67 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count) 67 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count)
68 { 68 {
69 m_computedColumnWidth = width; 69 m_computedColumnWidth = width;
70 m_computedColumnCount = count; 70 m_computedColumnCount = count;
71 } 71 }
72 72
73 // Find the column that contains the given block offset, and return the tran slation needed to
74 // get from flow thread coordinates to visual coordinates.
75 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const;
76
73 LayoutUnit heightAdjustedForSetOffset(LayoutUnit height) const; 77 LayoutUnit heightAdjustedForSetOffset(LayoutUnit height) const;
74 78
75 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); } 79 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); }
76 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; } 80 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; }
77 81
78 unsigned forcedBreaksCount() const { return m_contentRuns.size(); } 82 unsigned forcedBreaksCount() const { return m_contentRuns.size(); }
79 void clearForcedBreaks(); 83 void clearForcedBreaks();
80 void addForcedBreak(LayoutUnit offsetFromFirstPage); 84 void addForcedBreak(LayoutUnit offsetFromFirstPage);
81 85
82 // (Re-)calculate the column height when contents are supposed to be balance d. If 'initial' is 86 // (Re-)calculate the column height when contents are supposed to be balance d. If 'initial' is
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 }; 183 };
180 Vector<ContentRun, 1> m_contentRuns; 184 Vector<ContentRun, 1> m_contentRuns;
181 }; 185 };
182 186
183 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet()); 187 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMultiColumnSet, isRenderMultiColumnSet());
184 188
185 } // namespace WebCore 189 } // namespace WebCore
186 190
187 #endif // RenderMultiColumnSet_h 191 #endif // RenderMultiColumnSet_h
188 192
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMultiColumnFlowThread.cpp ('k') | Source/core/rendering/RenderMultiColumnSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698