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

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

Issue 716213002: Remove 'paginated line width' from RootInlineBox. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 LayoutUnit lineTop() const { return m_lineTop; } 51 LayoutUnit lineTop() const { return m_lineTop; }
52 LayoutUnit lineBottom() const { return m_lineBottom; } 52 LayoutUnit lineBottom() const { return m_lineBottom; }
53 53
54 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; } 54 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; }
55 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; } 55 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; }
56 56
57 LayoutUnit paginationStrut() const { return m_paginationStrut; } 57 LayoutUnit paginationStrut() const { return m_paginationStrut; }
58 void setPaginationStrut(LayoutUnit strut) { m_paginationStrut = strut; } 58 void setPaginationStrut(LayoutUnit strut) { m_paginationStrut = strut; }
59 59
60 void setPaginatedLineWidth(LayoutUnit width) { m_paginatedLineWidth = width; }
61
62 LayoutUnit selectionTop() const; 60 LayoutUnit selectionTop() const;
63 LayoutUnit selectionBottom() const; 61 LayoutUnit selectionBottom() const;
64 LayoutUnit selectionHeight() const { return max<LayoutUnit>(0, selectionBott om() - selectionTop()); } 62 LayoutUnit selectionHeight() const { return max<LayoutUnit>(0, selectionBott om() - selectionTop()); }
65 63
66 LayoutUnit selectionTopAdjustedForPrecedingBlock() const; 64 LayoutUnit selectionTopAdjustedForPrecedingBlock() const;
67 LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return max<Lay outUnit>(0, selectionBottom() - selectionTopAdjustedForPrecedingBlock()); } 65 LayoutUnit selectionHeightAdjustedForPrecedingBlock() const { return max<Lay outUnit>(0, selectionBottom() - selectionTopAdjustedForPrecedingBlock()); }
68 66
69 int blockDirectionPointInLine() const; 67 int blockDirectionPointInLine() const;
70 68
71 LayoutUnit alignBoxesInBlockDirection(LayoutUnit heightOfBlock, GlyphOverflo wAndFallbackFontsMap&, VerticalPositionCache&); 69 LayoutUnit alignBoxesInBlockDirection(LayoutUnit heightOfBlock, GlyphOverflo wAndFallbackFontsMap&, VerticalPositionCache&);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 // Floats hanging off the line are pushed into this vector during layout. It is only 192 // Floats hanging off the line are pushed into this vector during layout. It is only
195 // good for as long as the line has not been marked dirty. 193 // good for as long as the line has not been marked dirty.
196 OwnPtr<Vector<RenderBox*> > m_floats; 194 OwnPtr<Vector<RenderBox*> > m_floats;
197 195
198 LayoutUnit m_lineTop; 196 LayoutUnit m_lineTop;
199 LayoutUnit m_lineBottom; 197 LayoutUnit m_lineBottom;
200 LayoutUnit m_lineTopWithLeading; 198 LayoutUnit m_lineTopWithLeading;
201 LayoutUnit m_lineBottomWithLeading; 199 LayoutUnit m_lineBottomWithLeading;
202 LayoutUnit m_selectionBottom; 200 LayoutUnit m_selectionBottom;
203 LayoutUnit m_paginationStrut; 201 LayoutUnit m_paginationStrut;
204 LayoutUnit m_paginatedLineWidth;
205 }; 202 };
206 203
207 } // namespace blink 204 } // namespace blink
208 205
209 #endif // RootInlineBox_h 206 #endif // RootInlineBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698