Bug 368703 û Some methods in layout/style could be const r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@219248 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -305,9 +305,9 @@ public:
|
||||
nsCSSValue& Item(PRUint16 aIndex) { return (*this)[aIndex]; }
|
||||
const nsCSSValue& Item(PRUint16 aIndex) const { return (*this)[aIndex]; }
|
||||
|
||||
PRUint16 Count() { return mCount; }
|
||||
PRUint16 Count() const { return mCount; }
|
||||
|
||||
PRBool operator==(const Array& aOther)
|
||||
PRBool operator==(const Array& aOther) const
|
||||
{
|
||||
if (mCount != aOther.mCount)
|
||||
return PR_FALSE;
|
||||
@@ -393,7 +393,7 @@ public:
|
||||
MOZ_COUNT_DTOR(nsCSSValue::URL);
|
||||
}
|
||||
|
||||
PRBool operator==(const URL& aOther)
|
||||
PRBool operator==(const URL& aOther) const
|
||||
{
|
||||
PRBool eq;
|
||||
return NS_strcmp(GetBufferValue(mString),
|
||||
|
||||
@@ -1271,7 +1271,7 @@ nsStyleContentData& nsStyleContentData::operator=(const nsStyleContentData& aOth
|
||||
return *this;
|
||||
}
|
||||
|
||||
PRBool nsStyleContentData::operator==(const nsStyleContentData& aOther)
|
||||
PRBool nsStyleContentData::operator==(const nsStyleContentData& aOther) const
|
||||
{
|
||||
if (mType != aOther.mType)
|
||||
return PR_FALSE;
|
||||
|
||||
@@ -918,9 +918,9 @@ struct nsStyleContentData {
|
||||
nsStyleContentData() : mType(nsStyleContentType(0)) { mContent.mString = nsnull; }
|
||||
~nsStyleContentData();
|
||||
nsStyleContentData& operator=(const nsStyleContentData& aOther);
|
||||
PRBool operator==(const nsStyleContentData& aOther);
|
||||
PRBool operator==(const nsStyleContentData& aOther) const;
|
||||
|
||||
PRBool operator!=(const nsStyleContentData& aOther) {
|
||||
PRBool operator!=(const nsStyleContentData& aOther) const {
|
||||
return !(*this == aOther);
|
||||
}
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user