Bug 1304302 part 3 - Use ServoStyleSheet* instead of Handle in ServoStyleSheet. r=heycam

MozReview-Commit-ID: WV8eRxSOnp

--HG--
extra : source : 1d1c23f2cf6dbc2a3fbfa8a74b401c8464e113cf
This commit is contained in:
Xidorn Quan 2016-09-26 22:03:25 +10:00
Родитель e981c7e9be
Коммит 17e476532e
2 изменённых файлов: 4 добавлений и 5 удалений

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

@ -50,7 +50,7 @@ ServoStyleSheet::SetOwningDocument(nsIDocument* aDocument)
mDocument = aDocument;
}
StyleSheetHandle
ServoStyleSheet*
ServoStyleSheet::GetParentSheet() const
{
// XXXheycam: When we implement support for child sheets, we'll have
@ -60,7 +60,7 @@ ServoStyleSheet::GetParentSheet() const
}
void
ServoStyleSheet::AppendStyleSheet(StyleSheetHandle aSheet)
ServoStyleSheet::AppendStyleSheet(ServoStyleSheet* aSheet)
{
// XXXheycam: When we implement support for child sheets, we'll have
// to fix SetOwningDocument to propagate the owning document down

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

@ -11,7 +11,6 @@
#include "mozilla/RefPtr.h"
#include "mozilla/ServoBindingHelpers.h"
#include "mozilla/StyleSheet.h"
#include "mozilla/StyleSheetHandle.h"
#include "mozilla/StyleSheetInfo.h"
#include "nsStringFwd.h"
@ -37,8 +36,8 @@ public:
nsIDocument* GetOwningDocument() const;
void SetOwningDocument(nsIDocument* aDocument);
StyleSheetHandle GetParentSheet() const;
void AppendStyleSheet(StyleSheetHandle aSheet);
ServoStyleSheet* GetParentSheet() const;
void AppendStyleSheet(ServoStyleSheet* aSheet);
MOZ_MUST_USE nsresult ParseSheet(const nsAString& aInput,
nsIURI* aSheetURI,