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

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

Issue 1870663002: Reland main thread position sticky implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only descend into children which have an ancestor overflow layer. 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, 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } 139 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); }
140 140
141 void willBeRemovedFromTree() override; 141 void willBeRemovedFromTree() override;
142 142
143 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 143 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
144 void layout() override; 144 void layout() override;
145 145
146 PaintLayerType layerTypeRequired() const override 146 PaintLayerType layerTypeRequired() const override
147 { 147 {
148 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || style() ->hasCompositorProxy()) 148 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || isStick yPositioned() || style()->hasCompositorProxy())
149 return NormalPaintLayer; 149 return NormalPaintLayer;
150 150
151 if (hasOverflowClip()) 151 if (hasOverflowClip())
152 return OverflowClipPaintLayer; 152 return OverflowClipPaintLayer;
153 153
154 return NoPaintLayer; 154 return NoPaintLayer;
155 } 155 }
156 156
157 void paint(const PaintInfo&, const LayoutPoint&) const override; 157 void paint(const PaintInfo&, const LayoutPoint&) const override;
158 158
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 inline LayoutTableRow* LayoutTableSection::lastRow() const 192 inline LayoutTableRow* LayoutTableSection::lastRow() const
193 { 193 {
194 ASSERT(children() == virtualChildren()); 194 ASSERT(children() == virtualChildren());
195 return toLayoutTableRow(children()->lastChild()); 195 return toLayoutTableRow(children()->lastChild());
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // LayoutTableRow_h 200 #endif // LayoutTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698