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

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

Issue 1997033002: Move continuation getter and setter down to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
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 14 matching lines...) Expand all
25 25
26 #include "core/CoreExport.h" 26 #include "core/CoreExport.h"
27 #include "core/editing/PositionWithAffinity.h" 27 #include "core/editing/PositionWithAffinity.h"
28 #include "core/layout/LayoutBoxModelObject.h" 28 #include "core/layout/LayoutBoxModelObject.h"
29 #include "core/layout/api/LineLayoutItem.h" 29 #include "core/layout/api/LineLayoutItem.h"
30 #include "core/layout/line/InlineFlowBox.h" 30 #include "core/layout/line/InlineFlowBox.h"
31 #include "core/layout/line/LineBoxList.h" 31 #include "core/layout/line/LineBoxList.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class LayoutBlockFlow;
36
35 // LayoutInline is the LayoutObject associated with display: inline. 37 // LayoutInline is the LayoutObject associated with display: inline.
36 // This is called an "inline box" in CSS 2.1. 38 // This is called an "inline box" in CSS 2.1.
37 // http://www.w3.org/TR/CSS2/visuren.html#inline-boxes 39 // http://www.w3.org/TR/CSS2/visuren.html#inline-boxes
38 // 40 //
39 // It is also the base class for content that behaves in similar way (like 41 // It is also the base class for content that behaves in similar way (like
40 // quotes and "display: ruby"). 42 // quotes and "display: ruby").
41 // 43 //
42 // Note that LayoutInline is always 'inline-level' but other LayoutObject 44 // Note that LayoutInline is always 'inline-level' but other LayoutObject
43 // can be 'inline-level', which is why it's stored as a boolean on LayoutObject 45 // can be 'inline-level', which is why it's stored as a boolean on LayoutObject
44 // (see LayoutObject::isInline()). 46 // (see LayoutObject::isInline()).
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 template<typename GeneratorContext> 210 template<typename GeneratorContext>
209 void generateLineBoxRects(GeneratorContext& yield) const; 211 void generateLineBoxRects(GeneratorContext& yield) const;
210 template<typename GeneratorContext> 212 template<typename GeneratorContext>
211 void generateCulledLineBoxRects(GeneratorContext& yield, const LayoutInline* container) const; 213 void generateCulledLineBoxRects(GeneratorContext& yield, const LayoutInline* container) const;
212 214
213 void addChildToContinuation(LayoutObject* newChild, LayoutObject* beforeChil d); 215 void addChildToContinuation(LayoutObject* newChild, LayoutObject* beforeChil d);
214 void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* befo reChild = nullptr) final; 216 void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* befo reChild = nullptr) final;
215 217
216 void moveChildrenToIgnoringContinuation(LayoutInline* to, LayoutObject* star tChild); 218 void moveChildrenToIgnoringContinuation(LayoutInline* to, LayoutObject* star tChild);
217 219
218 void splitInlines(LayoutBlock* fromBlock, LayoutBlock* toBlock, LayoutBlock* middleBlock, 220 void splitInlines(LayoutBlockFlow* fromBlock, LayoutBlockFlow* toBlock, Layo utBlockFlow* middleBlock,
219 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont); 221 LayoutObject* beforeChild, LayoutBoxModelObject* oldCont);
220 void splitFlow(LayoutObject* beforeChild, LayoutBlock* newBlockBox, 222 void splitFlow(LayoutObject* beforeChild, LayoutBlockFlow* newBlockBox,
221 LayoutObject* newChild, LayoutBoxModelObject* oldCont); 223 LayoutObject* newChild, LayoutBoxModelObject* oldCont);
222 224
223 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout() 225 void layout() final { ASSERT_NOT_REACHED(); } // Do nothing for layout()
224 226
225 void paint(const PaintInfo&, const LayoutPoint&) const final; 227 void paint(const PaintInfo&, const LayoutPoint&) const final;
226 228
227 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final; 229 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) final;
228 230
229 PaintLayerType layerTypeRequired() const override; 231 PaintLayerType layerTypeRequired() const override;
230 232
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 275
274 LayoutObjectChildList m_children; 276 LayoutObjectChildList m_children;
275 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. 277 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.
276 }; 278 };
277 279
278 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); 280 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline());
279 281
280 } // namespace blink 282 } // namespace blink
281 283
282 #endif // LayoutInline_h 284 #endif // LayoutInline_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698