Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index c2d02197b1328c8cb0d5e974fd28805256301c87..38f4bae05facdf0ea9e6bcadfda62ecd70a60d5b 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1930,7 +1930,7 @@ void Document::clearFocusedElementSoon()
m_clearFocusedElementTimer.startOneShot(0, BLINK_FROM_HERE);
}
-void Document::clearFocusedElementTimerFired(Timer<Document>*)
+void Document::clearFocusedElementTimerFired(TimerBase*)
{
updateStyleAndLayoutTree();
m_clearFocusedElementTimer.stop();
@@ -4825,7 +4825,7 @@ void Document::finishedParsing()
m_fetcher->clearPreloads(ResourceFetcher::ClearSpeculativeMarkupPreloads);
}
-void Document::elementDataCacheClearTimerFired(Timer<Document>*)
+void Document::elementDataCacheClearTimerFired(TimerBase*)
{
m_elementDataCache.clear();
}
@@ -5135,7 +5135,7 @@ void Document::cancelFocusAppearanceUpdate()
m_updateFocusAppearanceTimer.stop();
}
-void Document::updateFocusAppearanceTimerFired(Timer<Document>*)
+void Document::updateFocusAppearanceTimerFired(TimerBase*)
{
Element* element = focusedElement();
if (!element)
@@ -5382,7 +5382,7 @@ bool Document::isDelayingLoadEvent()
return m_loadEventDelayCount;
}
-void Document::loadEventDelayTimerFired(Timer<Document>*)
+void Document::loadEventDelayTimerFired(TimerBase*)
{
if (frame())
frame()->loader().checkCompleted();
@@ -5395,7 +5395,7 @@ void Document::loadPluginsSoon()
m_pluginLoadingTimer.startOneShot(0, BLINK_FROM_HERE);
}
-void Document::pluginLoadingTimerFired(Timer<Document>*)
+void Document::pluginLoadingTimerFired(TimerBase*)
{
updateStyleAndLayout();
}
@@ -5756,7 +5756,7 @@ void Document::removeFormAssociation(Element* element)
m_didAssociateFormControlsTimer.stop();
}
-void Document::didAssociateFormControlsTimerFired(Timer<Document>* timer)
+void Document::didAssociateFormControlsTimerFired(TimerBase* timer)
{
ASSERT_UNUSED(timer, timer == &m_didAssociateFormControlsTimer);
if (!frame() || !frame()->page())

Powered by Google App Engine
This is Rietveld 408576698