summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLQuoteElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLQuoteElement.cpp')
-rw-r--r--WebCore/html/HTMLQuoteElement.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/html/HTMLQuoteElement.cpp b/WebCore/html/HTMLQuoteElement.cpp
index 19164e2..e548215 100644
--- a/WebCore/html/HTMLQuoteElement.cpp
+++ b/WebCore/html/HTMLQuoteElement.cpp
@@ -22,6 +22,7 @@
#include "config.h"
#include "HTMLQuoteElement.h"
+#include "Document.h"
#include "HTMLNames.h"
namespace WebCore {
@@ -34,6 +35,13 @@ HTMLQuoteElement::HTMLQuoteElement(const QualifiedName& tagName, Document* doc)
ASSERT(hasTagName(qTag));
}
+void HTMLQuoteElement::insertedIntoDocument()
+{
+ document()->setUsesBeforeAfterRules(true);
+
+ HTMLElement::insertedIntoDocument();
+}
+
String HTMLQuoteElement::cite() const
{
return getAttribute(citeAttr);