| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ | 5 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ |
| 6 #define SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ | 6 #define SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ |
| 7 | 7 |
| 8 #include "sky/engine/core/dom/ContainerNode.h" | 8 #include "sky/engine/core/dom/ContainerNode.h" |
| 9 #include "sky/engine/core/rendering/RenderBlockFlow.h" | 9 #include "sky/engine/core/rendering/RenderBlockFlow.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 bool isRenderParagraph() const override { return true; } | 22 bool isRenderParagraph() const override { return true; } |
| 23 | 23 |
| 24 virtual RootInlineBox* lineAtIndex(int) const; | 24 virtual RootInlineBox* lineAtIndex(int) const; |
| 25 virtual int lineCount(const RootInlineBox* = 0, bool* = 0) const; | 25 virtual int lineCount(const RootInlineBox* = 0, bool* = 0) const; |
| 26 | 26 |
| 27 GapRects inlineSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 27 GapRects inlineSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
| 28 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*); | 28 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, const PaintInfo*); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 void layoutChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutUnit&
paintInvalidationLogicalTop, LayoutUnit& paintInvalidationLogicalBottom, LayoutU
nit beforeEdge, LayoutUnit afterEdge) final; | 31 void layoutChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutUnit b
eforeEdge, LayoutUnit afterEdge) final; |
| 32 | 32 |
| 33 void addOverflowFromChildren() final; | 33 void addOverflowFromChildren() final; |
| 34 | 34 |
| 35 void simplifiedNormalFlowLayout() final; | 35 void simplifiedNormalFlowLayout() final; |
| 36 | 36 |
| 37 void paintContents(PaintInfo&, const LayoutPoint&) final; | 37 void paintContents(PaintInfo&, const LayoutPoint&) final; |
| 38 | 38 |
| 39 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc
ation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction)
final; | 39 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc
ation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction)
final; |
| 40 | 40 |
| 41 virtual ETextAlign textAlignmentForLine(bool endsWithSoftBreak) const; | 41 virtual ETextAlign textAlignmentForLine(bool endsWithSoftBreak) const; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 69 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); | 69 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); |
| 70 void deleteEllipsisLineBoxes(); | 70 void deleteEllipsisLineBoxes(); |
| 71 void checkLinesForTextOverflow(); | 71 void checkLinesForTextOverflow(); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph()); | 74 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph()); |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ | 78 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ |
| OLD | NEW |