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

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

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address review comments Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | sky/engine/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 bool lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, in t ellipsisWidth); 96 bool lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, in t ellipsisWidth);
97 // Return the truncatedWidth, the width of the truncated text + ellipsis. 97 // Return the truncatedWidth, the width of the truncated text + ellipsis.
98 float placeEllipsis(const AtomicString& ellipsisStr, bool ltr, float blockLe ftEdge, float blockRightEdge, float ellipsisWidth, InlineBox* markupBox = 0); 98 float placeEllipsis(const AtomicString& ellipsisStr, bool ltr, float blockLe ftEdge, float blockRightEdge, float ellipsisWidth, InlineBox* markupBox = 0);
99 // Return the position of the EllipsisBox or -1. 99 // Return the position of the EllipsisBox or -1.
100 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig htEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) override fin al; 100 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig htEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) override fin al;
101 101
102 using InlineBox::hasEllipsisBox; 102 using InlineBox::hasEllipsisBox;
103 EllipsisBox* ellipsisBox() const; 103 EllipsisBox* ellipsisBox() const;
104 104
105 void paintEllipsisBox(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, La youtUnit lineBottom) const; 105 void paintEllipsisBox(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, La youtUnit lineBottom, Vector<RenderBox*>& layers) const;
106 106
107 virtual void clearTruncation() override final; 107 virtual void clearTruncation() override final;
108 108
109 virtual int baselinePosition(FontBaseline baselineType) const override final ; 109 virtual int baselinePosition(FontBaseline baselineType) const override final ;
110 virtual LayoutUnit lineHeight() const override final; 110 virtual LayoutUnit lineHeight() const override final;
111 111
112 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) override; 112 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom, Vector<RenderBox*>& layers) override;
113 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override final; 113 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override final;
114 114
115 using InlineBox::hasSelectedChildren; 115 using InlineBox::hasSelectedChildren;
116 using InlineBox::setHasSelectedChildren; 116 using InlineBox::setHasSelectedChildren;
117 117
118 virtual RenderObject::SelectionState selectionState() override final; 118 virtual RenderObject::SelectionState selectionState() override final;
119 InlineBox* firstSelectedBox(); 119 InlineBox* firstSelectedBox();
120 InlineBox* lastSelectedBox(); 120 InlineBox* lastSelectedBox();
121 121
122 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La youtUnit selHeight, const PaintInfo*); 122 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La youtUnit selHeight, const PaintInfo*);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 LayoutUnit m_lineTop; 226 LayoutUnit m_lineTop;
227 LayoutUnit m_lineBottom; 227 LayoutUnit m_lineBottom;
228 LayoutUnit m_lineTopWithLeading; 228 LayoutUnit m_lineTopWithLeading;
229 LayoutUnit m_lineBottomWithLeading; 229 LayoutUnit m_lineBottomWithLeading;
230 LayoutUnit m_selectionBottom; 230 LayoutUnit m_selectionBottom;
231 }; 231 };
232 232
233 } // namespace blink 233 } // namespace blink
234 234
235 #endif // SKY_ENGINE_CORE_RENDERING_ROOTINLINEBOX_H_ 235 #endif // SKY_ENGINE_CORE_RENDERING_ROOTINLINEBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderView.cpp ('k') | sky/engine/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698