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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // mallocs. 64 // mallocs.
65 DISALLOW_NEW(); 65 DISALLOW_NEW();
66 WTF_MAKE_NONCOPYABLE(LayoutState); 66 WTF_MAKE_NONCOPYABLE(LayoutState);
67 67
68 public: 68 public:
69 // Constructor for root LayoutState created by LayoutView 69 // Constructor for root LayoutState created by LayoutView
70 explicit LayoutState(LayoutView&); 70 explicit LayoutState(LayoutView&);
71 // Constructor for sub-tree layout and orthogonal writing-mode roots 71 // Constructor for sub-tree layout and orthogonal writing-mode roots
72 explicit LayoutState(LayoutObject& root); 72 explicit LayoutState(LayoutObject& root);
73 73
74 LayoutState(LayoutBox&, 74 LayoutState(LayoutBox&, bool containingBlockLogicalWidthChanged = false);
75 bool containingBlockLogicalWidthChanged = false);
76 75
77 ~LayoutState(); 76 ~LayoutState();
78 77
79 bool isPaginated() const { return m_isPaginated; } 78 bool isPaginated() const { return m_isPaginated; }
80 79
81 // The page logical offset is the object's offset from the top of the page in 80 // The page logical offset is the object's offset from the top of the page in
82 // the page progression direction (so an x-offset in vertical text and a 81 // the page progression direction (so an x-offset in vertical text and a
83 // y-offset for horizontal text). 82 // y-offset for horizontal text).
84 LayoutUnit pageLogicalOffset(const LayoutBox&, 83 LayoutUnit pageLogicalOffset(const LayoutBox&,
85 const LayoutUnit& childLogicalOffset) const; 84 const LayoutUnit& childLogicalOffset) const;
(...skipping 27 matching lines...) Expand all
113 // x/y offset from the logical top / start of the first page. Does not include 112 // x/y offset from the logical top / start of the first page. Does not include
114 // relative positioning or scroll offsets. 113 // relative positioning or scroll offsets.
115 LayoutSize m_paginationOffset; 114 LayoutSize m_paginationOffset;
116 115
117 LayoutObject& m_layoutObject; 116 LayoutObject& m_layoutObject;
118 }; 117 };
119 118
120 } // namespace blink 119 } // namespace blink
121 120
122 #endif // LayoutState_h 121 #endif // LayoutState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698