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

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

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutSliderContainer.cpp ('k') | Source/core/layout/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 16 matching lines...) Expand all
27 #define LayoutState_h 27 #define LayoutState_h
28 28
29 #include "core/layout/ColumnInfo.h" 29 #include "core/layout/ColumnInfo.h"
30 #include "platform/geometry/LayoutRect.h" 30 #include "platform/geometry/LayoutRect.h"
31 #include "wtf/HashMap.h" 31 #include "wtf/HashMap.h"
32 #include "wtf/Noncopyable.h" 32 #include "wtf/Noncopyable.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class ForceHorriblySlowRectMapping; 36 class ForceHorriblySlowRectMapping;
37 class RenderBox; 37 class LayoutBox;
38 class LayoutFlowThread; 38 class LayoutFlowThread;
39 class LayoutObject; 39 class LayoutObject;
40 class RenderView; 40 class RenderView;
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 47 // Constructor for sub-tree layout
48 explicit LayoutState(LayoutObject& root); 48 explicit LayoutState(LayoutObject& root);
49 49
50 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB lockLogicalWidthChanged = false); 50 LayoutState(LayoutBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeig ht = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0, bool containingB lockLogicalWidthChanged = false);
51 51
52 ~LayoutState(); 52 ~LayoutState();
53 53
54 void clearPaginationInformation(); 54 void clearPaginationInformation();
55 bool isPaginatingColumns() const { return m_columnInfo; } 55 bool isPaginatingColumns() const { return m_columnInfo; }
56 bool isPaginated() const { return m_isPaginated; } 56 bool isPaginated() const { return m_isPaginated; }
57 57
58 // 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
59 // 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).
60 LayoutUnit pageLogicalOffset(const RenderBox&, const LayoutUnit& childLogica lOffset) const; 60 LayoutUnit pageLogicalOffset(const LayoutBox&, const LayoutUnit& childLogica lOffset) const;
61 61
62 void addForcedColumnBreak(const RenderBox&, const LayoutUnit& childLogicalOf fset); 62 void addForcedColumnBreak(const LayoutBox&, const LayoutUnit& childLogicalOf fset);
63 63
64 void setColumnInfo(ColumnInfo* columnInfo) { m_columnInfo = columnInfo; } 64 void setColumnInfo(ColumnInfo* columnInfo) { m_columnInfo = columnInfo; }
65 65
66 const LayoutSize& layoutOffset() const { return m_layoutOffset; } 66 const LayoutSize& layoutOffset() const { return m_layoutOffset; }
67 const LayoutSize& pageOffset() const { return m_pageOffset; } 67 const LayoutSize& pageOffset() const { return m_pageOffset; }
68 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; } 68 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
69 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } 69 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; }
70 bool containingBlockLogicalWidthChanged() const { return m_containingBlockLo gicalWidthChanged; } 70 bool containingBlockLogicalWidthChanged() const { return m_containingBlockLo gicalWidthChanged; }
71 71
72 LayoutState* next() const { return m_next; } 72 LayoutState* next() const { return m_next; }
(...skipping 28 matching lines...) Expand all
101 LayoutUnit m_pageLogicalHeight; 101 LayoutUnit m_pageLogicalHeight;
102 // The offset of the start of the first page in the nearest enclosing pagina tion model. 102 // The offset of the start of the first page in the nearest enclosing pagina tion model.
103 LayoutSize m_pageOffset; 103 LayoutSize m_pageOffset;
104 104
105 LayoutObject& m_renderer; 105 LayoutObject& m_renderer;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // LayoutState_h 110 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutSliderContainer.cpp ('k') | Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698