summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLStyleElement.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/html/HTMLStyleElement.cpp
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/html/HTMLStyleElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLStyleElement.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/WebCore/html/HTMLStyleElement.cpp b/Source/WebCore/html/HTMLStyleElement.cpp
index 51c6f6ae2..b0b667286 100644
--- a/Source/WebCore/html/HTMLStyleElement.cpp
+++ b/Source/WebCore/html/HTMLStyleElement.cpp
@@ -24,6 +24,7 @@
#include "config.h"
#include "HTMLStyleElement.h"
+#include "Attribute.h"
#include "Document.h"
#include "Event.h"
#include "EventSender.h"
@@ -40,7 +41,7 @@ using namespace HTMLNames;
static StyleEventSender& styleLoadEventSender()
{
- static NeverDestroyed<StyleEventSender> sharedLoadEventSender(eventNames().loadEvent);
+ DEFINE_STATIC_LOCAL(StyleEventSender, sharedLoadEventSender, (eventNames().loadEvent));
return sharedLoadEventSender;
}
@@ -59,12 +60,12 @@ HTMLStyleElement::~HTMLStyleElement()
// Therefore we can't ASSERT(m_scopedStyleRegistrationState == NotRegistered).
m_styleSheetOwner.clearDocumentData(document(), *this);
- styleLoadEventSender().cancelEvent(*this);
+ styleLoadEventSender().cancelEvent(this);
}
-Ref<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagName, Document& document, bool createdByParser)
+PassRefPtr<HTMLStyleElement> HTMLStyleElement::create(const QualifiedName& tagName, Document& document, bool createdByParser)
{
- return adoptRef(*new HTMLStyleElement(tagName, document, createdByParser));
+ return adoptRef(new HTMLStyleElement(tagName, document, createdByParser));
}
void HTMLStyleElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
@@ -132,7 +133,7 @@ void HTMLStyleElement::notifyLoadedSheetAndAllCriticalSubresources(bool errorOcc
if (m_firedLoad)
return;
m_loadedSheet = !errorOccurred;
- styleLoadEventSender().dispatchEventSoon(*this);
+ styleLoadEventSender().dispatchEventSoon(this);
m_firedLoad = true;
}