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

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

Issue 2458823002: Don't establish LayoutState for LayoutTableRow objects. (Closed)
Patch Set: Created 4 years, 1 month 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 * This file is part of the layout object implementation for KHTML. 2 * This file is part of the layout object implementation for KHTML.
3 * 3 *
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) 5 * (C) 1999 Antti Koivisto (koivisto@kde.org)
6 * Copyright (C) 2003 Apple Computer, Inc. 6 * Copyright (C) 2003 Apple Computer, Inc.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 } 359 }
360 360
361 void LayoutDeprecatedFlexibleBox::layoutBlock(bool relayoutChildren) { 361 void LayoutDeprecatedFlexibleBox::layoutBlock(bool relayoutChildren) {
362 ASSERT(needsLayout()); 362 ASSERT(needsLayout());
363 363
364 if (!relayoutChildren && simplifiedLayout()) 364 if (!relayoutChildren && simplifiedLayout())
365 return; 365 return;
366 366
367 { 367 {
368 // LayoutState needs this deliberate scope to pop before paint invalidation. 368 // LayoutState needs this deliberate scope to pop before paint invalidation.
369 LayoutState state(*this, locationOffset()); 369 LayoutState state(*this);
370 370
371 LayoutSize previousSize = size(); 371 LayoutSize previousSize = size();
372 372
373 updateLogicalWidth(); 373 updateLogicalWidth();
374 updateLogicalHeight(); 374 updateLogicalHeight();
375 375
376 TextAutosizer::LayoutScope textAutosizerLayoutScope(this); 376 TextAutosizer::LayoutScope textAutosizerLayoutScope(this);
377 377
378 if (previousSize != size() || 378 if (previousSize != size() ||
379 (parent()->isDeprecatedFlexibleBox() && 379 (parent()->isDeprecatedFlexibleBox() &&
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 if (minHeight.isFixed() || minHeight.isAuto()) { 1261 if (minHeight.isFixed() || minHeight.isAuto()) {
1262 LayoutUnit minHeight(child->style()->minHeight().value()); 1262 LayoutUnit minHeight(child->style()->minHeight().value());
1263 LayoutUnit height = contentHeightForChild(child); 1263 LayoutUnit height = contentHeightForChild(child);
1264 LayoutUnit allowedShrinkage = (minHeight - height).clampPositiveToZero(); 1264 LayoutUnit allowedShrinkage = (minHeight - height).clampPositiveToZero();
1265 return allowedShrinkage; 1265 return allowedShrinkage;
1266 } 1266 }
1267 return LayoutUnit(); 1267 return LayoutUnit();
1268 } 1268 }
1269 1269
1270 } // namespace blink 1270 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698