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

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

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge with master (removing horizontal-bt test) Created 5 years 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, 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } 133 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); }
134 134
135 void willBeRemovedFromTree() override; 135 void willBeRemovedFromTree() override;
136 136
137 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 137 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
138 void layout() override; 138 void layout() override;
139 139
140 PaintLayerType layerTypeRequired() const override 140 PaintLayerType layerTypeRequired() const override
141 { 141 {
142 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || style() ->hasCompositorProxy()) 142 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || isStick yPositioned() || style()->hasCompositorProxy())
143 return NormalPaintLayer; 143 return NormalPaintLayer;
144 144
145 if (hasOverflowClip()) 145 if (hasOverflowClip())
146 return OverflowClipPaintLayer; 146 return OverflowClipPaintLayer;
147 147
148 return NoPaintLayer; 148 return NoPaintLayer;
149 } 149 }
150 150
151 void paint(const PaintInfo&, const LayoutPoint&) const override; 151 void paint(const PaintInfo&, const LayoutPoint&) const override;
152 152
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 inline LayoutTableRow* LayoutTableSection::lastRow() const 186 inline LayoutTableRow* LayoutTableSection::lastRow() const
187 { 187 {
188 ASSERT(children() == virtualChildren()); 188 ASSERT(children() == virtualChildren());
189 return toLayoutTableRow(children()->lastChild()); 189 return toLayoutTableRow(children()->lastChild());
190 } 190 }
191 191
192 } // namespace blink 192 } // namespace blink
193 193
194 #endif // LayoutTableRow_h 194 #endif // LayoutTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698