| 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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 FrameHost* host = m_frame->host(); | 1447 FrameHost* host = m_frame->host(); |
| 1448 if (!host) | 1448 if (!host) |
| 1449 return; | 1449 return; |
| 1450 | 1450 |
| 1451 FloatRect fr = host->chrome().windowRect(); | 1451 FloatRect fr = host->chrome().windowRect(); |
| 1452 FloatSize dest = FloatSize(width, height); | 1452 FloatSize dest = FloatSize(width, height); |
| 1453 FloatRect update(fr.location(), dest); | 1453 FloatRect update(fr.location(), dest); |
| 1454 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update)); | 1454 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update)); |
| 1455 } | 1455 } |
| 1456 | 1456 |
| 1457 int LocalDOMWindow::requestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAnimatio
nFrameCallback> callback) | 1457 int LocalDOMWindow::requestAnimationFrame(RequestAnimationFrameCallback* callbac
k) |
| 1458 { | 1458 { |
| 1459 callback->m_useLegacyTimeBase = false; | 1459 callback->m_useLegacyTimeBase = false; |
| 1460 if (Document* d = document()) | 1460 if (Document* d = document()) |
| 1461 return d->requestAnimationFrame(callback); | 1461 return d->requestAnimationFrame(callback); |
| 1462 return 0; | 1462 return 0; |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 int LocalDOMWindow::webkitRequestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAn
imationFrameCallback> callback) | 1465 int LocalDOMWindow::webkitRequestAnimationFrame(RequestAnimationFrameCallback* c
allback) |
| 1466 { | 1466 { |
| 1467 callback->m_useLegacyTimeBase = true; | 1467 callback->m_useLegacyTimeBase = true; |
| 1468 if (Document* d = document()) | 1468 if (Document* d = document()) |
| 1469 return d->requestAnimationFrame(callback); | 1469 return d->requestAnimationFrame(callback); |
| 1470 return 0; | 1470 return 0; |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 void LocalDOMWindow::cancelAnimationFrame(int id) | 1473 void LocalDOMWindow::cancelAnimationFrame(int id) |
| 1474 { | 1474 { |
| 1475 if (Document* d = document()) | 1475 if (Document* d = document()) |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 FrameDestructionObserver::trace(visitor); | 1907 FrameDestructionObserver::trace(visitor); |
| 1908 } | 1908 } |
| 1909 | 1909 |
| 1910 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 1910 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
| 1911 { | 1911 { |
| 1912 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1912 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
| 1913 return v8::Handle<v8::Object>(); | 1913 return v8::Handle<v8::Object>(); |
| 1914 } | 1914 } |
| 1915 | 1915 |
| 1916 } // namespace blink | 1916 } // namespace blink |
| OLD | NEW |