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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableCol.h

Issue 2884573002: Replace LayoutTableCell::AbsoluteColumnIndex() with EffectiveColumnIndex()
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, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class LayoutTableCol final : public LayoutTableBoxComponent { 60 class LayoutTableCol final : public LayoutTableBoxComponent {
61 public: 61 public:
62 explicit LayoutTableCol(Element*); 62 explicit LayoutTableCol(Element*);
63 63
64 void ClearPreferredLogicalWidthsDirtyBits(); 64 void ClearPreferredLogicalWidthsDirtyBits();
65 65
66 // The 'span' attribute in HTML. 66 // The 'span' attribute in HTML.
67 // For CSS table columns or colgroups, this is always 1. 67 // For CSS table columns or colgroups, this is always 1.
68 unsigned Span() const { return span_; } 68 unsigned Span() const { return span_; }
69 69
70 bool IsTableColumnGroupWithColumnChildren() { return FirstChild(); }
71 bool IsTableColumn() const { 70 bool IsTableColumn() const {
72 return Style()->Display() == EDisplay::kTableColumn; 71 return Style()->Display() == EDisplay::kTableColumn;
73 } 72 }
74 bool IsTableColumnGroup() const { 73 bool IsTableColumnGroup() const {
75 return Style()->Display() == EDisplay::kTableColumnGroup; 74 return Style()->Display() == EDisplay::kTableColumnGroup;
76 } 75 }
77 76
78 LayoutTableCol* EnclosingColumnGroup() const; 77 LayoutTableCol* EnclosingColumnGroup() const;
79 78
80 // Returns the next column or column-group. 79 // Returns the next column or column-group.
81 LayoutTableCol* NextColumn() const; 80 LayoutTableCol* NextColumn() const;
82 81
82 bool IsInnermost() { return !FirstChild(); }
83 LayoutTableCol* NextInnermostColumn() const;
84
83 BorderValue BorderAdjoiningCellStartBorder(const LayoutTableCell*) const; 85 BorderValue BorderAdjoiningCellStartBorder(const LayoutTableCell*) const;
84 BorderValue BorderAdjoiningCellEndBorder(const LayoutTableCell*) const; 86 BorderValue BorderAdjoiningCellEndBorder(const LayoutTableCell*) const;
85 BorderValue BorderAdjoiningCellBefore(const LayoutTableCell*) const; 87 BorderValue BorderAdjoiningCellBefore(const LayoutTableCell*) const;
86 BorderValue BorderAdjoiningCellAfter(const LayoutTableCell*) const; 88 BorderValue BorderAdjoiningCellAfter(const LayoutTableCell*) const;
87 89
88 const char* GetName() const override { return "LayoutTableCol"; } 90 const char* GetName() const override { return "LayoutTableCol"; }
89 91
90 private: 92 private:
91 bool IsOfType(LayoutObjectType type) const override { 93 bool IsOfType(LayoutObjectType type) const override {
92 return type == kLayoutObjectLayoutTableCol || LayoutBox::IsOfType(type); 94 return type == kLayoutObjectLayoutTableCol || LayoutBox::IsOfType(type);
(...skipping 15 matching lines...) Expand all
108 LayoutTable* Table() const; 110 LayoutTable* Table() const;
109 111
110 unsigned span_; 112 unsigned span_;
111 }; 113 };
112 114
113 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, IsLayoutTableCol()); 115 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, IsLayoutTableCol());
114 116
115 } // namespace blink 117 } // namespace blink
116 118
117 #endif 119 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698