OLD | NEW |
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 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 RootInlineBox* createAndAppendRootInlineBox(); | 104 RootInlineBox* createAndAppendRootInlineBox(); |
105 | 105 |
106 void markAllDescendantsWithFloatsForLayout(RenderBox* floatToRemove = 0, boo
l inLayout = true); | 106 void markAllDescendantsWithFloatsForLayout(RenderBox* floatToRemove = 0, boo
l inLayout = true); |
107 void markSiblingsWithFloatsForLayout(RenderBox* floatToRemove = 0); | 107 void markSiblingsWithFloatsForLayout(RenderBox* floatToRemove = 0); |
108 | 108 |
109 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } | 109 bool containsFloats() const { return m_floatingObjects && !m_floatingObjects
->set().isEmpty(); } |
110 bool containsFloat(RenderBox*) const; | 110 bool containsFloat(RenderBox*) const; |
111 | 111 |
112 void removeFloatingObjects(); | 112 void removeFloatingObjects(); |
113 | 113 |
114 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; | 114 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; |
115 | 115 |
116 void moveAllChildrenIncludingFloatsTo(RenderBlock* toBlock, bool fullRemoveI
nsert); | 116 void moveAllChildrenIncludingFloatsTo(RenderBlock* toBlock, bool fullRemoveI
nsert); |
117 | 117 |
118 bool generatesLineBoxesForInlineChild(RenderObject*); | 118 bool generatesLineBoxesForInlineChild(LayoutObject*); |
119 | 119 |
120 LayoutUnit logicalTopForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? floatingObject->y() : floatingObject->x(); } | 120 LayoutUnit logicalTopForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? floatingObject->y() : floatingObject->x(); } |
121 LayoutUnit logicalBottomForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->maxY() : floatingObject->m
axX(); } | 121 LayoutUnit logicalBottomForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->maxY() : floatingObject->m
axX(); } |
122 LayoutUnit logicalLeftForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? floatingObject->x() : floatingObject->y(); } | 122 LayoutUnit logicalLeftForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? floatingObject->x() : floatingObject->y(); } |
123 LayoutUnit logicalRightForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->maxX() : floatingObject->ma
xY(); } | 123 LayoutUnit logicalRightForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->maxX() : floatingObject->ma
xY(); } |
124 LayoutUnit logicalWidthForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->width() : floatingObject->h
eight(); } | 124 LayoutUnit logicalWidthForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->width() : floatingObject->h
eight(); } |
125 LayoutUnit logicalHeightForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->height() : floatingObject-
>width(); } | 125 LayoutUnit logicalHeightForFloat(const FloatingObject* floatingObject) const
{ return isHorizontalWritingMode() ? floatingObject->height() : floatingObject-
>width(); } |
126 LayoutSize logicalSizeForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? LayoutSize(floatingObject->width(), floating
Object->height()) : LayoutSize(floatingObject->height(), floatingObject->width()
); } | 126 LayoutSize logicalSizeForFloat(const FloatingObject* floatingObject) const {
return isHorizontalWritingMode() ? LayoutSize(floatingObject->width(), floating
Object->height()) : LayoutSize(floatingObject->height(), floatingObject->width()
); } |
127 | 127 |
128 int pixelSnappedLogicalTopForFloat(const FloatingObject* floatingObject) con
st { return isHorizontalWritingMode() ? floatingObject->frameRect().pixelSnapped
Y() : floatingObject->frameRect().pixelSnappedX(); } | 128 int pixelSnappedLogicalTopForFloat(const FloatingObject* floatingObject) con
st { return isHorizontalWritingMode() ? floatingObject->frameRect().pixelSnapped
Y() : floatingObject->frameRect().pixelSnappedX(); } |
(...skipping 28 matching lines...) Expand all Loading... |
157 floatingObject->setWidth(logicalWidth); | 157 floatingObject->setWidth(logicalWidth); |
158 else | 158 else |
159 floatingObject->setHeight(logicalWidth); | 159 floatingObject->setHeight(logicalWidth); |
160 } | 160 } |
161 | 161 |
162 LayoutUnit startAlignedOffsetForLine(LayoutUnit position, bool shouldIndentT
ext); | 162 LayoutUnit startAlignedOffsetForLine(LayoutUnit position, bool shouldIndentT
ext); |
163 | 163 |
164 void setStaticInlinePositionForChild(RenderBox&, LayoutUnit inlinePosition); | 164 void setStaticInlinePositionForChild(RenderBox&, LayoutUnit inlinePosition); |
165 void updateStaticInlinePositionForChild(RenderBox&, LayoutUnit logicalTop); | 165 void updateStaticInlinePositionForChild(RenderBox&, LayoutUnit logicalTop); |
166 | 166 |
167 static bool shouldSkipCreatingRunsForObject(RenderObject* obj) | 167 static bool shouldSkipCreatingRunsForObject(LayoutObject* obj) |
168 { | 168 { |
169 return obj->isFloating() || (obj->isOutOfFlowPositioned() && !obj->style
()->isOriginalDisplayInlineType() && !obj->container()->isRenderInline()); | 169 return obj->isFloating() || (obj->isOutOfFlowPositioned() && !obj->style
()->isOriginalDisplayInlineType() && !obj->container()->isRenderInline()); |
170 } | 170 } |
171 | 171 |
172 RenderMultiColumnFlowThread* multiColumnFlowThread() const { return m_rareDa
ta ? m_rareData->m_multiColumnFlowThread : 0; } | 172 RenderMultiColumnFlowThread* multiColumnFlowThread() const { return m_rareDa
ta ? m_rareData->m_multiColumnFlowThread : 0; } |
173 void resetMultiColumnFlowThread() | 173 void resetMultiColumnFlowThread() |
174 { | 174 { |
175 if (m_rareData) | 175 if (m_rareData) |
176 m_rareData->m_multiColumnFlowThread = nullptr; | 176 m_rareData->m_multiColumnFlowThread = nullptr; |
177 } | 177 } |
178 | 178 |
179 void addOverflowFromInlineChildren(); | 179 void addOverflowFromInlineChildren(); |
180 | 180 |
181 // FIXME: This should be const to avoid a const_cast, but can modify child d
irty bits and RenderCombineText | 181 // FIXME: This should be const to avoid a const_cast, but can modify child d
irty bits and RenderCombineText |
182 void computeInlinePreferredLogicalWidths(LayoutUnit& minLogicalWidth, Layout
Unit& maxLogicalWidth); | 182 void computeInlinePreferredLogicalWidths(LayoutUnit& minLogicalWidth, Layout
Unit& maxLogicalWidth); |
183 | 183 |
184 virtual bool shouldPaintSelectionGaps() const override final; | 184 virtual bool shouldPaintSelectionGaps() const override final; |
185 LayoutRect logicalLeftSelectionGap(const RenderBlock* rootBlock, const Layou
tPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 185 LayoutRect logicalLeftSelectionGap(const RenderBlock* rootBlock, const Layou
tPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
186 const RenderObject* selObj, LayoutUnit logicalLeft, LayoutUnit logicalTo
p, LayoutUnit logicalHeight, const PaintInfo*) const; | 186 const LayoutObject* selObj, LayoutUnit logicalLeft, LayoutUnit logicalTo
p, LayoutUnit logicalHeight, const PaintInfo*) const; |
187 LayoutRect logicalRightSelectionGap(const RenderBlock* rootBlock, const Layo
utPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 187 LayoutRect logicalRightSelectionGap(const RenderBlock* rootBlock, const Layo
utPoint& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
188 const RenderObject* selObj, LayoutUnit logicalRight, LayoutUnit logicalT
op, LayoutUnit logicalHeight, const PaintInfo*) const; | 188 const LayoutObject* selObj, LayoutUnit logicalRight, LayoutUnit logicalT
op, LayoutUnit logicalHeight, const PaintInfo*) const; |
189 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap) cons
t; | 189 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap) cons
t; |
190 | 190 |
191 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutLayerModelO
bject* paintInvalidationContainer) const override final; | 191 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutLayerModelO
bject* paintInvalidationContainer) const override final; |
192 GapRects selectionGapRectsForPaintInvalidation(const LayoutLayerModelObject*
paintInvalidationContainer) const; | 192 GapRects selectionGapRectsForPaintInvalidation(const LayoutLayerModelObject*
paintInvalidationContainer) const; |
193 GapRects selectionGaps(const RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 193 GapRects selectionGaps(const RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
194 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo* = 0) const; | 194 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo* = 0) const; |
195 GapRects inlineSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 195 GapRects inlineSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
196 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; | 196 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; |
197 GapRects blockSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint&
rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 197 GapRects blockSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint&
rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
198 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; | 198 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; |
199 LayoutRect blockSelectionGap(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 199 LayoutRect blockSelectionGap(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
200 LayoutUnit lastLogicalTop, LayoutUnit lastLogicalLeft, LayoutUnit lastLo
gicalRight, LayoutUnit logicalBottom, const PaintInfo*) const; | 200 LayoutUnit lastLogicalTop, LayoutUnit lastLogicalLeft, LayoutUnit lastLo
gicalRight, LayoutUnit logicalBottom, const PaintInfo*) const; |
201 | 201 |
202 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin
ationStrut : LayoutUnit(); } | 202 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin
ationStrut : LayoutUnit(); } |
203 void setPaginationStrut(LayoutUnit); | 203 void setPaginationStrut(LayoutUnit); |
204 | 204 |
205 void positionSpannerDescendant(RenderMultiColumnSpannerPlaceholder& child); | 205 void positionSpannerDescendant(RenderMultiColumnSpannerPlaceholder& child); |
206 | 206 |
207 virtual bool avoidsFloats() const override; | 207 virtual bool avoidsFloats() const override; |
208 | 208 |
209 using RenderBoxModelObject::moveChildrenTo; | 209 using RenderBoxModelObject::moveChildrenTo; |
210 virtual void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderOb
ject* startChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRe
moveInsert = false) override; | 210 virtual void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, LayoutOb
ject* startChild, LayoutObject* endChild, LayoutObject* beforeChild, bool fullRe
moveInsert = false) override; |
211 | 211 |
212 LayoutUnit xPositionForFloatIncludingMargin(const FloatingObject* child) con
st | 212 LayoutUnit xPositionForFloatIncludingMargin(const FloatingObject* child) con
st |
213 { | 213 { |
214 if (isHorizontalWritingMode()) | 214 if (isHorizontalWritingMode()) |
215 return child->x() + child->renderer()->marginLeft(); | 215 return child->x() + child->renderer()->marginLeft(); |
216 | 216 |
217 return child->x() + marginBeforeForChild(*(child->renderer())); | 217 return child->x() + marginBeforeForChild(*(child->renderer())); |
218 } | 218 } |
219 | 219 |
220 LayoutUnit yPositionForFloatIncludingMargin(const FloatingObject* child) con
st | 220 LayoutUnit yPositionForFloatIncludingMargin(const FloatingObject* child) con
st |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed
Offset, bool applyTextIndent, LayoutUnit logicalHeight = 0) const | 254 LayoutUnit logicalRightOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixed
Offset, bool applyTextIndent, LayoutUnit logicalHeight = 0) const |
255 { | 255 { |
256 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo
gicalTop, fixedOffset, logicalHeight), applyTextIndent); | 256 return adjustLogicalRightOffsetForLine(logicalRightFloatOffsetForLine(lo
gicalTop, fixedOffset, logicalHeight), applyTextIndent); |
257 } | 257 } |
258 LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedO
ffset, bool applyTextIndent, LayoutUnit logicalHeight = 0) const | 258 LayoutUnit logicalLeftOffsetForLine(LayoutUnit logicalTop, LayoutUnit fixedO
ffset, bool applyTextIndent, LayoutUnit logicalHeight = 0) const |
259 { | 259 { |
260 return adjustLogicalLeftOffsetForLine(logicalLeftFloatOffsetForLine(logi
calTop, fixedOffset, logicalHeight), applyTextIndent); | 260 return adjustLogicalLeftOffsetForLine(logicalLeftFloatOffsetForLine(logi
calTop, fixedOffset, logicalHeight), applyTextIndent); |
261 } | 261 } |
262 | 262 |
263 virtual RenderObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/,
SubtreeLayoutScope&); | 263 virtual LayoutObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/,
SubtreeLayoutScope&); |
264 virtual bool updateLogicalWidthAndColumnWidth() override; | 264 virtual bool updateLogicalWidthAndColumnWidth() override; |
265 | 265 |
266 void setLogicalLeftForChild(RenderBox& child, LayoutUnit logicalLeft); | 266 void setLogicalLeftForChild(RenderBox& child, LayoutUnit logicalLeft); |
267 void setLogicalTopForChild(RenderBox& child, LayoutUnit logicalTop); | 267 void setLogicalTopForChild(RenderBox& child, LayoutUnit logicalTop); |
268 void determineLogicalLeftPositionForChild(RenderBox& child); | 268 void determineLogicalLeftPositionForChild(RenderBox& child); |
269 | 269 |
270 private: | 270 private: |
271 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S
ubtreeLayoutScope&); | 271 bool layoutBlockFlow(bool relayoutChildren, LayoutUnit& pageLogicalHeight, S
ubtreeLayoutScope&); |
272 void layoutBlockChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutU
nit beforeEdge, LayoutUnit afterEdge); | 272 void layoutBlockChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutU
nit beforeEdge, LayoutUnit afterEdge); |
273 | 273 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 friend class BreakingContext; // FIXME: It uses insertFloatingObject and pos
itionNewFloatOnLine, if we move those out from the private scope/add a helper to
LineBreaker, we can remove this friend | 500 friend class BreakingContext; // FIXME: It uses insertFloatingObject and pos
itionNewFloatOnLine, if we move those out from the private scope/add a helper to
LineBreaker, we can remove this friend |
501 friend class MarginInfo; | 501 friend class MarginInfo; |
502 friend class LineBreaker; | 502 friend class LineBreaker; |
503 friend class LineWidth; // needs to know FloatingObject | 503 friend class LineWidth; // needs to know FloatingObject |
504 | 504 |
505 // FIXME-BLOCKFLOW: These methods have implementations in | 505 // FIXME-BLOCKFLOW: These methods have implementations in |
506 // RenderBlockLineLayout. They should be moved to the proper header once the | 506 // RenderBlockLineLayout. They should be moved to the proper header once the |
507 // line layout code is separated from RenderBlock and RenderBlockFlow. | 507 // line layout code is separated from RenderBlock and RenderBlockFlow. |
508 // START METHODS DEFINED IN RenderBlockLineLayout | 508 // START METHODS DEFINED IN RenderBlockLineLayout |
509 private: | 509 private: |
510 InlineFlowBox* createLineBoxes(RenderObject*, const LineInfo&, InlineBox* ch
ildBox); | 510 InlineFlowBox* createLineBoxes(LayoutObject*, const LineInfo&, InlineBox* ch
ildBox); |
511 RootInlineBox* constructLine(BidiRunList<BidiRun>&, const LineInfo&); | 511 RootInlineBox* constructLine(BidiRunList<BidiRun>&, const LineInfo&); |
512 void setMarginsForRubyRun(BidiRun*, LayoutRubyRun*, RenderObject*, const Lin
eInfo&); | 512 void setMarginsForRubyRun(BidiRun*, LayoutRubyRun*, LayoutObject*, const Lin
eInfo&); |
513 void computeInlineDirectionPositionsForLine(RootInlineBox*, const LineInfo&,
BidiRun* firstRun, BidiRun* trailingSpaceRun, bool reachedEnd, GlyphOverflowAnd
FallbackFontsMap&, VerticalPositionCache&, WordMeasurements&); | 513 void computeInlineDirectionPositionsForLine(RootInlineBox*, const LineInfo&,
BidiRun* firstRun, BidiRun* trailingSpaceRun, bool reachedEnd, GlyphOverflowAnd
FallbackFontsMap&, VerticalPositionCache&, WordMeasurements&); |
514 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, | 514 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, |
515 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); | 515 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); |
516 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); | 516 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); |
517 void appendFloatingObjectToLastLine(FloatingObject*); | 517 void appendFloatingObjectToLastLine(FloatingObject*); |
518 // Helper function for layoutInlineChildren() | 518 // Helper function for layoutInlineChildren() |
519 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); | 519 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); |
520 void layoutRunsAndFloats(LineLayoutState&); | 520 void layoutRunsAndFloats(LineLayoutState&); |
521 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); | 521 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); |
522 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, | 522 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, |
523 const InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiSta
tus); | 523 const InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiSta
tus); |
524 void linkToEndLineIfNeeded(LineLayoutState&); | 524 void linkToEndLineIfNeeded(LineLayoutState&); |
525 static void markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& float
s); | 525 static void markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& float
s); |
526 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); | 526 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); |
527 RootInlineBox* determineStartPosition(LineLayoutState&, InlineBidiResolver&)
; | 527 RootInlineBox* determineStartPosition(LineLayoutState&, InlineBidiResolver&)
; |
528 void determineEndPosition(LineLayoutState&, RootInlineBox* startBox, InlineI
terator& cleanLineStart, BidiStatus& cleanLineBidiStatus); | 528 void determineEndPosition(LineLayoutState&, RootInlineBox* startBox, InlineI
terator& cleanLineStart, BidiStatus& cleanLineBidiStatus); |
529 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&); | 529 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&); |
530 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); | 530 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); |
531 void deleteEllipsisLineBoxes(); | 531 void deleteEllipsisLineBoxes(); |
532 void checkLinesForTextOverflow(); | 532 void checkLinesForTextOverflow(); |
533 // Positions new floats and also adjust all floats encountered on the line i
f any of them | 533 // Positions new floats and also adjust all floats encountered on the line i
f any of them |
534 // have to move to the next page/column. | 534 // have to move to the next page/column. |
535 bool positionNewFloatOnLine(FloatingObject* newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); | 535 bool positionNewFloatOnLine(FloatingObject* newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); |
536 void positionDialog(); | 536 void positionDialog(); |
537 | 537 |
538 // END METHODS DEFINED IN RenderBlockLineLayout | 538 // END METHODS DEFINED IN RenderBlockLineLayout |
539 | 539 |
540 }; | 540 }; |
541 | 541 |
542 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 542 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
543 | 543 |
544 } // namespace blink | 544 } // namespace blink |
545 | 545 |
546 #endif // RenderBlockFlow_h | 546 #endif // RenderBlockFlow_h |
OLD | NEW |