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

Side by Side Diff: third_party/WebKit/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: Move compositor plumbing into a separate review. Created 5 years, 2 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; 185 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final;
186 186
187 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes 187 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes
188 // the rects for culled inline boxes, which aren't necessary for paint inval idation. 188 // the rects for culled inline boxes, which aren't necessary for paint inval idation.
189 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const; 189 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const;
190 190
191 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = nullptr) const override; 191 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = nullptr) const override;
192 192
193 PositionWithAffinity positionForPoint(const LayoutPoint&) final; 193 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
194 194
195 LayoutRect frameRectForStickyPositioning() const override final { return Lay outRect(linesBoundingBox()); }
196
195 IntRect borderBoundingBox() const final 197 IntRect borderBoundingBox() const final
196 { 198 {
197 IntRect boundingBox = linesBoundingBox(); 199 IntRect boundingBox = linesBoundingBox();
198 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); 200 return IntRect(0, 0, boundingBox.width(), boundingBox.height());
199 } 201 }
200 202
201 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby 203 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby
202 204
203 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); } 205 void dirtyLinesFromChangedChild(LayoutObject* child) final { m_lineBoxes.dir tyLinesFromChangedChild(LineLayoutItem(this), LineLayoutItem(child)); }
204 206
(...skipping 16 matching lines...) Expand all
221 223
222 LayoutObjectChildList m_children; 224 LayoutObjectChildList m_children;
223 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. 225 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.
224 }; 226 };
225 227
226 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 228 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
227 229
228 } // namespace blink 230 } // namespace blink
229 231
230 #endif // LayoutInline_h 232 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698