Bug 1244068 - Part 4: Use StyleSetHandle instead of concrete style set class in most places. r=dholbert

This commit is contained in:
Cameron McCormack
2016-02-24 18:01:11 +11:00
parent 1fd85b244f
commit 8a879b8032
56 changed files with 329 additions and 124 deletions

View File

@@ -107,6 +107,8 @@
#include "mozilla/dom/HTMLBodyElement.h"
#include "imgIContainer.h"
#include "nsComputedDOMStyle.h"
#include "mozilla/StyleSetHandle.h"
#include "mozilla/StyleSetHandleInlines.h"
using namespace mozilla;
using namespace mozilla::dom;
@@ -3334,7 +3336,7 @@ IsOrHasAncestorWithDisplayNone(Element* aElement, nsIPresShell* aPresShell)
return false;
}
nsStyleSet* styleSet = aPresShell->StyleSet();
StyleSetHandle styleSet = aPresShell->StyleSet();
RefPtr<nsStyleContext> sc;
for (int32_t i = elementsToCheck.Length() - 1; i >= 0; --i) {
if (sc) {