зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1352025 part 1 - Use a UrlExtraData type alias to unify url handling logic. r=manishearth
MozReview-Commit-ID: 6gZHGQWbpAW --HG-- extra : rebase_source : 0780021a0e5ef14b380ec247418c1c709056e792
This commit is contained in:
Родитель
1e6b39eb51
Коммит
4f6e257d03
|
@ -7,6 +7,7 @@
|
|||
#include "mozilla/ServoBindings.h"
|
||||
|
||||
#include "ChildIterator.h"
|
||||
#include "NullPrincipalURI.h"
|
||||
#include "gfxFontFamilyList.h"
|
||||
#include "nsAnimationManager.h"
|
||||
#include "nsAttrValueInlines.h"
|
||||
|
@ -1577,6 +1578,15 @@ Gecko_LoadStyleSheet(css::Loader* aLoader,
|
|||
aLoader->LoadChildSheet(aParent, uri, media, nullptr, aChildSheet, nullptr);
|
||||
}
|
||||
|
||||
RawGeckoURLExtraData*
|
||||
Gecko_URLExtraData_CreateDummy()
|
||||
{
|
||||
RefPtr<css::URLExtraData> data =
|
||||
new css::URLExtraData(NullPrincipalURI::Create(), nullptr,
|
||||
NullPrincipal::Create());
|
||||
return data.forget().take();
|
||||
}
|
||||
|
||||
const nsMediaFeature*
|
||||
Gecko_GetMediaFeatures()
|
||||
{
|
||||
|
|
|
@ -118,6 +118,10 @@ void Gecko_LoadStyleSheet(mozilla::css::Loader* loader,
|
|||
const uint8_t* media_bytes,
|
||||
uint32_t media_length);
|
||||
|
||||
// URLExtraData
|
||||
// Create a new addrefed URLExtraData.
|
||||
RawGeckoURLExtraData* Gecko_URLExtraData_CreateDummy();
|
||||
|
||||
// By default, Servo walks the DOM by traversing the siblings of the DOM-view
|
||||
// first child. This generally works, but misses anonymous children, which we
|
||||
// want to traverse during styling. To support these cases, we create an
|
||||
|
|
Загрузка…
Ссылка в новой задаче