Bug 1304792: Use borrowed types for ServoImportRule. r=Manishearth r=heycam

MozReview-Commit-ID: HKjsOaE2qAp
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2016-12-29 18:33:47 +01:00
Родитель a25a3083ce
Коммит f5651bd75d
4 изменённых файлов: 7 добавлений и 8 удалений

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

@ -1407,7 +1407,7 @@ nsresult
Loader::InsertChildSheet(StyleSheet* aSheet,
StyleSheet* aParentSheet,
ImportRule* aGeckoParentRule,
RawServoImportRule* aServoParentRule)
const RawServoImportRule* aServoParentRule)
{
LOG(("css::Loader::InsertChildSheet"));
MOZ_ASSERT(aSheet, "Nothing to insert");
@ -2198,7 +2198,7 @@ Loader::LoadChildSheet(StyleSheet* aParentSheet,
nsIURI* aURL,
nsMediaList* aMedia,
ImportRule* aGeckoParentRule,
RawServoImportRule* aServoParentRule,
const RawServoImportRule* aServoParentRule,
LoaderReusableStyleSheets* aReusableSheets)
{
LOG(("css::Loader::LoadChildSheet"));

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

@ -297,7 +297,7 @@ public:
nsIURI* aURL,
nsMediaList* aMedia,
ImportRule* aGeckoParentRule,
RawServoImportRule* aServoParentRule,
const RawServoImportRule* aServoParentRule,
LoaderReusableStyleSheets* aSavedSheets);
/**
@ -489,7 +489,7 @@ private:
nsresult InsertChildSheet(StyleSheet* aSheet,
StyleSheet* aParentSheet,
ImportRule* aGeckoParentRule,
RawServoImportRule* aServoParentRule);
const RawServoImportRule* aServoParentRule);
nsresult InternalLoadNonDocumentSheet(nsIURI* aURL,
bool aIsPreload,

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

@ -1032,7 +1032,7 @@ Gecko_CSSValue_GetArrayItem(nsCSSValueBorrowedMut aCSSValue, int32_t aIndex)
void
Gecko_LoadStyleSheet(css::Loader* aLoader,
ServoStyleSheet* aParent,
RawServoImportRuleStrong aImportRule,
RawServoImportRuleBorrowed aImportRule,
const uint8_t* aURLString,
uint32_t aURLStringLength,
const uint8_t* aMediaString,
@ -1060,8 +1060,7 @@ Gecko_LoadStyleSheet(css::Loader* aLoader,
nsCOMPtr<nsIURI> uri;
MOZ_ALWAYS_SUCCEEDS(NS_NewURI(getter_AddRefs(uri), urlSpec));
RefPtr<RawServoImportRule> import = aImportRule.Consume();
aLoader->LoadChildSheet(aParent, uri, media, nullptr, import, nullptr);
aLoader->LoadChildSheet(aParent, uri, media, nullptr, aImportRule, nullptr);
}
NS_IMPL_THREADSAFE_FFI_REFCOUNTING(nsCSSValueSharedList, CSSValueSharedList);

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

@ -98,7 +98,7 @@ RawGeckoElementBorrowedOrNull Gecko_GetNextSiblingElement(RawGeckoElementBorrowe
RawGeckoElementBorrowedOrNull Gecko_GetDocumentElement(RawGeckoDocumentBorrowed document);
void Gecko_LoadStyleSheet(mozilla::css::Loader* loader,
mozilla::ServoStyleSheet* parent,
RawServoImportRuleStrong import_rule,
RawServoImportRuleBorrowed import_rule,
const uint8_t* url_bytes,
uint32_t url_length,
const uint8_t* media_bytes,