Guest User

Untitled

a guest
Jan 11th, 2016
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <p>If the <span>list of available images</span> contains an entry for <var>key</var>, run these
  2. <subsubsteps:</p>
  3.  
  4. <ol>
  5.  
  6. <li><p>Set the <span>ignore higher-layer caching</span> flag for that entry.</p></li>
  7.  
  8. <li><p><span>Abort the image request</span> for the <span>current request</span> and the
  9. <<span>pending request</span>.</p></li>
  10.  
  11. <li><p>Let <span>pending request</span> be null.</p></li>
  12.  
  13. <li><p>Let <span>current request</span> be a new <span>image request</span> whose <span data-x
  14. <="img-req-data">image data</span> is that of the entry and whose state is set to the <span
  15. <data-x="img-all">completely available</span> state.</p></li>
  16.  
  17. <li><p>Update the presentation of the image appropriately.</p></li>
  18.  
  19. <li><p>Let the <span>current request</span>'s <span>current pixel density</span> be
  20. <<var>selected pixel density</var>.</p></li>
  21.  
  22. <li><p><span>Queue a task</span> to <span>restart the animation</span> if <i>restart
  23. animation</i> is set. Change <span>current request</span>'s <span data-x="img-req-url">current
  24. URL</span> to <var>absolute URL</var>,and then <span>fire a simple event</span> named <code data-x
  25. ="event-load"> load</code> at the <code>img</code> element.
  26.  
  27. <li><p>Abort the <span>update the image data</span> algorithm.</p></li>
  28.  
  29. </ol>
  30.  
  31. <!-- load is a simple event here loadstart and loadend do not fire -->
  32.  
  33. </ol>
  34.  
  35. </li>
Add Comment
Please, Sign In to add comment