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

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

Issue 2529073002: No longer store page logical height in LayoutState. (Closed)
Patch Set: Created 4 years 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/LayoutTable.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 if (document().svgExtensions()) 270 if (document().svgExtensions())
271 document() 271 document()
272 .accessSVGExtensions() 272 .accessSVGExtensions()
273 .invalidateSVGRootsWithRelativeLengthDescendents(&layoutScope); 273 .invalidateSVGRootsWithRelativeLengthDescendents(&layoutScope);
274 } 274 }
275 275
276 ASSERT(!m_layoutState); 276 ASSERT(!m_layoutState);
277 if (!needsLayout()) 277 if (!needsLayout())
278 return; 278 return;
279 279
280 LayoutState rootLayoutState(pageLogicalHeight(), *this); 280 LayoutState rootLayoutState(*this);
281 281
282 layoutContent(); 282 layoutContent();
283 283
284 #if ENABLE(ASSERT) 284 #if ENABLE(ASSERT)
285 checkLayoutState(); 285 checkLayoutState();
286 #endif 286 #endif
287 clearNeedsLayout(); 287 clearNeedsLayout();
288 } 288 }
289 289
290 LayoutRect LayoutView::visualOverflowRect() const { 290 LayoutRect LayoutView::visualOverflowRect() const {
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 if (block) 1040 if (block)
1041 block->adjustChildDebugRect(rect); 1041 block->adjustChildDebugRect(rect);
1042 1042
1043 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars))); 1043 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars)));
1044 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars))); 1044 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars)));
1045 1045
1046 return rect; 1046 return rect;
1047 } 1047 }
1048 1048
1049 } // namespace blink 1049 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698