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 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 { | 1542 { |
1543 ScriptExecutionContext* context = scriptExecutionContext(); | 1543 ScriptExecutionContext* context = scriptExecutionContext(); |
1544 if (!context) | 1544 if (!context) |
1545 return; | 1545 return; |
1546 DOMTimer::removeById(context, timeoutId); | 1546 DOMTimer::removeById(context, timeoutId); |
1547 } | 1547 } |
1548 | 1548 |
1549 #if ENABLE(REQUEST_ANIMATION_FRAME) | 1549 #if ENABLE(REQUEST_ANIMATION_FRAME) |
1550 int DOMWindow::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> c
allback) | 1550 int DOMWindow::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> c
allback) |
1551 { | 1551 { |
| 1552 callback->m_useLegacyTimeBase = false; |
| 1553 if (Document* d = document()) |
| 1554 return d->requestAnimationFrame(callback); |
| 1555 return 0; |
| 1556 } |
| 1557 |
| 1558 int DOMWindow::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallb
ack> callback) |
| 1559 { |
| 1560 callback->m_useLegacyTimeBase = true; |
1552 if (Document* d = document()) | 1561 if (Document* d = document()) |
1553 return d->requestAnimationFrame(callback); | 1562 return d->requestAnimationFrame(callback); |
1554 return 0; | 1563 return 0; |
1555 } | 1564 } |
1556 | 1565 |
1557 void DOMWindow::cancelAnimationFrame(int id) | 1566 void DOMWindow::cancelAnimationFrame(int id) |
1558 { | 1567 { |
1559 if (Document* d = document()) | 1568 if (Document* d = document()) |
1560 d->cancelAnimationFrame(id); | 1569 d->cancelAnimationFrame(id); |
1561 } | 1570 } |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1944 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); | 1953 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_fr
ame->view())); |
1945 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, | 1954 Frame* dialogFrame = createWindow(urlString, emptyAtom, windowFeatures, |
1946 activeWindow, firstFrame, m_frame, function, functionContext); | 1955 activeWindow, firstFrame, m_frame, function, functionContext); |
1947 if (!dialogFrame) | 1956 if (!dialogFrame) |
1948 return; | 1957 return; |
1949 | 1958 |
1950 dialogFrame->page()->chrome()->runModal(); | 1959 dialogFrame->page()->chrome()->runModal(); |
1951 } | 1960 } |
1952 | 1961 |
1953 } // namespace WebCore | 1962 } // namespace WebCore |
OLD | NEW |