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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h

Issue 1489433002: Support the essential part of Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Internals.* Created 5 years 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: third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h
diff --git a/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h
new file mode 100644
index 0000000000000000000000000000000000000000..7c6058fa1ef63c355846c248f002d62aa5dcaeee
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SlotAssignment_h
+#define SlotAssignment_h
+
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class HTMLSlotElement;
+class Node;
+class ShadowRoot;
+
+class SlotAssignment final {
+public:
+ SlotAssignment() { }
+ HTMLSlotElement* assignedSlotFor(const Node&) const;
+ void resolveAssignment(const ShadowRoot&);
+
+ DECLARE_TRACE();
+
+private:
+ void assign(Node&, HTMLSlotElement&);
+ WillBeHeapHashMap<RawPtrWillBeMember<Node>, RawPtrWillBeMember<HTMLSlotElement>> m_assignment;
+};
+
+} // namespace blink
+
+#endif // HTMLSlotAssignment_h
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h ('k') | third_party/WebKit/Source/core/dom/shadow/SlotAssignment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698