rendered paste bodyvoid TiledDrawingArea::tileUpdateTimerFired(){ ASSERT(!m_pendingUpdates.isEmpty()); static const float gUpdateTimeCapMS = 1000; float currentTime = WTF::currentTimeMS(); float endTime = currentTime + gUpdateTimeCapMS; while (!m_pendingUpdates.isEmpty() && WTF::currentTimeMS() < endTime) { UpdateMap::iterator it = m_pendingUpdates.begin(); TileUpdate update = it->second; m_pendingUpdates.remove(it); updateTile(update.tileID, update.dirtyRect, update.scale); } if (m_pendingUpdates.isEmpty()) WebProcess::shared().connection()->deprecatedSend(DrawingAreaProxyLegacyMessage::AllTileUpdatesProcessed, m_webPage->pageID(), CoreIPC::In()); else m_tileUpdateTimer.startOneShot(0.001);}