Use references in public EventSender functions
[WebKit-https.git] / Source / WebCore / html / HTMLLinkElement.cpp
index b851145f08f71822845a38b5416036a9d367a554..8c9ebae261589fd8cce80528e4af8c43886d0dde 100644 (file)
@@ -94,7 +94,7 @@ HTMLLinkElement::~HTMLLinkElement()
     if (inDocument())
         document().styleSheetCollection().removeStyleSheetCandidateNode(*this);
 
     if (inDocument())
         document().styleSheetCollection().removeStyleSheetCandidateNode(*this);
 
-    linkLoadEventSender().cancelEvent(this);
+    linkLoadEventSender().cancelEvent(*this);
 }
 
 void HTMLLinkElement::setDisabledState(bool disabled)
 }
 
 void HTMLLinkElement::setDisabledState(bool disabled)
@@ -380,7 +380,7 @@ void HTMLLinkElement::notifyLoadedSheetAndAllCriticalSubresources(bool errorOccu
     if (m_firedLoad)
         return;
     m_loadedSheet = !errorOccurred;
     if (m_firedLoad)
         return;
     m_loadedSheet = !errorOccurred;
-    linkLoadEventSender().dispatchEventSoon(this);
+    linkLoadEventSender().dispatchEventSoon(*this);
     m_firedLoad = true;
 }
 
     m_firedLoad = true;
 }