зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1626665: part 7) Declare `nsILineIterator::GetLine` `const`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D70012 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4d435eafcc
Коммит
6533647d1c
|
@ -56,7 +56,7 @@ class nsILineIterator {
|
|||
// the line; if a frame was moved because of relative positioning
|
||||
// then its coordinates may be outside the line bounds).
|
||||
NS_IMETHOD GetLine(int32_t aLineNumber, nsIFrame** aFirstFrameOnLine,
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) = 0;
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) const = 0;
|
||||
|
||||
/**
|
||||
* Given a frame that's a child of the block, find which line its on
|
||||
|
|
|
@ -609,7 +609,7 @@ bool nsLineIterator::GetDirection() { return mRightToLeft; }
|
|||
|
||||
NS_IMETHODIMP
|
||||
nsLineIterator::GetLine(int32_t aLineNumber, nsIFrame** aFirstFrameOnLine,
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) {
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) const {
|
||||
NS_ENSURE_ARG_POINTER(aFirstFrameOnLine);
|
||||
NS_ENSURE_ARG_POINTER(aNumFramesOnLine);
|
||||
|
||||
|
|
|
@ -1646,7 +1646,8 @@ class nsLineIterator final : public nsILineIterator {
|
|||
virtual int32_t GetNumLines() override;
|
||||
virtual bool GetDirection() override;
|
||||
NS_IMETHOD GetLine(int32_t aLineNumber, nsIFrame** aFirstFrameOnLine,
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) override;
|
||||
int32_t* aNumFramesOnLine,
|
||||
nsRect& aLineBounds) const override;
|
||||
virtual int32_t FindLineContaining(nsIFrame* aFrame,
|
||||
int32_t aStartLine = 0) override;
|
||||
NS_IMETHOD FindFrameAt(int32_t aLineNumber, nsPoint aPos,
|
||||
|
|
|
@ -1702,7 +1702,8 @@ bool nsTableRowGroupFrame::GetDirection() {
|
|||
|
||||
NS_IMETHODIMP
|
||||
nsTableRowGroupFrame::GetLine(int32_t aLineNumber, nsIFrame** aFirstFrameOnLine,
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) {
|
||||
int32_t* aNumFramesOnLine,
|
||||
nsRect& aLineBounds) const {
|
||||
NS_ENSURE_ARG_POINTER(aFirstFrameOnLine);
|
||||
NS_ENSURE_ARG_POINTER(aNumFramesOnLine);
|
||||
|
||||
|
|
|
@ -214,7 +214,8 @@ class nsTableRowGroupFrame final : public nsContainerFrame,
|
|||
* @param aLineBounds - rect of the row
|
||||
*/
|
||||
NS_IMETHOD GetLine(int32_t aLineNumber, nsIFrame** aFirstFrameOnLine,
|
||||
int32_t* aNumFramesOnLine, nsRect& aLineBounds) override;
|
||||
int32_t* aNumFramesOnLine,
|
||||
nsRect& aLineBounds) const override;
|
||||
|
||||
/** Given a frame that's a child of the rowgroup, find which line its on.
|
||||
* @param aFrame - frame, should be a row
|
||||
|
|
Загрузка…
Ссылка в новой задаче