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

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

Issue 1212893005: Add position: sticky as supported position value when CSSStickyPosition is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Merge, convert pixel to ref tests, and address comments. Created 5 years, 5 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
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont); 135 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont);
136 void splitFlow(LayoutObject* beforeChild, LayoutBlock* newBlockBox, 136 void splitFlow(LayoutObject* beforeChild, LayoutBlock* newBlockBox,
137 LayoutObject* newChild, LayoutBoxModelObject* oldCont); 137 LayoutObject* newChild, LayoutBoxModelObject* oldCont);
138 138
139 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout() 139 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout()
140 140
141 void paint(const PaintInfo&, const LayoutPoint&) final; 141 void paint(const PaintInfo&, const LayoutPoint&) final;
142 142
143 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final; 143 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final;
144 144
145 DeprecatedPaintLayerType layerTypeRequired() const override { return isRelPo sitioned() || createsGroup() || hasClipPath() || style()->shouldCompositeForCurr entAnimations() || style()->hasCompositorProxy() ? NormalDeprecatedPaintLayer : NoDeprecatedPaintLayer; } 145 DeprecatedPaintLayerType layerTypeRequired() const override { return isInFlo wPositioned() || createsGroup() || hasClipPath() || style()->shouldCompositeForC urrentAnimations() || style()->hasCompositorProxy() ? NormalDeprecatedPaintLayer : NoDeprecatedPaintLayer; }
146 146
147 LayoutUnit offsetLeft() const final; 147 LayoutUnit offsetLeft() const final;
148 LayoutUnit offsetTop() const final; 148 LayoutUnit offsetTop() const final;
149 LayoutUnit offsetWidth() const final { return linesBoundingBox().width(); } 149 LayoutUnit offsetWidth() const final { return linesBoundingBox().width(); }
150 LayoutUnit offsetHeight() const final { return linesBoundingBox().height(); } 150 LayoutUnit offsetHeight() const final { return linesBoundingBox().height(); }
151 151
152 LayoutRect absoluteClippedOverflowRect() const override; 152 LayoutRect absoluteClippedOverflowRect() const override;
153 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride; 153 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov erride;
154 LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidationState * = nullptr) const final; 154 LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidationState * = nullptr) const final;
155 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final; 155 void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInva lidationContainer, LayoutRect&, const PaintInvalidationState*) const final;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 LayoutObjectChildList m_children; 192 LayoutObjectChildList m_children;
193 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. 193 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.
194 }; 194 };
195 195
196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
197 197
198 } // namespace blink 198 } // namespace blink
199 199
200 #endif // LayoutInline_h 200 #endif // LayoutInline_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutBoxModelObject.cpp ('k') | Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698