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

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

Issue 1377573004: Remove unused LayoutState::clearPaginationInformation(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/core/layout/LayoutState.h ('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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 LayoutState::~LayoutState() 129 LayoutState::~LayoutState()
130 { 130 {
131 if (m_layoutObject.view()->layoutState()) { 131 if (m_layoutObject.view()->layoutState()) {
132 ASSERT(m_layoutObject.view()->layoutState() == this); 132 ASSERT(m_layoutObject.view()->layoutState() == this);
133 m_layoutObject.view()->popLayoutState(); 133 m_layoutObject.view()->popLayoutState();
134 } 134 }
135 } 135 }
136 136
137 void LayoutState::clearPaginationInformation()
138 {
139 m_pageLogicalHeight = m_next->m_pageLogicalHeight;
140 m_pageOffset = m_next->m_pageOffset;
141 }
142
143 LayoutUnit LayoutState::pageLogicalOffset(const LayoutBox& child, const LayoutUn it& childLogicalOffset) const 137 LayoutUnit LayoutState::pageLogicalOffset(const LayoutBox& child, const LayoutUn it& childLogicalOffset) const
144 { 138 {
145 if (child.isHorizontalWritingMode()) 139 if (child.isHorizontalWritingMode())
146 return m_layoutOffset.height() + childLogicalOffset - m_pageOffset.heigh t(); 140 return m_layoutOffset.height() + childLogicalOffset - m_pageOffset.heigh t();
147 return m_layoutOffset.width() + childLogicalOffset - m_pageOffset.width(); 141 return m_layoutOffset.width() + childLogicalOffset - m_pageOffset.width();
148 } 142 }
149 143
150 } // namespace blink 144 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698