Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: Source/WebCore/dom/PaintOrderLists.h

Issue 13467028: Add an intermediate function to generate 2 paint-order lists. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/dom/PaintOrderLists.h
diff --git a/Source/WebCore/dom/PaintOrderLists.h b/Source/WebCore/dom/PaintOrderLists.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1f61623491400fe57932dc9c9458b691ab99915
--- /dev/null
+++ b/Source/WebCore/dom/PaintOrderLists.h
@@ -0,0 +1,23 @@
+#ifndef PaintOrderLists_h
+#define PaintOrderLists_h
+
+#include "ScriptWrappable.h"
+#include <wtf/RefCounted.h>
+
+namespace WebCore {
+
+class PaintOrderLists : public ScriptWrappable, public RefCounted<PaintOrderLists> {
+public:
+ PaintOrderLists(PassRefPtr<NodeList> listBeforePromote, PassRefPtr<NodeList> listAfterPromote) : m_listBeforePromote(listBeforePromote), m_listAfterPromote(listAfterPromote) { }
+
+ // DOM methods & attributes for NodeList
+ PassRefPtr<NodeList> listBeforePromote() const { return m_listBeforePromote; }
+ PassRefPtr<NodeList> listAfterPromote() const { return m_listAfterPromote; }
+
+ PassRefPtr<NodeList> m_listBeforePromote;
+ PassRefPtr<NodeList> m_listAfterPromote;
+};
+
+} // namespace WebCore
+
+#endif // PaintOrderLists_h

Powered by Google App Engine
This is Rietveld 408576698