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

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

Issue 1198433002: *** NOT FOR LANDING *** mapLocalToContainer and offsetFromContainer cleanup. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: There's also work that LayoutBoxModelObject::offsetFromContainer could do instead of LayoutObject. Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutFlowThread.h ('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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual LayoutUnit marginTop() const override final; 54 virtual LayoutUnit marginTop() const override final;
55 virtual LayoutUnit marginBottom() const override final; 55 virtual LayoutUnit marginBottom() const override final;
56 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = nullptr) c onst override final; 56 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = nullptr) c onst override final;
57 virtual LayoutUnit marginAfter(const ComputedStyle* otherStyle = nullptr) co nst override final; 57 virtual LayoutUnit marginAfter(const ComputedStyle* otherStyle = nullptr) co nst override final;
58 virtual LayoutUnit marginStart(const ComputedStyle* otherStyle = nullptr) co nst override final; 58 virtual LayoutUnit marginStart(const ComputedStyle* otherStyle = nullptr) co nst override final;
59 virtual LayoutUnit marginEnd(const ComputedStyle* otherStyle = nullptr) cons t override final; 59 virtual LayoutUnit marginEnd(const ComputedStyle* otherStyle = nullptr) cons t override final;
60 60
61 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override final; 61 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const override final;
62 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid e; 62 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid e;
63 63
64 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin t&, bool* offsetDependsOnPoint = nullptr) const override final;
65
66 IntRect linesBoundingBox() const; 64 IntRect linesBoundingBox() const;
67 LayoutRect linesVisualOverflowBoundingBox() const; 65 LayoutRect linesVisualOverflowBoundingBox() const;
68 66
69 InlineFlowBox* createAndAppendInlineFlowBox(); 67 InlineFlowBox* createAndAppendInlineFlowBox();
70 68
71 void dirtyLineBoxes(bool fullLayout); 69 void dirtyLineBoxes(bool fullLayout);
72 70
73 LineBoxList* lineBoxes() { return &m_lineBoxes; } 71 LineBoxList* lineBoxes() { return &m_lineBoxes; }
74 const LineBoxList* lineBoxes() const { return &m_lineBoxes; } 72 const LineBoxList* lineBoxes() const { return &m_lineBoxes; }
75 73
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 149
152 virtual LayoutRect absoluteClippedOverflowRect() const override; 150 virtual LayoutRect absoluteClippedOverflowRect() const override;
153 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const override; 151 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const override;
154 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat ionState* = nullptr) const override final; 152 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat ionState* = nullptr) const override final;
155 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride final; 153 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride final;
156 154
157 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes 155 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes
158 // the rects for culled inline boxes, which aren't necessary for paint inval idation. 156 // the rects for culled inline boxes, which aren't necessary for paint inval idation.
159 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const; 157 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = nullptr) const;
160 158
161 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = nullptr) const override;
162
163 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal; 159 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal;
164 160
165 virtual IntRect borderBoundingBox() const override final 161 virtual IntRect borderBoundingBox() const override final
166 { 162 {
167 IntRect boundingBox = linesBoundingBox(); 163 IntRect boundingBox = linesBoundingBox();
168 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); 164 return IntRect(0, 0, boundingBox.width(), boundingBox.height());
169 } 165 }
170 166
171 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby 167 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby
172 168
(...skipping 18 matching lines...) Expand all
191 187
192 LayoutObjectChildList m_children; 188 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. 189 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 }; 190 };
195 191
196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 192 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
197 193
198 } // namespace blink 194 } // namespace blink
199 195
200 #endif // LayoutInline_h 196 #endif // LayoutInline_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFlowThread.h ('k') | Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698