Bug 1386865 part 1 - Have GetServoStyleSet return non-const ServoStyleSet. r=TYLin

MozReview-Commit-ID: IOlcThK3PAr

--HG--
extra : rebase_source : 6664f5f988ec0c2cdb5b21d61585da84131dc618
This commit is contained in:
Xidorn Quan 2017-08-03 16:58:23 +10:00
Родитель 9a3658cf7f
Коммит 96a6c473b5
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -869,7 +869,7 @@ nsXBLBinding::WalkRules(nsIStyleRuleProcessor::EnumFunc aFunc, void* aData)
(*aFunc)(rules, aData);
}
const ServoStyleSet*
ServoStyleSet*
nsXBLBinding::GetServoStyleSet() const
{
return mPrototypeBinding->GetServoStyleSet();

Просмотреть файл

@ -130,7 +130,7 @@ public:
void WalkRules(nsIStyleRuleProcessor::EnumFunc aFunc, void* aData);
const mozilla::ServoStyleSet* GetServoStyleSet() const;
mozilla::ServoStyleSet* GetServoStyleSet() const;
static nsresult DoInitJSClass(JSContext *cx, JS::Handle<JSObject*> obj,
const nsString& aClassName,

Просмотреть файл

@ -569,7 +569,7 @@ nsXBLPrototypeBinding::GetRuleProcessor()
return nullptr;
}
const ServoStyleSet*
ServoStyleSet*
nsXBLPrototypeBinding::GetServoStyleSet() const
{
return mResources ? mResources->GetServoStyleSet() : nullptr;

Просмотреть файл

@ -131,7 +131,7 @@ public:
void AppendStyleSheetsTo(nsTArray<mozilla::StyleSheet*>& aResult) const;
nsIStyleRuleProcessor* GetRuleProcessor();
const mozilla::ServoStyleSet* GetServoStyleSet() const;
mozilla::ServoStyleSet* GetServoStyleSet() const;
nsresult FlushSkinSheets();

Просмотреть файл

@ -64,7 +64,7 @@ public:
// the Servo style backend.
void ComputeServoStyleSet(nsPresContext* aPresContext);
const mozilla::ServoStyleSet* GetServoStyleSet() const { return mServoStyleSet.get(); }
mozilla::ServoStyleSet* GetServoStyleSet() const { return mServoStyleSet.get(); }
private:
// A loader object. Exists only long enough to load resources, and then it dies.