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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/RootInlineBox.h

Issue 2702043002: Use LayoutUnit for positioning ellipses (Closed)
Patch Set: bug 693905-2 Created 3 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 unsigned lineBreakPos() const { return m_lineBreakPos; } 98 unsigned lineBreakPos() const { return m_lineBreakPos; }
99 void setLineBreakPos(unsigned p) { m_lineBreakPos = p; } 99 void setLineBreakPos(unsigned p) { m_lineBreakPos = p; }
100 100
101 using InlineBox::endsWithBreak; 101 using InlineBox::endsWithBreak;
102 using InlineBox::setEndsWithBreak; 102 using InlineBox::setEndsWithBreak;
103 103
104 void childRemoved(InlineBox*); 104 void childRemoved(InlineBox*);
105 105
106 bool lineCanAccommodateEllipsis(bool ltr, 106 bool lineCanAccommodateEllipsis(bool ltr,
107 int blockEdge, 107 LayoutUnit blockEdge,
108 int lineBoxEdge, 108 LayoutUnit lineBoxEdge,
109 int ellipsisWidth); 109 LayoutUnit ellipsisWidth);
110 // Return the truncatedWidth, the width of the truncated text + ellipsis. 110 // Return the truncatedWidth, the width of the truncated text + ellipsis.
111 LayoutUnit placeEllipsis(const AtomicString& ellipsisStr, 111 LayoutUnit placeEllipsis(const AtomicString& ellipsisStr,
112 bool ltr, 112 bool ltr,
113 LayoutUnit blockLeftEdge, 113 LayoutUnit blockLeftEdge,
114 LayoutUnit blockRightEdge, 114 LayoutUnit blockRightEdge,
115 LayoutUnit ellipsisWidth); 115 LayoutUnit ellipsisWidth);
116 // Return the position of the EllipsisBox or -1. 116 // Return the position of the EllipsisBox or -1.
117 LayoutUnit placeEllipsisBox(bool ltr, 117 LayoutUnit placeEllipsisBox(bool ltr,
118 LayoutUnit blockLeftEdge, 118 LayoutUnit blockLeftEdge,
119 LayoutUnit blockRightEdge, 119 LayoutUnit blockRightEdge,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 LayoutUnit m_paginationStrut; 231 LayoutUnit m_paginationStrut;
232 }; 232 };
233 233
234 } // namespace blink 234 } // namespace blink
235 235
236 #endif // RootInlineBox_h 236 #endif // RootInlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698