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

Unified Diff: third_party/WebKit/Source/core/dom/AssignedNodeTraversal.h

Issue 1707443003: Consider slots as a focus scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring related to OILPAN Created 4 years, 10 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: third_party/WebKit/Source/core/dom/AssignedNodeTraversal.h
diff --git a/third_party/WebKit/Source/core/html/HTMLTagCollection.cpp b/third_party/WebKit/Source/core/dom/AssignedNodeTraversal.h
similarity index 62%
copy from third_party/WebKit/Source/core/html/HTMLTagCollection.cpp
copy to third_party/WebKit/Source/core/dom/AssignedNodeTraversal.h
index ba08802fd2aa3c633f58e2ea62797aff1381a5fa..ae8e67150c92b280da21417adda270dfdeb0be75 100644
--- a/third_party/WebKit/Source/core/html/HTMLTagCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/AssignedNodeTraversal.h
@@ -2,8 +2,8 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
- * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
* Copyright (C) 2014 Samsung Electronics. All rights reserved.
*
* This library is free software; you can redistribute it and/or
@@ -20,17 +20,24 @@
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
+ *
*/
-#include "HTMLTagCollection.h"
-
-namespace blink {
+#ifndef AssignedNodeTraversal_h
+#define AssignedNodeTraversal_h
-HTMLTagCollection::HTMLTagCollection(ContainerNode& rootNode, const AtomicString& localName)
- : TagCollection(rootNode, HTMLTagCollectionType, starAtom, localName)
- , m_loweredLocalName(localName.lower())
-{
- ASSERT(rootNode.document().isHTMLDocument());
-}
+#include "core/dom/Node.h"
+#include "core/html/HTMLSlotElement.h"
+namespace blink {
+class AssignedNodeTraversal {
+public:
+ static HTMLSlotElement* slot(const Node& current);
+ static Node* assignedParent(const Node& current);
+ static Node* next(const Node& current);
+ static Node* previous(const Node& current);
+ static bool isInAssignedScope(const Node& current);
+};
} // namespace blink
+
+#endif
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/AssignedNodeTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698