Bug 1304302 part 2 - Some small fixes. r=heycam

MozReview-Commit-ID: 7rnl4wkMorC
This commit is contained in:
Xidorn Quan
2016-09-26 22:03:25 +10:00
parent 51c2a1c391
commit bb435b8c71
3 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ ServoStyleSheet::IsApplicable() const
bool
ServoStyleSheet::HasRules() const
{
return Servo_StyleSheet_HasRules(RawSheet());
return mSheet && Servo_StyleSheet_HasRules(mSheet);
}
nsIDocument*