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

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

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix style errors and remaining layout tests. Created 5 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; 159 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final;
160 160
161 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes 161 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes
162 // the rects for culled inline boxes, which aren't necessary for paint inval idation. 162 // the rects for culled inline boxes, which aren't necessary for paint inval idation.
163 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const; 163 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const;
164 164
165 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = nullptr) const override; 165 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = nullptr) const override;
166 166
167 PositionWithAffinity positionForPoint(const LayoutPoint&) final; 167 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
168 168
169 LayoutRect frameRectForStickyPositioning() const override final { return Lay outRect(linesBoundingBox()); }
170
169 IntRect borderBoundingBox() const final 171 IntRect borderBoundingBox() const final
170 { 172 {
171 IntRect boundingBox = linesBoundingBox(); 173 IntRect boundingBox = linesBoundingBox();
172 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); 174 return IntRect(0, 0, boundingBox.width(), boundingBox.height());
173 } 175 }
174 176
175 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby 177 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby
176 178
177 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); } 179 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); }
178 180
(...skipping 16 matching lines...) Expand all
195 197
196 LayoutObjectChildList m_children; 198 LayoutObjectChildList m_children;
197 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. 199 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes.
198 }; 200 };
199 201
200 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 202 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
201 203
202 } // namespace blink 204 } // namespace blink
203 205
204 #endif // LayoutInline_h 206 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698