зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1345696 part 1 - Lots of fixup for the next patch. r=heycam
The next patch moves nsCSSFontFaceRule into a separate header, which somehow affects lots of header dependencies. I'm not completely sure why this happens, though. MozReview-Commit-ID: KuXbsaX0NUd --HG-- extra : rebase_source : cef91018964b5488c5031df8aada90aa7fa0ad51
This commit is contained in:
Родитель
2c07788709
Коммит
082e026668
|
@ -27,6 +27,7 @@
|
|||
#include "nsIScriptError.h"
|
||||
#include "nsIWindowMediator.h"
|
||||
#include "nsIPrefService.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Printf.h"
|
||||
#include "mozilla/StyleSheet.h"
|
||||
#include "mozilla/StyleSheetInlines.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
#include "mozilla/dom/BindingDeclarations.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/FunctionBinding.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
#include "nsWrapperCache.h"
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
#include "nsIDOMNSEditableElement.h"
|
||||
#include "nsIEditor.h"
|
||||
#include "nsIDOMCSSStyleRule.h"
|
||||
#include "mozilla/css/Rule.h"
|
||||
#include "mozilla/css/StyleRule.h"
|
||||
#include "nsIDOMLocation.h"
|
||||
#include "nsIHttpChannelInternal.h"
|
||||
#include "nsISecurityConsoleMessage.h"
|
||||
|
@ -1207,6 +1207,11 @@ nsIDocument::SelectorCache::SelectorCache()
|
|||
: nsExpirationTracker<SelectorCacheKey, 4>(1000, "nsIDocument::SelectorCache")
|
||||
{ }
|
||||
|
||||
nsIDocument::SelectorCache::~SelectorCache()
|
||||
{
|
||||
AgeAllGenerations();
|
||||
}
|
||||
|
||||
// CacheList takes ownership of aSelectorList.
|
||||
void nsIDocument::SelectorCache::CacheList(const nsAString& aSelector,
|
||||
nsCSSSelectorList* aSelectorList)
|
||||
|
|
|
@ -1085,10 +1085,7 @@ public:
|
|||
return mTable.Get(aSelector, aList);
|
||||
}
|
||||
|
||||
~SelectorCache()
|
||||
{
|
||||
AgeAllGenerations();
|
||||
}
|
||||
~SelectorCache();
|
||||
|
||||
private:
|
||||
nsClassHashtable<nsStringHashKey, nsCSSSelectorList> mTable;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "DCPresentationChannelDescription.h"
|
||||
#include "mozilla/dom/ContentProcessManager.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/ipc/InputStreamUtils.h"
|
||||
#include "mozilla/Unused.h"
|
||||
#include "nsIPresentationDeviceManager.h"
|
||||
|
|
|
@ -725,6 +725,12 @@ CSSStyleSheet::RegisterNamespaceRule(css::Rule* aRule)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
CSSStyleSheet::SetScopeElement(dom::Element* aScopeElement)
|
||||
{
|
||||
mScopeElement = aScopeElement;
|
||||
}
|
||||
|
||||
css::Rule*
|
||||
CSSStyleSheet::GetDOMOwnerRule() const
|
||||
{
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "mozilla/StyleSheet.h"
|
||||
#include "mozilla/StyleSheetInfo.h"
|
||||
#include "mozilla/css/SheetParsingMode.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
@ -45,6 +44,7 @@ class GroupRule;
|
|||
} // namespace css
|
||||
namespace dom {
|
||||
class CSSRuleList;
|
||||
class Element;
|
||||
} // namespace dom
|
||||
|
||||
// -------------------------------
|
||||
|
@ -168,10 +168,7 @@ public:
|
|||
size_t SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const override;
|
||||
|
||||
dom::Element* GetScopeElement() const { return mScopeElement; }
|
||||
void SetScopeElement(dom::Element* aScopeElement)
|
||||
{
|
||||
mScopeElement = aScopeElement;
|
||||
}
|
||||
void SetScopeElement(dom::Element* aScopeElement);
|
||||
|
||||
// WebIDL CSSStyleSheet API
|
||||
// Can't be inline because we can't include ImportRule here. And can't be
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#ifndef mozilla_css_Rule_h___
|
||||
#define mozilla_css_Rule_h___
|
||||
|
||||
#include "mozilla/StyleSheetInlines.h"
|
||||
#include "mozilla/StyleSheet.h"
|
||||
#include "mozilla/MemoryReporting.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsIDOMCSSRule.h"
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "mozilla/StyleSheetInlines.h"
|
||||
#include "mozilla/SheetType.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "nsCSSPseudoElements.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "nsChangeHint.h"
|
||||
|
@ -30,6 +31,7 @@ class ServoStyleSheet;
|
|||
struct Keyframe;
|
||||
struct ServoComputedValuesWithParent;
|
||||
} // namespace mozilla
|
||||
class nsIContent;
|
||||
class nsIDocument;
|
||||
class nsStyleContext;
|
||||
class nsPresContext;
|
||||
|
@ -224,7 +226,7 @@ public:
|
|||
* tree. This is used in situations where we need the style immediately and
|
||||
* cannot wait for a future batch restyle.
|
||||
*/
|
||||
void StyleNewSubtree(Element* aRoot);
|
||||
void StyleNewSubtree(dom::Element* aRoot);
|
||||
|
||||
/**
|
||||
* Like the above, but skips the root node, and only styles unstyled children.
|
||||
|
@ -232,7 +234,7 @@ public:
|
|||
* StyleNewChildren on the node rather than making multiple calls to
|
||||
* StyleNewSubtree on each child, since it allows for more parallelism.
|
||||
*/
|
||||
void StyleNewChildren(Element* aParent);
|
||||
void StyleNewChildren(dom::Element* aParent);
|
||||
|
||||
/**
|
||||
* Records that the contents of style sheets have changed since the last
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "mozilla/StyleSheetInfo.h"
|
||||
#include "mozilla/ServoStyleSheet.h"
|
||||
#include "mozilla/CSSStyleSheet.h"
|
||||
#include "nsINode.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "mozilla/Attributes.h"
|
||||
#include "nsIDOMCSSStyleDeclaration.h"
|
||||
#include "nsCSSPropertyID.h"
|
||||
#include "CSSValue.h"
|
||||
#include "mozilla/dom/CSSValue.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIDOMCSSRule.h"
|
||||
|
|
|
@ -14,12 +14,15 @@
|
|||
#include "mozilla/StyleSheetInlines.h"
|
||||
#include "mozilla/css/Loader.h"
|
||||
#include "mozilla/dom/SRIMetadata.h"
|
||||
#include "MainThreadUtils.h"
|
||||
#include "nsColor.h"
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsIXULRuntime.h"
|
||||
#include "nsPresContext.h"
|
||||
#include "nsPrintfCString.h"
|
||||
#include "nsXULAppAPI.h"
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include "nsHtml5Parser.h"
|
||||
|
||||
#include "mozilla/AutoRestore.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsContentUtils.h" // for kLoadAsData
|
||||
#include "nsHtml5Tokenizer.h"
|
||||
#include "nsHtml5TreeBuilder.h"
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
#include "nsIPrefService.h"
|
||||
#include "nsSandboxFlags.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "mozilla/dom/Storage.h"
|
||||
#include "mozilla/dom/ScriptSettings.h"
|
||||
#include "mozilla/dom/TabParent.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче