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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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/InlineFlowBox.cpp ('k') | Source/core/rendering/RenderBlockFlow.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) 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 30 matching lines...) Expand all
41 41
42 class LayoutState { 42 class LayoutState {
43 WTF_MAKE_NONCOPYABLE(LayoutState); 43 WTF_MAKE_NONCOPYABLE(LayoutState);
44 public: 44 public:
45 // Constructor for root LayoutState created by RenderView 45 // Constructor for root LayoutState created by RenderView
46 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren derView&); 46 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, Ren derView&);
47 // Constructor for sub-tree Layout and RenderTableSections 47 // Constructor for sub-tree Layout and RenderTableSections
48 explicit LayoutState(RenderObject& root); 48 explicit LayoutState(RenderObject& root);
49 49
50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB lockLogicalWidthChanged = false); 50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB lockLogicalWidthChanged = false);
51 LayoutState(RenderInline&);
52 51
53 ~LayoutState(); 52 ~LayoutState();
54 53
55 void clearPaginationInformation(); 54 void clearPaginationInformation();
56 bool isPaginatingColumns() const { return m_columnInfo; } 55 bool isPaginatingColumns() const { return m_columnInfo; }
57 bool isPaginated() const { return m_isPaginated; } 56 bool isPaginated() const { return m_isPaginated; }
58 57
59 // The page logical offset is the object's offset from the top of the page i n the page progression 58 // The page logical offset is the object's offset from the top of the page i n the page progression
60 // direction (so an x-offset in vertical text and a y-offset for horizontal text). 59 // direction (so an x-offset in vertical text and a y-offset for horizontal text).
61 LayoutUnit pageLogicalOffset(const RenderBox&, const LayoutUnit& childLogica lOffset) const; 60 LayoutUnit pageLogicalOffset(const RenderBox&, const LayoutUnit& childLogica lOffset) const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 LayoutUnit m_pageLogicalHeight; 97 LayoutUnit m_pageLogicalHeight;
99 // The offset of the start of the first page in the nearest enclosing pagina tion model. 98 // The offset of the start of the first page in the nearest enclosing pagina tion model.
100 LayoutSize m_pageOffset; 99 LayoutSize m_pageOffset;
101 100
102 RenderObject& m_renderer; 101 RenderObject& m_renderer;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif // LayoutState_h 106 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineFlowBox.cpp ('k') | Source/core/rendering/RenderBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698