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

Side by Side Diff: sky/engine/core/rendering/line/LineLayoutState.h

Issue 1068683002: Delete RenderBlockFlow. (Closed) Base URL: https://github.com/domokit/mojo.git@block
Patch Set: Created 5 years, 8 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2014 Adobe Systems Incorporated. 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.
11 * 11 *
12 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details. 15 * Library General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU Library General Public License 17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to 18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA. 20 * Boston, MA 02110-1301, USA.
21 * 21 *
22 */ 22 */
23 23
24 #ifndef SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_ 24 #ifndef SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_
25 #define SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_ 25 #define SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_
26 26
27 #include "sky/engine/core/rendering/RenderBlockFlow.h" 27 #include "sky/engine/core/rendering/RenderParagraph.h"
28 #include "sky/engine/platform/geometry/LayoutRect.h" 28 #include "sky/engine/platform/geometry/LayoutRect.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 // LineLayoutState keeps track of global information 32 // LineLayoutState keeps track of global information
33 // during an entire linebox tree layout pass (aka RenderParagraph::layoutChildre n). 33 // during an entire linebox tree layout pass (aka RenderParagraph::layoutChildre n).
34 class LineLayoutState { 34 class LineLayoutState {
35 public: 35 public:
36 LineLayoutState(bool fullLayout) 36 LineLayoutState(bool fullLayout)
37 : m_lastFloat(0) 37 : m_lastFloat(0)
(...skipping 24 matching lines...) Expand all
62 62
63 LayoutUnit endLineLogicalTop() const { return m_endLineLogicalTop; } 63 LayoutUnit endLineLogicalTop() const { return m_endLineLogicalTop; }
64 void setEndLineLogicalTop(LayoutUnit logicalTop) { m_endLineLogicalTop = log icalTop; } 64 void setEndLineLogicalTop(LayoutUnit logicalTop) { m_endLineLogicalTop = log icalTop; }
65 65
66 RootInlineBox* endLine() const { return m_endLine; } 66 RootInlineBox* endLine() const { return m_endLine; }
67 void setEndLine(RootInlineBox* line) { m_endLine = line; } 67 void setEndLine(RootInlineBox* line) { m_endLine = line; }
68 68
69 FloatingObject* lastFloat() const { return m_lastFloat; } 69 FloatingObject* lastFloat() const { return m_lastFloat; }
70 void setLastFloat(FloatingObject* lastFloat) { m_lastFloat = lastFloat; } 70 void setLastFloat(FloatingObject* lastFloat) { m_lastFloat = lastFloat; }
71 71
72 Vector<RenderBlockFlow::FloatWithRect>& floats() { return m_floats; } 72 Vector<RenderParagraph::FloatWithRect>& floats() { return m_floats; }
73 73
74 unsigned floatIndex() const { return m_floatIndex; } 74 unsigned floatIndex() const { return m_floatIndex; }
75 void setFloatIndex(unsigned floatIndex) { m_floatIndex = floatIndex; } 75 void setFloatIndex(unsigned floatIndex) { m_floatIndex = floatIndex; }
76 76
77 LayoutUnit adjustedLogicalLineTop() const { return m_adjustedLogicalLineTop; } 77 LayoutUnit adjustedLogicalLineTop() const { return m_adjustedLogicalLineTop; }
78 void setAdjustedLogicalLineTop(LayoutUnit value) { m_adjustedLogicalLineTop = value; } 78 void setAdjustedLogicalLineTop(LayoutUnit value) { m_adjustedLogicalLineTop = value; }
79 79
80 private: 80 private:
81 Vector<RenderBlockFlow::FloatWithRect> m_floats; 81 Vector<RenderParagraph::FloatWithRect> m_floats;
eseidel 2015/04/07 19:01:22 Do these still exist?
ojan 2015/04/07 20:35:46 They don't appear to. Will Remove.
82 FloatingObject* m_lastFloat; 82 FloatingObject* m_lastFloat;
83 RootInlineBox* m_endLine; 83 RootInlineBox* m_endLine;
84 LineInfo m_lineInfo; 84 LineInfo m_lineInfo;
85 unsigned m_floatIndex; 85 unsigned m_floatIndex;
86 LayoutUnit m_endLineLogicalTop; 86 LayoutUnit m_endLineLogicalTop;
87 bool m_endLineMatched; 87 bool m_endLineMatched;
88 bool m_checkForFloatsFromLastLine; 88 bool m_checkForFloatsFromLastLine;
89 // Used as a performance optimization to avoid doing a full paint invalidati on when our floats 89 // Used as a performance optimization to avoid doing a full paint invalidati on when our floats
90 // change but we don't have any inline children. 90 // change but we don't have any inline children.
91 bool m_hasInlineChild; 91 bool m_hasInlineChild;
92 92
93 bool m_isFullLayout; 93 bool m_isFullLayout;
94 94
95 LayoutUnit m_adjustedLogicalLineTop; 95 LayoutUnit m_adjustedLogicalLineTop;
96 }; 96 };
97 97
98 } 98 }
99 99
100 #endif // SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_ 100 #endif // SKY_ENGINE_CORE_RENDERING_LINE_LINELAYOUTSTATE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/line/LineBreaker.h ('k') | sky/engine/core/rendering/line/LineWidth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698