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

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

Issue 1343163005: Remove special pagination code for floats and out-of-flow objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | no next file » | 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 LayoutUnit pageLogicalOffset(const LayoutBox&, const LayoutUnit& childLogica lOffset) const; 60 LayoutUnit pageLogicalOffset(const LayoutBox&, const LayoutUnit& childLogica lOffset) const;
61 61
62 const LayoutSize& layoutOffset() const { return m_layoutOffset; } 62 const LayoutSize& layoutOffset() const { return m_layoutOffset; }
63 const LayoutSize& pageOffset() const { return m_pageOffset; } 63 const LayoutSize& pageOffset() const { return m_pageOffset; }
64 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; } 64 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
65 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } 65 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; }
66 bool containingBlockLogicalWidthChanged() const { return m_containingBlockLo gicalWidthChanged; } 66 bool containingBlockLogicalWidthChanged() const { return m_containingBlockLo gicalWidthChanged; }
67 67
68 LayoutState* next() const { return m_next; } 68 LayoutState* next() const { return m_next; }
69 69
70 bool needsBlockDirectionLocationSetBeforeLayout() const { return m_isPaginat ed && m_pageLogicalHeight; }
71
72 LayoutFlowThread* flowThread() const { return m_flowThread; } 70 LayoutFlowThread* flowThread() const { return m_flowThread; }
73 71
74 LayoutObject& layoutObject() const { return m_layoutObject; } 72 LayoutObject& layoutObject() const { return m_layoutObject; }
75 73
76 private: 74 private:
77 friend class ForceHorriblySlowRectMapping; 75 friend class ForceHorriblySlowRectMapping;
78 76
79 // Do not add anything apart from bitfields until after m_flowThread. See ht tps://bugs.webkit.org/show_bug.cgi?id=100173 77 // Do not add anything apart from bitfields until after m_flowThread. See ht tps://bugs.webkit.org/show_bug.cgi?id=100173
80 bool m_isPaginated : 1; 78 bool m_isPaginated : 1;
81 // If our page height has changed, this will force all blocks to relayout. 79 // If our page height has changed, this will force all blocks to relayout.
(...skipping 11 matching lines...) Expand all
93 LayoutUnit m_pageLogicalHeight; 91 LayoutUnit m_pageLogicalHeight;
94 // The offset of the start of the first page in the nearest enclosing pagina tion model. 92 // The offset of the start of the first page in the nearest enclosing pagina tion model.
95 LayoutSize m_pageOffset; 93 LayoutSize m_pageOffset;
96 94
97 LayoutObject& m_layoutObject; 95 LayoutObject& m_layoutObject;
98 }; 96 };
99 97
100 } // namespace blink 98 } // namespace blink
101 99
102 #endif // LayoutState_h 100 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBlockFlow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698