| 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // line layout code is separated from RenderBlock and RenderBlockFlow. | 473 // line layout code is separated from RenderBlock and RenderBlockFlow. |
| 474 // START METHODS DEFINED IN RenderBlockLineLayout | 474 // START METHODS DEFINED IN RenderBlockLineLayout |
| 475 private: | 475 private: |
| 476 InlineFlowBox* createLineBoxes(RenderObject*, const LineInfo&, InlineBox* ch
ildBox); | 476 InlineFlowBox* createLineBoxes(RenderObject*, const LineInfo&, InlineBox* ch
ildBox); |
| 477 RootInlineBox* constructLine(BidiRunList<BidiRun>&, const LineInfo&); | 477 RootInlineBox* constructLine(BidiRunList<BidiRun>&, const LineInfo&); |
| 478 void setMarginsForRubyRun(BidiRun*, RenderRubyRun*, RenderObject*, const Lin
eInfo&); | 478 void setMarginsForRubyRun(BidiRun*, RenderRubyRun*, RenderObject*, const Lin
eInfo&); |
| 479 void computeInlineDirectionPositionsForLine(RootInlineBox*, const LineInfo&,
BidiRun* firstRun, BidiRun* trailingSpaceRun, bool reachedEnd, GlyphOverflowAnd
FallbackFontsMap&, VerticalPositionCache&, WordMeasurements&); | 479 void computeInlineDirectionPositionsForLine(RootInlineBox*, const LineInfo&,
BidiRun* firstRun, BidiRun* trailingSpaceRun, bool reachedEnd, GlyphOverflowAnd
FallbackFontsMap&, VerticalPositionCache&, WordMeasurements&); |
| 480 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, | 480 BidiRun* computeInlineDirectionPositionsForSegment(RootInlineBox*, const Lin
eInfo&, ETextAlign, float& logicalLeft, |
| 481 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); | 481 float& availableLogicalWidth, BidiRun* firstRun, BidiRun* trailingSpaceR
un, GlyphOverflowAndFallbackFontsMap& textBoxDataMap, VerticalPositionCache&, Wo
rdMeasurements&); |
| 482 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); | 482 void computeBlockDirectionPositionsForLine(RootInlineBox*, BidiRun*, GlyphOv
erflowAndFallbackFontsMap&, VerticalPositionCache&); |
| 483 BidiRun* handleTrailingSpaces(BidiRunList<BidiRun>&, BidiContext*); | |
| 484 void appendFloatingObjectToLastLine(FloatingObject*); | 483 void appendFloatingObjectToLastLine(FloatingObject*); |
| 485 // Helper function for layoutInlineChildren() | 484 // Helper function for layoutInlineChildren() |
| 486 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); | 485 RootInlineBox* createLineBoxesFromBidiRuns(unsigned bidiLevel, BidiRunList<B
idiRun>&, const InlineIterator& end, LineInfo&, VerticalPositionCache&, BidiRun*
trailingSpaceRun, WordMeasurements&); |
| 487 void layoutRunsAndFloats(LineLayoutState&); | 486 void layoutRunsAndFloats(LineLayoutState&); |
| 488 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); | 487 const InlineIterator& restartLayoutRunsAndFloatsInRange(LayoutUnit oldLogica
lHeight, LayoutUnit newLogicalHeight, FloatingObject* lastFloatFromPreviousLine
, InlineBidiResolver&, const InlineIterator&); |
| 489 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, | 488 void layoutRunsAndFloatsInRange(LineLayoutState&, InlineBidiResolver&, |
| 490 const InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiSta
tus); | 489 const InlineIterator& cleanLineStart, const BidiStatus& cleanLineBidiSta
tus); |
| 491 void linkToEndLineIfNeeded(LineLayoutState&); | 490 void linkToEndLineIfNeeded(LineLayoutState&); |
| 492 static void markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& float
s); | 491 static void markDirtyFloatsForPaintInvalidation(Vector<FloatWithRect>& float
s); |
| 493 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); | 492 void checkFloatsInCleanLine(RootInlineBox*, Vector<FloatWithRect>&, size_t&
floatIndex, bool& encounteredNewFloat, bool& dirtiedByFloat); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 504 | 503 |
| 505 // END METHODS DEFINED IN RenderBlockLineLayout | 504 // END METHODS DEFINED IN RenderBlockLineLayout |
| 506 | 505 |
| 507 }; | 506 }; |
| 508 | 507 |
| 509 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 508 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
| 510 | 509 |
| 511 } // namespace blink | 510 } // namespace blink |
| 512 | 511 |
| 513 #endif // RenderBlockFlow_h | 512 #endif // RenderBlockFlow_h |
| OLD | NEW |