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/RenderBlock.h" | 9 #include "sky/engine/core/rendering/RenderBlock.h" |
10 #include "sky/engine/core/rendering/line/TrailingObjects.h" | 10 #include "sky/engine/core/rendering/line/TrailingObjects.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void simplifiedNormalFlowLayout() final; | 67 void simplifiedNormalFlowLayout() final; |
68 | 68 |
69 void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) final; | 69 void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) final; |
70 | 70 |
71 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc
ation& locationInContainer, const LayoutPoint& accumulatedOffset) final; | 71 bool hitTestContents(const HitTestRequest&, HitTestResult&, const HitTestLoc
ation& locationInContainer, const LayoutPoint& accumulatedOffset) final; |
72 | 72 |
73 virtual ETextAlign textAlignmentForLine(bool endsWithSoftBreak) const; | 73 virtual ETextAlign textAlignmentForLine(bool endsWithSoftBreak) const; |
74 | 74 |
75 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; | 75 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit&
maxLogicalWidth) const final; |
76 | 76 |
77 int firstLineBoxBaseline() const final; | 77 int firstLineBoxBaseline(FontBaselineOrAuto baselineType) const final; |
78 int lastLineBoxBaseline(LineDirectionMode) const final; | 78 int lastLineBoxBaseline(LineDirectionMode) const final; |
79 | 79 |
80 private: | 80 private: |
81 virtual const char* renderName() const override; | 81 virtual const char* renderName() const override; |
82 | 82 |
83 void layoutChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutUnit b
eforeEdge, LayoutUnit afterEdge); | 83 void layoutChildren(bool relayoutChildren, SubtreeLayoutScope&, LayoutUnit b
eforeEdge, LayoutUnit afterEdge); |
84 | 84 |
85 void markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBot
tom, RootInlineBox* highest = 0); | 85 void markLinesDirtyInBlockRange(LayoutUnit logicalTop, LayoutUnit logicalBot
tom, RootInlineBox* highest = 0); |
86 | 86 |
87 void updateLogicalWidthForAlignment(const ETextAlign&, const RootInlineBox*,
BidiRun* trailingSpaceRun, float& logicalLeft, float& totalLogicalWidth, float&
availableLogicalWidth, unsigned expansionOpportunityCount); | 87 void updateLogicalWidthForAlignment(const ETextAlign&, const RootInlineBox*,
BidiRun* trailingSpaceRun, float& logicalLeft, float& totalLogicalWidth, float&
availableLogicalWidth, unsigned expansionOpportunityCount); |
(...skipping 19 matching lines...) Expand all Loading... |
107 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); | 107 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin
eIterator& endLineStart, const BidiStatus& endLineStatus); |
108 void deleteEllipsisLineBoxes(); | 108 void deleteEllipsisLineBoxes(); |
109 void checkLinesForTextOverflow(); | 109 void checkLinesForTextOverflow(); |
110 }; | 110 }; |
111 | 111 |
112 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph()); | 112 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph()); |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
115 | 115 |
116 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ | 116 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ |
OLD | NEW |