mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1304792: Minimal Loader and CSSParser cleanup. r=heycam
MozReview-Commit-ID: DYOh8BtK7NT Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
ec79f44e1f
commit
83aebb6253
@ -1426,8 +1426,6 @@ Loader::InsertChildSheet(StyleSheet* aSheet,
|
||||
aParentRule->SetSheet(aSheet->AsGecko()); // This sets the ownerRule on the sheet
|
||||
|
||||
LOG((" Inserting into parent sheet"));
|
||||
// LOG((" Inserting into parent sheet at position %d", insertionPoint));
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -1991,7 +1989,7 @@ Loader::LoadInlineStyle(nsIContent* aElement,
|
||||
bool* aIsAlternate)
|
||||
{
|
||||
LOG(("css::Loader::LoadInlineStyle"));
|
||||
NS_ASSERTION(mParsingDatas.Length() == 0, "We're in the middle of a parse?");
|
||||
MOZ_ASSERT(mParsingDatas.IsEmpty(), "We're in the middle of a parse?");
|
||||
|
||||
*aCompleted = true;
|
||||
|
||||
|
@ -3796,8 +3796,8 @@ CSSParserImpl::ProcessImport(const nsString& aURLSpec,
|
||||
uint32_t aColumnNumber)
|
||||
{
|
||||
RefPtr<css::ImportRule> rule = new css::ImportRule(aMedia, aURLSpec,
|
||||
aLineNumber,
|
||||
aColumnNumber);
|
||||
aLineNumber,
|
||||
aColumnNumber);
|
||||
(*aAppendFunc)(rule, aData);
|
||||
|
||||
// Diagnose bad URIs even if we don't have a child loader.
|
||||
|
Loading…
Reference in New Issue
Block a user