diff options
Diffstat (limited to 'WebCore/html/HTMLNoScriptElement.cpp')
-rw-r--r-- | WebCore/html/HTMLNoScriptElement.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/WebCore/html/HTMLNoScriptElement.cpp b/WebCore/html/HTMLNoScriptElement.cpp index 3bbfbe6..5bba16f 100644 --- a/WebCore/html/HTMLNoScriptElement.cpp +++ b/WebCore/html/HTMLNoScriptElement.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) + * Copyright (C) 2010 Apple Inc. 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 @@ -30,19 +31,15 @@ namespace WebCore { using namespace HTMLNames; -HTMLNoScriptElement::HTMLNoScriptElement(const QualifiedName& tagName, Document* doc) - : HTMLElement(tagName, doc) +inline HTMLNoScriptElement::HTMLNoScriptElement(const QualifiedName& tagName, Document* document) + : HTMLElement(tagName, document) { ASSERT(hasTagName(noscriptTag)); } -HTMLNoScriptElement::~HTMLNoScriptElement() +PassRefPtr<HTMLNoScriptElement> HTMLNoScriptElement::create(const QualifiedName& tagName, Document* document) { -} - -bool HTMLNoScriptElement::checkDTD(const Node* newChild) -{ - return newChild->isTextNode() || inBlockTagList(newChild); + return adoptRef(new HTMLNoScriptElement(tagName, document)); } void HTMLNoScriptElement::attach() @@ -76,10 +73,11 @@ void HTMLNoScriptElement::recalcStyle(StyleChange change) } } -bool HTMLNoScriptElement::childShouldCreateRenderer(Node* child) const +bool HTMLNoScriptElement::childShouldCreateRenderer(Node*) const { return document()->shouldProcessNoscriptElement(); } } + #endif |