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

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

Issue 1907213002: Refactor OverlayScrollbarSizeRelevancy into OverlayScrollbarClipBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include -> Exclude 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 return topNonEmptySection->logicalTop() + baseline; 1330 return topNonEmptySection->logicalTop() + baseline;
1331 1331
1332 // FF, Presto and IE use the top of the section as the baseline if its first row is empty of cells or content. 1332 // FF, Presto and IE use the top of the section as the baseline if its first row is empty of cells or content.
1333 // The baseline of an empty row isn't specified by CSS 2.1. 1333 // The baseline of an empty row isn't specified by CSS 2.1.
1334 if (topNonEmptySection->firstRow() && !topNonEmptySection->firstRow()->first Cell()) 1334 if (topNonEmptySection->firstRow() && !topNonEmptySection->firstRow()->first Cell())
1335 return topNonEmptySection->logicalTop(); 1335 return topNonEmptySection->logicalTop();
1336 1336
1337 return -1; 1337 return -1;
1338 } 1338 }
1339 1339
1340 LayoutRect LayoutTable::overflowClipRect(const LayoutPoint& location, OverlayScr ollbarSizeRelevancy relevancy) const 1340 LayoutRect LayoutTable::overflowClipRect(const LayoutPoint& location, OverlayScr ollbarClipBehavior overlayScrollbarClipBehavior) const
1341 { 1341 {
1342 LayoutRect rect = LayoutBlock::overflowClipRect(location, relevancy); 1342 LayoutRect rect = LayoutBlock::overflowClipRect(location, overlayScrollbarCl ipBehavior);
1343 1343
1344 // If we have a caption, expand the clip to include the caption. 1344 // If we have a caption, expand the clip to include the caption.
1345 // FIXME: Technically this is wrong, but it's virtually impossible to fix th is 1345 // FIXME: Technically this is wrong, but it's virtually impossible to fix th is
1346 // for real until captions have been re-written. 1346 // for real until captions have been re-written.
1347 // FIXME: This code assumes (like all our other caption code) that only top/ bottom are 1347 // FIXME: This code assumes (like all our other caption code) that only top/ bottom are
1348 // supported. When we actually support left/right and stop mapping them to top/bottom, 1348 // supported. When we actually support left/right and stop mapping them to top/bottom,
1349 // we might have to hack this code first (depending on what order we do thes e bug fixes in). 1349 // we might have to hack this code first (depending on what order we do thes e bug fixes in).
1350 if (!m_captions.isEmpty()) { 1350 if (!m_captions.isEmpty()) {
1351 if (style()->isHorizontalWritingMode()) { 1351 if (style()->isHorizontalWritingMode()) {
1352 rect.setHeight(size().height()); 1352 rect.setHeight(size().height());
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 1480
1481 LayoutUnit LayoutTable::paddingRight() const 1481 LayoutUnit LayoutTable::paddingRight() const
1482 { 1482 {
1483 if (collapseBorders()) 1483 if (collapseBorders())
1484 return LayoutUnit(); 1484 return LayoutUnit();
1485 1485
1486 return LayoutBlock::paddingRight(); 1486 return LayoutBlock::paddingRight();
1487 } 1487 }
1488 1488
1489 } // namespace blink 1489 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698