mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1415670 Part 1: Add a negativeNumber property to GridLine in webidl. r=smaug
MozReview-Commit-ID: E3IycnsN6Ep --HG-- extra : rebase_source : 47e6db76091c237aa3d40341427ff6c406405806
This commit is contained in:
parent
7a627826a6
commit
b5a67ff8c1
@ -70,6 +70,12 @@ GridLine::Number() const
|
||||
return mNumber;
|
||||
}
|
||||
|
||||
int32_t
|
||||
GridLine::NegativeNumber() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
GridLine::SetLineValues(const nsTArray<nsString>& aNames,
|
||||
double aStart,
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
double Breadth() const;
|
||||
GridDeclaration Type() const;
|
||||
uint32_t Number() const;
|
||||
int32_t NegativeNumber() const;
|
||||
|
||||
void SetLineValues(const nsTArray<nsString>& aNames,
|
||||
double aStart,
|
||||
|
@ -71,9 +71,23 @@ interface GridLine
|
||||
readonly attribute GridDeclaration type;
|
||||
|
||||
/**
|
||||
* Number is the 1-indexed index of the line in flow order.
|
||||
* Number is the 1-indexed index of the line in flow order. The
|
||||
* first explicit line has number 1, and numbers increment by 1 for
|
||||
* each line after that. Lines before the first explicit line
|
||||
* have number 0, which is not a valid addressable line number, and
|
||||
* should be filtered out by callers.
|
||||
*/
|
||||
readonly attribute unsigned long number;
|
||||
|
||||
/**
|
||||
* NegativeNumber is the 1-indexed index of the line in reverse
|
||||
* flow order. The last explicit line has negativeNumber -1, and
|
||||
* negativeNumbers decrement by 1 for each line before that.
|
||||
* Lines after the last explicit line have negativeNumber 0, which
|
||||
* is not a valid addressable line number, and should be filtered
|
||||
* out by callers.
|
||||
*/
|
||||
readonly attribute long negativeNumber;
|
||||
};
|
||||
|
||||
[ChromeOnly]
|
||||
|
Loading…
x
Reference in New Issue
Block a user