#ifndef StyleSheetCandidate_h
#define StyleSheetCandidate_h
+#include "platform/heap/Handle.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
-namespace WebCore {
+namespace blink {
class Document;
class Node;
class StyleSheet;
class StyleSheetCandidate {
+ STACK_ALLOCATED();
public:
enum Type {
HTMLLink,
bool isEnabledAndLoading() const;
bool hasPreferrableName(const String& currentPreferrableName) const;
bool canBeActivated(const String& currentPreferrableName) const;
+ bool isCSSStyle() const;
StyleSheet* sheet() const;
AtomicString title() const;
private:
bool isElement() const { return m_type != Pi; }
bool isHTMLLink() const { return m_type == HTMLLink; }
+ Node& node() const { return *m_node; }
static Type typeOf(Node&);
- Node& m_node;
+ RawPtrWillBeMember<Node> m_node;
Type m_type;
};