mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1438193 - part5: IsMultiColumn r=surkov
turn ColCount and IsMultiColumn into const functions
This commit is contained in:
parent
a5eb42da78
commit
80aa8d9625
@ -44,7 +44,7 @@ ARIAGridAccessible::NativeRole()
|
||||
// Table
|
||||
|
||||
uint32_t
|
||||
ARIAGridAccessible::ColCount()
|
||||
ARIAGridAccessible::ColCount() const
|
||||
{
|
||||
AccIterator rowIter(this, filters::GetRow);
|
||||
Accessible* row = rowIter.Next();
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
virtual TableAccessible* AsTable() override { return this; }
|
||||
|
||||
// TableAccessible
|
||||
virtual uint32_t ColCount() override;
|
||||
virtual uint32_t ColCount() const override;
|
||||
virtual uint32_t RowCount() override;
|
||||
virtual Accessible* CellAt(uint32_t aRowIndex, uint32_t aColumnIndex) override;
|
||||
virtual bool IsColSelected(uint32_t aColIdx) override;
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
/**
|
||||
* Return the number of columns in the table.
|
||||
*/
|
||||
virtual uint32_t ColCount() { return 0; }
|
||||
virtual uint32_t ColCount() const { return 0; }
|
||||
|
||||
/**
|
||||
* Return the number of rows in the table.
|
||||
|
@ -484,7 +484,7 @@ HTMLTableAccessible::Summary(nsString& aSummary)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
HTMLTableAccessible::ColCount()
|
||||
HTMLTableAccessible::ColCount() const
|
||||
{
|
||||
nsTableWrapperFrame* tableFrame = do_QueryFrame(mContent->GetPrimaryFrame());
|
||||
return tableFrame ? tableFrame->GetColCount() : 0;
|
||||
|
@ -132,7 +132,7 @@ public:
|
||||
// TableAccessible
|
||||
virtual Accessible* Caption() const override;
|
||||
virtual void Summary(nsString& aSummary) override;
|
||||
virtual uint32_t ColCount() override;
|
||||
virtual uint32_t ColCount() const override;
|
||||
virtual uint32_t RowCount() override;
|
||||
virtual Accessible* CellAt(uint32_t aRowIndex, uint32_t aColumnIndex) override;
|
||||
virtual int32_t CellIndexAt(uint32_t aRowIdx, uint32_t aColIdx) override;
|
||||
|
@ -166,7 +166,7 @@ XULListboxAccessible::NativeRole()
|
||||
// XULListboxAccessible: Table
|
||||
|
||||
uint32_t
|
||||
XULListboxAccessible::ColCount()
|
||||
XULListboxAccessible::ColCount() const
|
||||
{
|
||||
nsIContent* headContent = nullptr;
|
||||
for (nsIContent* childContent = mContent->GetFirstChild(); childContent;
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
XULListboxAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
||||
|
||||
// TableAccessible
|
||||
virtual uint32_t ColCount() override;
|
||||
virtual uint32_t ColCount() const override;
|
||||
virtual uint32_t RowCount() override;
|
||||
virtual Accessible* CellAt(uint32_t aRowIndex, uint32_t aColumnIndex) override;
|
||||
virtual bool IsColSelected(uint32_t aColIdx) override;
|
||||
@ -95,7 +95,7 @@ public:
|
||||
protected:
|
||||
virtual ~XULListboxAccessible() {}
|
||||
|
||||
bool IsMulticolumn() { return ColCount() > 1; }
|
||||
bool IsMulticolumn() const { return ColCount() > 1; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ XULTreeGridAccessible::~XULTreeGridAccessible()
|
||||
// XULTreeGridAccessible: Table
|
||||
|
||||
uint32_t
|
||||
XULTreeGridAccessible::ColCount()
|
||||
XULTreeGridAccessible::ColCount() const
|
||||
{
|
||||
return nsCoreUtils::GetSensibleColumnCount(mTree);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
{ mGenericTypes |= eTable; }
|
||||
|
||||
// TableAccessible
|
||||
virtual uint32_t ColCount() override;
|
||||
virtual uint32_t ColCount() const override;
|
||||
virtual uint32_t RowCount() override;
|
||||
virtual Accessible* CellAt(uint32_t aRowIndex, uint32_t aColumnIndex) override;
|
||||
virtual void ColDescription(uint32_t aColIdx, nsString& aDescription) override;
|
||||
|
Loading…
Reference in New Issue
Block a user