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

Unified Diff: Source/core/html/HTMLTagCollection.cpp

Issue 355163004: Move HTMLTagCollection to its own file (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLTagCollection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTagCollection.cpp
diff --git a/Source/core/html/HTMLHeadElement.cpp b/Source/core/html/HTMLTagCollection.cpp
similarity index 65%
copy from Source/core/html/HTMLHeadElement.cpp
copy to Source/core/html/HTMLTagCollection.cpp
index 494154590ac8e117319dd36b661036edefbdd91f..27bfc4d0d633ce0552e548f9d38dc31332a45b09 100644
--- a/Source/core/html/HTMLHeadElement.cpp
+++ b/Source/core/html/HTMLTagCollection.cpp
@@ -1,9 +1,10 @@
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
- * (C) 2000 Simon Hausmann (hausmann@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2006, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
+ * Copyright (C) 2014 Samsung Electronics. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -22,20 +23,15 @@
*/
#include "config.h"
-#include "core/html/HTMLHeadElement.h"
-
-#include "core/HTMLNames.h"
+#include "HTMLTagCollection.h"
namespace WebCore {
-using namespace HTMLNames;
-
-inline HTMLHeadElement::HTMLHeadElement(Document& document)
- : HTMLElement(headTag, document)
+HTMLTagCollection::HTMLTagCollection(ContainerNode& rootNode, const AtomicString& localName)
+ : TagCollection(rootNode, HTMLTagCollectionType, starAtom, localName)
+ , m_loweredLocalName(localName.lower())
{
- ScriptWrappable::init(this);
+ ASSERT(rootNode.document().isHTMLDocument());
}
-DEFINE_NODE_FACTORY(HTMLHeadElement)
-
-}
+} // namespace WebCore
« no previous file with comments | « Source/core/html/HTMLTagCollection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698