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

Side by Side Diff: Source/core/rendering/RenderInline.h

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderInline.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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override final; 142 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override final;
143 143
144 virtual LayerType layerTypeRequired() const override { return isRelPositione d() || createsGroup() || hasClipPath() || style()->shouldCompositeForCurrentAnim ations() ? NormalLayer : NoLayer; } 144 virtual LayerType layerTypeRequired() const override { return isRelPositione d() || createsGroup() || hasClipPath() || style()->shouldCompositeForCurrentAnim ations() ? NormalLayer : NoLayer; }
145 145
146 virtual LayoutUnit offsetLeft() const override final; 146 virtual LayoutUnit offsetLeft() const override final;
147 virtual LayoutUnit offsetTop() const override final; 147 virtual LayoutUnit offsetTop() const override final;
148 virtual LayoutUnit offsetWidth() const override final { return linesBounding Box().width(); } 148 virtual LayoutUnit offsetWidth() const override final { return linesBounding Box().width(); }
149 virtual LayoutUnit offsetHeight() const override final { return linesBoundin gBox().height(); } 149 virtual LayoutUnit offsetHeight() const override final { return linesBoundin gBox().height(); }
150 150
151 virtual LayoutRect absoluteClippedOverflowRect() const override; 151 virtual LayoutRect absoluteClippedOverflowRect() const override;
152 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t override; 152 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override;
153 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutLayerMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* = 0) const override final; 153 virtual LayoutRect rectWithOutlineForPaintInvalidation(const LayoutBoxModelO bject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalidat ionState* = 0) const override final;
154 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride final; 154 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride final;
155 155
156 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes 156 // This method differs from clippedOverflowRectForPaintInvalidation in that it includes
157 // the rects for culled inline boxes, which aren't necessary for paint inval idation. 157 // the rects for culled inline boxes, which aren't necessary for paint inval idation.
158 LayoutRect clippedOverflowRect(const LayoutLayerModelObject*, const PaintInv alidationState* = 0) const; 158 LayoutRect clippedOverflowRect(const LayoutBoxModelObject*, const PaintInval idationState* = 0) const;
159 159
160 virtual void mapLocalToContainer(const LayoutLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override; 160 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
161 161
162 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal; 162 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal;
163 163
164 virtual IntRect borderBoundingBox() const override final 164 virtual IntRect borderBoundingBox() const override final
165 { 165 {
166 IntRect boundingBox = linesBoundingBox(); 166 IntRect boundingBox = linesBoundingBox();
167 return IntRect(0, 0, boundingBox.width(), boundingBox.height()); 167 return IntRect(0, 0, boundingBox.width(), boundingBox.height());
168 } 168 }
169 169
170 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby 170 virtual InlineFlowBox* createInlineFlowBox(); // Subclassed by SVG and Ruby
(...skipping 19 matching lines...) Expand all
190 190
191 LayoutObjectChildList m_children; 191 LayoutObjectChildList m_children;
192 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. 192 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes.
193 }; 193 };
194 194
195 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); 195 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderInline, isRenderInline());
196 196
197 } // namespace blink 197 } // namespace blink
198 198
199 #endif // RenderInline_h 199 #endif // RenderInline_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | Source/core/rendering/RenderInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698