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

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

Issue 2842323002: Treat zero-width collapsed borders as invisible (Closed)
Patch Set: Created 3 years, 7 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 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
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 11 matching lines...) Expand all
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA. 23 * Boston, MA 02110-1301, USA.
24 */ 24 */
25 25
26 #include "core/layout/LayoutTableCell.h" 26 #include "core/layout/LayoutTableCell.h"
27 27
28 #include "core/HTMLNames.h" 28 #include "core/HTMLNames.h"
29 #include "core/css/StylePropertySet.h" 29 #include "core/css/StylePropertySet.h"
30 #include "core/editing/EditingUtilities.h" 30 #include "core/editing/EditingUtilities.h"
31 #include "core/html/HTMLTableCellElement.h" 31 #include "core/html/HTMLTableCellElement.h"
32 #include "core/layout/CollapsedBorderValue.h"
32 #include "core/layout/LayoutAnalyzer.h" 33 #include "core/layout/LayoutAnalyzer.h"
33 #include "core/layout/LayoutTableCol.h" 34 #include "core/layout/LayoutTableCol.h"
34 #include "core/layout/SubtreeLayoutScope.h" 35 #include "core/layout/SubtreeLayoutScope.h"
35 #include "core/paint/ObjectPaintInvalidator.h" 36 #include "core/paint/ObjectPaintInvalidator.h"
36 #include "core/paint/PaintLayer.h" 37 #include "core/paint/PaintLayer.h"
37 #include "core/paint/TableCellPainter.h" 38 #include "core/paint/TableCellPainter.h"
38 #include "core/style/CollapsedBorderValue.h"
39 #include "platform/geometry/FloatQuad.h" 39 #include "platform/geometry/FloatQuad.h"
40 #include "platform/geometry/TransformState.h" 40 #include "platform/geometry/TransformState.h"
41 #include "platform/wtf/PtrUtil.h" 41 #include "platform/wtf/PtrUtil.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 using namespace HTMLNames; 45 using namespace HTMLNames;
46 46
47 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { 47 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow {
48 unsigned bitfields; 48 unsigned bitfields;
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 } 1482 }
1483 1483
1484 bool LayoutTableCell::HasLineIfEmpty() const { 1484 bool LayoutTableCell::HasLineIfEmpty() const {
1485 if (GetNode() && HasEditableStyle(*GetNode())) 1485 if (GetNode() && HasEditableStyle(*GetNode()))
1486 return true; 1486 return true;
1487 1487
1488 return LayoutBlock::HasLineIfEmpty(); 1488 return LayoutBlock::HasLineIfEmpty();
1489 } 1489 }
1490 1490
1491 } // namespace blink 1491 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.h ('k') | third_party/WebKit/Source/core/paint/TableCellPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698