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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, | 466 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, |
467 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); | 467 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); |
468 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); | 468 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); |
469 BidiRun* handleTrailingSpaces(BidiRunList<BidiRun>&, BidiContext*); | 469 BidiRun* handleTrailingSpaces(BidiRunList<BidiRun>&, BidiContext*); |
470 void appendFloatingObjectToLastLine(FloatingObject*); | 470 void appendFloatingObjectToLastLine(FloatingObject*); |
471 // Helper function for layoutInlineChildren() | 471 // Helper function for layoutInlineChildren() |
472 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); | 472 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); |
473 void layoutRunsAndFloats(LineLayoutState&); | 473 void layoutRunsAndFloats(LineLayoutState&); |
474 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); | 474 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); |
475 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, const
InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiStatus, unsigned
consecutiveHyphenatedLines); | 475 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, const
InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiStatus, unsigned
consecutiveHyphenatedLines); |
476 void updateShapeAndSegmentsForCurrentLine(ShapeInsideInfo*&, const LayoutSiz
e&, LineLayoutState&); | |
477 void updateShapeAndSegmentsForCurrentLineInFlowThread(ShapeInsideInfo*&, Lin
eLayoutState&); | |
478 bool adjustLogicalLineTopAndLogicalHeightIfNeeded(ShapeInsideInfo*, LayoutUn
it, LineLayoutState&, InlineBidiResolver&, FloatingObject*, InlineIterator&, Wor
dMeasurements&); | |
479 void linkToEndLineIfNeeded(LineLayoutState&); | 476 void linkToEndLineIfNeeded(LineLayoutState&); |
480 static void repaintDirtyFloats(Vector<FloatWithRect>& floats); | 477 static void repaintDirtyFloats(Vector<FloatWithRect>& floats); |
481 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); | 478 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); |
482 RootInlineBox* determineStartPosition(LineLayoutState&, InlineBidiResolver&)
; | 479 RootInlineBox* determineStartPosition(LineLayoutState&, InlineBidiResolver&)
; |
483 void determineEndPosition(LineLayoutState&, RootInlineBox* startBox, InlineI
terator& cleanLineStart, BidiStatus& cleanLineBidiStatus); | 480 void determineEndPosition(LineLayoutState&, RootInlineBox* startBox, InlineI
terator& cleanLineStart, BidiStatus& cleanLineBidiStatus); |
484 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&); | 481 bool checkPaginationAndFloatsAtEndLine(LineLayoutState&); |
485 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); | 482 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); |
486 void deleteEllipsisLineBoxes(); | 483 void deleteEllipsisLineBoxes(); |
487 void checkLinesForTextOverflow(); | 484 void checkLinesForTextOverflow(); |
488 // Positions new floats and also adjust all floats encountered on the line i
f any of them | 485 // Positions new floats and also adjust all floats encountered on the line i
f any of them |
489 // have to move to the next page/column. | 486 // have to move to the next page/column. |
490 bool positionNewFloatOnLine(FloatingObject* newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); | 487 bool positionNewFloatOnLine(FloatingObject* newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo&, LineWidth&); |
491 | 488 |
492 | 489 |
493 // END METHODS DEFINED IN RenderBlockLineLayout | 490 // END METHODS DEFINED IN RenderBlockLineLayout |
494 | 491 |
495 }; | 492 }; |
496 | 493 |
497 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 494 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
498 | 495 |
499 } // namespace WebCore | 496 } // namespace WebCore |
500 | 497 |
501 #endif // RenderBlockFlow_h | 498 #endif // RenderBlockFlow_h |
OLD | NEW |