Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Side by Side Diff: sky/engine/core/rendering/RenderParagraph.h

Issue 1200233002: Use the baseline information exposed by C++ to pipe baseline data through RenderBox. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderFlexibleBox.cpp ('k') | sky/engine/core/rendering/RenderParagraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698