diff options
Diffstat (limited to 'Source/WebCore/html/HTMLQuoteElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLQuoteElement.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Source/WebCore/html/HTMLQuoteElement.cpp b/Source/WebCore/html/HTMLQuoteElement.cpp index d5be2f2f7..7cddafa11 100644 --- a/Source/WebCore/html/HTMLQuoteElement.cpp +++ b/Source/WebCore/html/HTMLQuoteElement.cpp @@ -24,30 +24,21 @@ #include "HTMLQuoteElement.h" #include "Document.h" -#include "DocumentStyleSheetCollection.h" #include "HTMLNames.h" namespace WebCore { using namespace HTMLNames; -inline HTMLQuoteElement::HTMLQuoteElement(const QualifiedName& tagName, Document* document) +inline HTMLQuoteElement::HTMLQuoteElement(const QualifiedName& tagName, Document& document) : HTMLElement(tagName, document) { ASSERT(hasTagName(qTag) || hasTagName(blockquoteTag)); } -PassRefPtr<HTMLQuoteElement> HTMLQuoteElement::create(const QualifiedName& tagName, Document* document) +Ref<HTMLQuoteElement> HTMLQuoteElement::create(const QualifiedName& tagName, Document& document) { - return adoptRef(new HTMLQuoteElement(tagName, document)); -} - -Node::InsertionNotificationRequest HTMLQuoteElement::insertedInto(ContainerNode* insertionPoint) -{ - if (hasTagName(qTag)) - document()->styleSheetCollection()->setUsesBeforeAfterRulesOverride(true); - - return HTMLElement::insertedInto(insertionPoint); + return adoptRef(*new HTMLQuoteElement(tagName, document)); } bool HTMLQuoteElement::isURLAttribute(const Attribute& attribute) const |