зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342289 Part 1: Define UUID for ServoStyleSheet. r=heycam
MozReview-Commit-ID: GVUcZ7L0Ro5 --HG-- extra : rebase_source : cb85b6f04fe27de7c6a246e52afa6eb07a61c6ed
This commit is contained in:
Родитель
ea788b5b50
Коммит
fd12ca74cc
|
@ -15,7 +15,9 @@
|
||||||
#include "mozilla/dom/CSSRuleList.h"
|
#include "mozilla/dom/CSSRuleList.h"
|
||||||
#include "mozilla/dom/MediaList.h"
|
#include "mozilla/dom/MediaList.h"
|
||||||
|
|
||||||
|
|
||||||
#include "mozAutoDocUpdate.h"
|
#include "mozAutoDocUpdate.h"
|
||||||
|
#include "nsIDOMCSSStyleSheet.h"
|
||||||
|
|
||||||
using namespace mozilla::dom;
|
using namespace mozilla::dom;
|
||||||
|
|
||||||
|
@ -71,6 +73,10 @@ ServoStyleSheet::~ServoStyleSheet()
|
||||||
|
|
||||||
// QueryInterface implementation for ServoStyleSheet
|
// QueryInterface implementation for ServoStyleSheet
|
||||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(ServoStyleSheet)
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(ServoStyleSheet)
|
||||||
|
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMCSSStyleSheet)
|
||||||
|
if (aIID.Equals(NS_GET_IID(ServoStyleSheet)))
|
||||||
|
foundInterface = reinterpret_cast<nsISupports*>(this);
|
||||||
|
else
|
||||||
NS_INTERFACE_MAP_END_INHERITING(StyleSheet)
|
NS_INTERFACE_MAP_END_INHERITING(StyleSheet)
|
||||||
|
|
||||||
NS_IMPL_ADDREF_INHERITED(ServoStyleSheet, StyleSheet)
|
NS_IMPL_ADDREF_INHERITED(ServoStyleSheet, StyleSheet)
|
||||||
|
|
|
@ -50,6 +50,14 @@ struct ServoStyleSheetInner : public StyleSheetInfo
|
||||||
/**
|
/**
|
||||||
* CSS style sheet object that is a wrapper for a Servo Stylesheet.
|
* CSS style sheet object that is a wrapper for a Servo Stylesheet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// CID for the ServoStyleSheet class
|
||||||
|
// a6f31472-ab69-4beb-860f-c221431ead77
|
||||||
|
#define NS_SERVO_STYLE_SHEET_IMPL_CID \
|
||||||
|
{ 0xa6f31472, 0xab69, 0x4beb, \
|
||||||
|
{ 0x86, 0x0f, 0xc2, 0x21, 0x43, 0x1e, 0xad, 0x77 } }
|
||||||
|
|
||||||
|
|
||||||
class ServoStyleSheet : public StyleSheet
|
class ServoStyleSheet : public StyleSheet
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -61,6 +69,8 @@ public:
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
NS_DECL_ISUPPORTS_INHERITED
|
||||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(ServoStyleSheet, StyleSheet)
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(ServoStyleSheet, StyleSheet)
|
||||||
|
|
||||||
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_SERVO_STYLE_SHEET_IMPL_CID)
|
||||||
|
|
||||||
bool HasRules() const;
|
bool HasRules() const;
|
||||||
|
|
||||||
MOZ_MUST_USE nsresult ParseSheet(css::Loader* aLoader,
|
MOZ_MUST_USE nsresult ParseSheet(css::Loader* aLoader,
|
||||||
|
@ -143,6 +153,8 @@ private:
|
||||||
friend class StyleSheet;
|
friend class StyleSheet;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
NS_DEFINE_STATIC_IID_ACCESSOR(ServoStyleSheet, NS_SERVO_STYLE_SHEET_IMPL_CID)
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
||||||
#endif // mozilla_ServoStyleSheet_h
|
#endif // mozilla_ServoStyleSheet_h
|
||||||
|
|
Загрузка…
Ссылка в новой задаче