summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLQuoteElement.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLQuoteElement.cpp
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLQuoteElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLQuoteElement.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/WebCore/html/HTMLQuoteElement.cpp b/Source/WebCore/html/HTMLQuoteElement.cpp
index 96d2d9110..7cddafa11 100644
--- a/Source/WebCore/html/HTMLQuoteElement.cpp
+++ b/Source/WebCore/html/HTMLQuoteElement.cpp
@@ -24,7 +24,6 @@
#include "HTMLQuoteElement.h"
#include "Document.h"
-#include "DocumentStyleSheetCollection.h"
#include "HTMLNames.h"
namespace WebCore {
@@ -37,17 +36,9 @@ inline HTMLQuoteElement::HTMLQuoteElement(const QualifiedName& 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