#include "HTMLNames.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentParser.h"
+#include "core/frame/LocalFrame.h"
#include "core/loader/DocumentLoader.h"
#include "core/loader/FrameLoader.h"
#include "core/loader/appcache/ApplicationCacheHost.h"
-#include "core/frame/Frame.h"
namespace WebCore {
using namespace HTMLNames;
-HTMLHtmlElement::HTMLHtmlElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+HTMLHtmlElement::HTMLHtmlElement(Document& document)
+ : HTMLElement(htmlTag, document)
{
- ASSERT(hasTagName(htmlTag));
ScriptWrappable::init(this);
}
-PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(Document& document)
+PassRefPtrWillBeRawPtr<HTMLHtmlElement> HTMLHtmlElement::create(Document& document)
{
- return adoptRef(new HTMLHtmlElement(htmlTag, document));
-}
-
-PassRefPtr<HTMLHtmlElement> HTMLHtmlElement::create(const QualifiedName& tagName, Document& document)
-{
- return adoptRef(new HTMLHtmlElement(tagName, document));
+ return adoptRefWillBeRefCountedGarbageCollected(new HTMLHtmlElement(document));
}
bool HTMLHtmlElement::isURLAttribute(const Attribute& attribute) const
if (!documentLoader)
return;
- const AtomicString& manifest = getAttribute(manifestAttr);
+ const AtomicString& manifest = fastGetAttribute(manifestAttr);
if (manifest.isEmpty())
documentLoader->applicationCacheHost()->selectCacheWithoutManifest();
else