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

Side by Side Diff: Source/core/layout/LayoutTableRow.h

Issue 1280123004: Don't allow whitespace between elements with display:table-cell (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 4 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 | Annotate | Revision Log
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, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const char* name() const override { return "LayoutTableRow"; } 98 const char* name() const override { return "LayoutTableRow"; }
99 99
100 private: 100 private:
101 LayoutObjectChildList* virtualChildren() override { return children(); } 101 LayoutObjectChildList* virtualChildren() override { return children(); }
102 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } 102 const LayoutObjectChildList* virtualChildren() const override { return child ren(); }
103 103
104 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } 104 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); }
105 105
106 void willBeRemovedFromTree() override; 106 void willBeRemovedFromTree() override;
107 107
108 void createAndAddAnonymousCell(LayoutObject* child, LayoutObject* beforeChil d);
108 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 109 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
109 void layout() override; 110 void layout() override;
110 111
111 DeprecatedPaintLayerType layerTypeRequired() const override 112 DeprecatedPaintLayerType layerTypeRequired() const override
112 { 113 {
113 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || style() ->hasCompositorProxy()) 114 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || style() ->hasCompositorProxy())
114 return NormalDeprecatedPaintLayer; 115 return NormalDeprecatedPaintLayer;
115 116
116 if (hasOverflowClip()) 117 if (hasOverflowClip())
117 return OverflowClipDeprecatedPaintLayer; 118 return OverflowClipDeprecatedPaintLayer;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 153
153 inline LayoutTableRow* LayoutTableSection::lastRow() const 154 inline LayoutTableRow* LayoutTableSection::lastRow() const
154 { 155 {
155 ASSERT(children() == virtualChildren()); 156 ASSERT(children() == virtualChildren());
156 return toLayoutTableRow(children()->lastChild()); 157 return toLayoutTableRow(children()->lastChild());
157 } 158 }
158 159
159 } // namespace blink 160 } // namespace blink
160 161
161 #endif // LayoutTableRow_h 162 #endif // LayoutTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698