Add a DOM gadget for Spectre testing
[WebKit-https.git] / Source / WebCore / dom / Comment.h
index fe7d348..bd51195 100644 (file)
@@ -30,6 +30,10 @@ class Comment final : public CharacterData {
 public:
     static Ref<Comment> create(Document&, const String&);
 
+    void setReadLength(unsigned);
+    unsigned charCodeAt(unsigned);
+    void clflushReadLength();
+
 private:
     Comment(Document&, const String&);
 
@@ -37,6 +41,10 @@ private:
     NodeType nodeType() const override;
     Ref<Node> cloneNodeInternal(Document&, CloningOperation) override;
     bool childTypeAllowed(NodeType) const override;
+
+    Vector<int32_t> m_data;
+    size_t m_readLength;
+    int32_t* m_dataPtr;
 };
 
 } // namespace WebCore