зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1623764 - Part 3: Expose IsLineWrapped via LineInfo r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85922
This commit is contained in:
Родитель
0df495e2fe
Коммит
d41518f2d3
|
@ -56,6 +56,8 @@ class nsILineIterator {
|
|||
* positioning then its coordinates may be outside the line bounds)
|
||||
*/
|
||||
nsRect mLineBounds;
|
||||
/** Whether the line is wrapped at the end */
|
||||
bool mIsWrapped;
|
||||
};
|
||||
|
||||
// Return miscellaneous information about a line.
|
||||
|
|
|
@ -617,6 +617,7 @@ Result<nsILineIterator::LineInfo, nsresult> nsLineIterator::GetLine(
|
|||
structure.mFirstFrameOnLine = line->mFirstChild;
|
||||
structure.mNumFramesOnLine = line->GetChildCount();
|
||||
structure.mLineBounds = line->GetPhysicalBounds();
|
||||
structure.mIsWrapped = line->IsLineWrapped();
|
||||
return structure;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче