Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1362 return d->requestAnimationFrame(callback); | 1362 return d->requestAnimationFrame(callback); |
| 1363 return 0; | 1363 return 0; |
| 1364 } | 1364 } |
| 1365 | 1365 |
| 1366 void LocalDOMWindow::cancelAnimationFrame(int id) | 1366 void LocalDOMWindow::cancelAnimationFrame(int id) |
| 1367 { | 1367 { |
| 1368 if (Document* d = document()) | 1368 if (Document* d = document()) |
| 1369 d->cancelAnimationFrame(id); | 1369 d->cancelAnimationFrame(id); |
| 1370 } | 1370 } |
| 1371 | 1371 |
| 1372 int LocalDOMWindow::requestIdleFrame(IdleRequestCallback* callback) | |
| 1373 { | |
| 1374 if (Document* d = document()) | |
|
esprehn
2015/06/10 07:11:42
document, don't abbreviate.
rmcilroy
2015/06/10 18:32:41
I couldn't call this document because of the funct
| |
| 1375 return d->requestIdleFrame(callback); | |
| 1376 return 0; | |
| 1377 } | |
| 1378 | |
| 1379 void LocalDOMWindow::cancelIdleFrame(int id) | |
| 1380 { | |
| 1381 if (Document* d = document()) | |
|
esprehn
2015/06/10 07:11:42
ditto, also can this really be null? I don't think
rmcilroy
2015/06/10 18:32:41
clearDocument resets m_document. I'm not sure on w
| |
| 1382 d->cancelIdleFrame(id); | |
| 1383 } | |
| 1384 | |
| 1372 DOMWindowCSS* LocalDOMWindow::css() const | 1385 DOMWindowCSS* LocalDOMWindow::css() const |
| 1373 { | 1386 { |
| 1374 if (!m_css) | 1387 if (!m_css) |
| 1375 m_css = DOMWindowCSS::create(); | 1388 m_css = DOMWindowCSS::create(); |
| 1376 return m_css.get(); | 1389 return m_css.get(); |
| 1377 } | 1390 } |
| 1378 | 1391 |
| 1379 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture) | 1392 bool LocalDOMWindow::addEventListener(const AtomicString& eventType, PassRefPtr< EventListener> prpListener, bool useCapture) |
| 1380 { | 1393 { |
| 1381 RefPtr<EventListener> listener = prpListener; | 1394 RefPtr<EventListener> listener = prpListener; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1666 return m_frameObserver->frame(); | 1679 return m_frameObserver->frame(); |
| 1667 } | 1680 } |
| 1668 | 1681 |
| 1669 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) | 1682 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) |
| 1670 { | 1683 { |
| 1671 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1684 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
| 1672 return v8::Handle<v8::Object>(); | 1685 return v8::Handle<v8::Object>(); |
| 1673 } | 1686 } |
| 1674 | 1687 |
| 1675 } // namespace blink | 1688 } // namespace blink |
| OLD | NEW |