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

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

Issue 147233002: Remove internal recursion for RenderBlockFlow and RenderMultiColumnBlock layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to apply on latest trunk 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 | « no previous file | Source/core/rendering/LayoutState.cpp » ('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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // LayoutState is allocated out of the rendering partition. 67 // LayoutState is allocated out of the rendering partition.
68 void* operator new(size_t); 68 void* operator new(size_t);
69 void operator delete(void*); 69 void operator delete(void*);
70 70
71 void clearPaginationInformation(); 71 void clearPaginationInformation();
72 bool isPaginatingColumns() const { return m_columnInfo && m_columnInfo->pagi nationUnit() == ColumnInfo::Column; } 72 bool isPaginatingColumns() const { return m_columnInfo && m_columnInfo->pagi nationUnit() == ColumnInfo::Column; }
73 bool isPaginated() const { return m_isPaginated; } 73 bool isPaginated() const { return m_isPaginated; }
74 74
75 // The page logical offset is the object's offset from the top of the page i n the page progression 75 // The page logical offset is the object's offset from the top of the page i n the page progression
76 // direction (so an x-offset in vertical text and a y-offset for horizontal text). 76 // direction (so an x-offset in vertical text and a y-offset for horizontal text).
77 LayoutUnit pageLogicalOffset(RenderBox*, LayoutUnit childLogicalOffset) cons t; 77 LayoutUnit pageLogicalOffset(const RenderBox*, LayoutUnit childLogicalOffset ) const;
78 78
79 void addForcedColumnBreak(RenderBox*, LayoutUnit childLogicalOffset); 79 void addForcedColumnBreak(RenderBox*, LayoutUnit childLogicalOffset);
80 80
81 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; } 81 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
82 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } 82 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; }
83 83
84 RenderBlockFlow* lineGrid() const { return m_lineGrid; } 84 RenderBlockFlow* lineGrid() const { return m_lineGrid; }
85 LayoutSize lineGridOffset() const { return m_lineGridOffset; } 85 LayoutSize lineGridOffset() const { return m_lineGridOffset; }
86 LayoutSize lineGridPaginationOrigin() const { return m_lineGridPaginationOri gin; } 86 LayoutSize lineGridPaginationOrigin() const { return m_lineGridPaginationOri gin; }
87 87
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 LayoutSize m_lineGridPaginationOrigin; 138 LayoutSize m_lineGridPaginationOrigin;
139 139
140 #ifndef NDEBUG 140 #ifndef NDEBUG
141 RenderObject* m_renderer; 141 RenderObject* m_renderer;
142 #endif 142 #endif
143 }; 143 };
144 144
145 } // namespace WebCore 145 } // namespace WebCore
146 146
147 #endif // LayoutState_h 147 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/LayoutState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698