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

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

Issue 1809643008: Adding or changing any of box-shadow, outline, or border-image-outset does not need a layout.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 4 years, 8 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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 for (LayoutTableSection* section = topSection(); section; section = sectionB elow(section)) { 408 for (LayoutTableSection* section = topSection(); section; section = sectionB elow(section)) {
409 section->layoutIfNeeded(); 409 section->layoutIfNeeded();
410 section->layoutRows(); 410 section->layoutRows();
411 section->computeOverflowFromCells(); 411 section->computeOverflowFromCells();
412 section->updateLayerTransformAfterLayout(); 412 section->updateLayerTransformAfterLayout();
413 section->addVisualEffectOverflow(); 413 section->addVisualEffectOverflow();
414 } 414 }
415 } 415 }
416 416
417 bool LayoutTable::recalcChildOverflowAfterStyleChange()
418 {
419 ASSERT(childNeedsOverflowRecalcAfterStyleChange());
420 clearChildNeedsOverflowRecalcAfterStyleChange();
421 bool childrenOverflowChanged = false;
422 for (LayoutTableSection* section = topSection(); section; section = sectionB elow(section)) {
423 if (!section->childNeedsOverflowRecalcAfterStyleChange())
424 continue;
425 childrenOverflowChanged |= section->recalcChildOverflowAfterStyleChange( );
426 }
427 return childrenOverflowChanged;
428 }
429
417 void LayoutTable::layout() 430 void LayoutTable::layout()
418 { 431 {
419 ASSERT(needsLayout()); 432 ASSERT(needsLayout());
420 LayoutAnalyzer::Scope analyzer(*this); 433 LayoutAnalyzer::Scope analyzer(*this);
421 434
422 if (simplifiedLayout()) 435 if (simplifiedLayout())
423 return; 436 return;
424 437
425 // Note: LayoutTable is handled differently than other LayoutBlocks and the LayoutScope 438 // Note: LayoutTable is handled differently than other LayoutBlocks and the LayoutScope
426 // must be created before the table begins laying out. 439 // must be created before the table begins laying out.
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 1474
1462 LayoutUnit LayoutTable::paddingRight() const 1475 LayoutUnit LayoutTable::paddingRight() const
1463 { 1476 {
1464 if (collapseBorders()) 1477 if (collapseBorders())
1465 return LayoutUnit(); 1478 return LayoutUnit();
1466 1479
1467 return LayoutBlock::paddingRight(); 1480 return LayoutBlock::paddingRight();
1468 } 1481 }
1469 1482
1470 } // namespace blink 1483 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698