| 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 30 matching lines...) Expand all Loading... |
| 41 #include "core/rendering/line/TrailingObjects.h" | 41 #include "core/rendering/line/TrailingObjects.h" |
| 42 #include "core/rendering/style/RenderStyleConstants.h" | 42 #include "core/rendering/style/RenderStyleConstants.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class MarginInfo; | 46 class MarginInfo; |
| 47 class LineBreaker; | 47 class LineBreaker; |
| 48 class LineInfo; | 48 class LineInfo; |
| 49 class LineWidth; | 49 class LineWidth; |
| 50 class RenderMultiColumnFlowThread; | 50 class RenderMultiColumnFlowThread; |
| 51 class RenderMultiColumnSpannerPlaceholder; |
| 51 class RenderRubyRun; | 52 class RenderRubyRun; |
| 52 template <class Run> class BidiRunList; | 53 template <class Run> class BidiRunList; |
| 53 | 54 |
| 54 class RenderBlockFlow : public RenderBlock { | 55 class RenderBlockFlow : public RenderBlock { |
| 55 public: | 56 public: |
| 56 explicit RenderBlockFlow(ContainerNode*); | 57 explicit RenderBlockFlow(ContainerNode*); |
| 57 virtual ~RenderBlockFlow(); | 58 virtual ~RenderBlockFlow(); |
| 58 virtual void trace(Visitor*) override; | 59 virtual void trace(Visitor*) override; |
| 59 | 60 |
| 60 static RenderBlockFlow* createAnonymous(Document*); | 61 static RenderBlockFlow* createAnonymous(Document*); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 GapRects inlineSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 196 GapRects inlineSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
| 196 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; | 197 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; |
| 197 GapRects blockSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint&
rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 198 GapRects blockSelectionGaps(const RenderBlock* rootBlock, const LayoutPoint&
rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
| 198 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; | 199 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*) const; |
| 199 LayoutRect blockSelectionGap(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 200 LayoutRect blockSelectionGap(const RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
| 200 LayoutUnit lastLogicalTop, LayoutUnit lastLogicalLeft, LayoutUnit lastLo
gicalRight, LayoutUnit logicalBottom, const PaintInfo*) const; | 201 LayoutUnit lastLogicalTop, LayoutUnit lastLogicalLeft, LayoutUnit lastLo
gicalRight, LayoutUnit logicalBottom, const PaintInfo*) const; |
| 201 | 202 |
| 202 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin
ationStrut : LayoutUnit(); } | 203 LayoutUnit paginationStrut() const { return m_rareData ? m_rareData->m_pagin
ationStrut : LayoutUnit(); } |
| 203 void setPaginationStrut(LayoutUnit); | 204 void setPaginationStrut(LayoutUnit); |
| 204 | 205 |
| 206 void positionSpannerDescendant(RenderMultiColumnSpannerPlaceholder& child); |
| 207 |
| 205 virtual bool avoidsFloats() const override; | 208 virtual bool avoidsFloats() const override; |
| 206 | 209 |
| 207 using RenderBoxModelObject::moveChildrenTo; | 210 using RenderBoxModelObject::moveChildrenTo; |
| 208 virtual void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderOb
ject* startChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRe
moveInsert = false) override; | 211 virtual void moveChildrenTo(RenderBoxModelObject* toBoxModelObject, RenderOb
ject* startChild, RenderObject* endChild, RenderObject* beforeChild, bool fullRe
moveInsert = false) override; |
| 209 | 212 |
| 210 LayoutUnit xPositionForFloatIncludingMargin(const FloatingObject* child) con
st | 213 LayoutUnit xPositionForFloatIncludingMargin(const FloatingObject* child) con
st |
| 211 { | 214 { |
| 212 if (isHorizontalWritingMode()) | 215 if (isHorizontalWritingMode()) |
| 213 return child->x() + child->renderer()->marginLeft(); | 216 return child->x() + child->renderer()->marginLeft(); |
| 214 | 217 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 528 |
| 526 // END METHODS DEFINED IN RenderBlockLineLayout | 529 // END METHODS DEFINED IN RenderBlockLineLayout |
| 527 | 530 |
| 528 }; | 531 }; |
| 529 | 532 |
| 530 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); | 533 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlockFlow, isRenderBlockFlow()); |
| 531 | 534 |
| 532 } // namespace blink | 535 } // namespace blink |
| 533 | 536 |
| 534 #endif // RenderBlockFlow_h | 537 #endif // RenderBlockFlow_h |
| OLD | NEW |