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

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 and skip anonymous containing blocks for sticky container. Created 4 years, 10 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } 135 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); }
136 136
137 void willBeRemovedFromTree() override; 137 void willBeRemovedFromTree() override;
138 138
139 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 139 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
140 void layout() override; 140 void layout() override;
141 141
142 PaintLayerType layerTypeRequired() const override 142 PaintLayerType layerTypeRequired() const override
143 { 143 {
144 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || style() ->hasCompositorProxy()) 144 if (hasTransformRelatedProperty() || hasHiddenBackface() || hasClipPath( ) || createsGroup() || style()->shouldCompositeForCurrentAnimations() || isStick yPositioned() || style()->hasCompositorProxy())
145 return NormalPaintLayer; 145 return NormalPaintLayer;
146 146
147 if (hasOverflowClip()) 147 if (hasOverflowClip())
148 return OverflowClipPaintLayer; 148 return OverflowClipPaintLayer;
149 149
150 return NoPaintLayer; 150 return NoPaintLayer;
151 } 151 }
152 152
153 void paint(const PaintInfo&, const LayoutPoint&) const override; 153 void paint(const PaintInfo&, const LayoutPoint&) const override;
154 154
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 inline LayoutTableRow* LayoutTableSection::lastRow() const 188 inline LayoutTableRow* LayoutTableSection::lastRow() const
189 { 189 {
190 ASSERT(children() == virtualChildren()); 190 ASSERT(children() == virtualChildren());
191 return toLayoutTableRow(children()->lastChild()); 191 return toLayoutTableRow(children()->lastChild());
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
195 195
196 #endif // LayoutTableRow_h 196 #endif // LayoutTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698