Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / StyleSheetCandidate.h
index 742e862..a0620a8 100644 (file)
 #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,
@@ -57,6 +59,7 @@ public:
     bool isEnabledAndLoading() const;
     bool hasPreferrableName(const String& currentPreferrableName) const;
     bool canBeActivated(const String& currentPreferrableName) const;
+    bool isCSSStyle() const;
 
     StyleSheet* sheet() const;
     AtomicString title() const;
@@ -65,10 +68,11 @@ public:
 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;
 };