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

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

Issue 2636253002: Handle nested position:sticky elements (Closed)
Patch Set: Ignore position:sticky offsets when computing localToAncestorQuad offsets Created 3 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) 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. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 LayoutUnit marginAfter(const ComputedStyle* otherStyle = nullptr) const final; 143 LayoutUnit marginAfter(const ComputedStyle* otherStyle = nullptr) const final;
144 LayoutUnit marginStart(const ComputedStyle* otherStyle = nullptr) const final; 144 LayoutUnit marginStart(const ComputedStyle* otherStyle = nullptr) const final;
145 LayoutUnit marginEnd(const ComputedStyle* otherStyle = nullptr) const final; 145 LayoutUnit marginEnd(const ComputedStyle* otherStyle = nullptr) const final;
146 LayoutUnit marginOver() const final; 146 LayoutUnit marginOver() const final;
147 LayoutUnit marginUnder() const final; 147 LayoutUnit marginUnder() const final;
148 148
149 void absoluteRects(Vector<IntRect>&, 149 void absoluteRects(Vector<IntRect>&,
150 const LayoutPoint& accumulatedOffset) const final; 150 const LayoutPoint& accumulatedOffset) const final;
151 FloatRect localBoundingBoxRectForAccessibility() const final; 151 FloatRect localBoundingBoxRectForAccessibility() const final;
152 152
153 LayoutSize offsetFromContainer(const LayoutObject*) const final; 153 LayoutSize offsetFromContainer(const LayoutObject*,
154 bool ignoreSticky = false) const final;
154 155
155 LayoutRect linesBoundingBox() const; 156 LayoutRect linesBoundingBox() const;
156 LayoutRect visualOverflowRect() const final; 157 LayoutRect visualOverflowRect() const final;
157 158
158 InlineFlowBox* createAndAppendInlineFlowBox(); 159 InlineFlowBox* createAndAppendInlineFlowBox();
159 160
160 void dirtyLineBoxes(bool fullLayout); 161 void dirtyLineBoxes(bool fullLayout);
161 162
162 LineBoxList* lineBoxes() { return &m_lineBoxes; } 163 LineBoxList* lineBoxes() { return &m_lineBoxes; }
163 const LineBoxList* lineBoxes() const { return &m_lineBoxes; } 164 const LineBoxList* lineBoxes() const { return &m_lineBoxes; }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // All of the line boxes created for this inline flow. For example, 347 // All of the line boxes created for this inline flow. For example,
347 // <i>Hello<br>world.</i> will have two <i> line boxes. 348 // <i>Hello<br>world.</i> will have two <i> line boxes.
348 LineBoxList m_lineBoxes; 349 LineBoxList m_lineBoxes;
349 }; 350 };
350 351
351 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 352 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
352 353
353 } // namespace blink 354 } // namespace blink
354 355
355 #endif // LayoutInline_h 356 #endif // LayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698