Guest User

Untitled

a guest
Aug 24th, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. bool JSRequestAnimationFrameCallback::handleEvent(double highResTime)
  2. {
  3. if (!canInvokeCallback())
  4. return true;
  5.  
  6. Ref<JSRequestAnimationFrameCallback> protect(*this);
  7.  
  8. JSLockHolder lock(m_data->globalObject()->vm());
  9.  
  10. ExecState* exec = m_data->globalObject()->globalExec();
  11. UNUSED_PARAM(exec);
  12. MarkedArgumentBuffer args;
  13. args.append(jsNumber(highResTime));
  14.  
  15. bool raisedException = false;
  16. m_data->invokeCallback(args, &raisedException);
  17. return !raisedException;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment