| 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 return; | 622 return; |
| 623 | 623 |
| 624 FloatRect fr = host->chrome().windowRect(); | 624 FloatRect fr = host->chrome().windowRect(); |
| 625 FloatSize dest = FloatSize(width, height); | 625 FloatSize dest = FloatSize(width, height); |
| 626 FloatRect update(fr.location(), dest); | 626 FloatRect update(fr.location(), dest); |
| 627 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update)); | 627 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update)); |
| 628 } | 628 } |
| 629 | 629 |
| 630 int LocalDOMWindow::requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallba
ck> callback) | 630 int LocalDOMWindow::requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallba
ck> callback) |
| 631 { | 631 { |
| 632 callback->m_useLegacyTimeBase = false; | |
| 633 if (Document* d = document()) | 632 if (Document* d = document()) |
| 634 return d->requestAnimationFrame(callback); | 633 return d->requestAnimationFrame(callback); |
| 635 return 0; | 634 return 0; |
| 636 } | 635 } |
| 637 | 636 |
| 638 void LocalDOMWindow::cancelAnimationFrame(int id) | 637 void LocalDOMWindow::cancelAnimationFrame(int id) |
| 639 { | 638 { |
| 640 if (Document* d = document()) | 639 if (Document* d = document()) |
| 641 d->cancelAnimationFrame(id); | 640 d->cancelAnimationFrame(id); |
| 642 } | 641 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 { | 741 { |
| 743 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); | 742 return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<LocalDOMWin
dow>::lifecycleNotifier()); |
| 744 } | 743 } |
| 745 | 744 |
| 746 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() | 745 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > LocalDOMWindow::createLifecycleNo
tifier() |
| 747 { | 746 { |
| 748 return DOMWindowLifecycleNotifier::create(this); | 747 return DOMWindowLifecycleNotifier::create(this); |
| 749 } | 748 } |
| 750 | 749 |
| 751 } // namespace blink | 750 } // namespace blink |
| OLD | NEW |