Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1119)

Side by Side Diff: Source/core/frame/LocalDOMWindow.cpp

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 FrameHost* host = m_frame->host(); 1454 FrameHost* host = m_frame->host();
1455 if (!host) 1455 if (!host)
1456 return; 1456 return;
1457 1457
1458 FloatRect fr = host->chrome().windowRect(); 1458 FloatRect fr = host->chrome().windowRect();
1459 FloatSize dest = FloatSize(width, height); 1459 FloatSize dest = FloatSize(width, height);
1460 FloatRect update(fr.location(), dest); 1460 FloatRect update(fr.location(), dest);
1461 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update)); 1461 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update));
1462 } 1462 }
1463 1463
1464 int LocalDOMWindow::requestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAnimatio nFrameCallback> callback) 1464 int LocalDOMWindow::requestAnimationFrame(RequestAnimationFrameCallback* callbac k)
1465 { 1465 {
1466 callback->m_useLegacyTimeBase = false; 1466 callback->m_useLegacyTimeBase = false;
1467 if (Document* d = document()) 1467 if (Document* d = document())
1468 return d->requestAnimationFrame(callback); 1468 return d->requestAnimationFrame(callback);
1469 return 0; 1469 return 0;
1470 } 1470 }
1471 1471
1472 int LocalDOMWindow::webkitRequestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAn imationFrameCallback> callback) 1472 int LocalDOMWindow::webkitRequestAnimationFrame(RequestAnimationFrameCallback* c allback)
1473 { 1473 {
1474 callback->m_useLegacyTimeBase = true; 1474 callback->m_useLegacyTimeBase = true;
1475 if (Document* d = document()) 1475 if (Document* d = document())
1476 return d->requestAnimationFrame(callback); 1476 return d->requestAnimationFrame(callback);
1477 return 0; 1477 return 0;
1478 } 1478 }
1479 1479
1480 void LocalDOMWindow::cancelAnimationFrame(int id) 1480 void LocalDOMWindow::cancelAnimationFrame(int id)
1481 { 1481 {
1482 if (Document* d = document()) 1482 if (Document* d = document())
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 LifecycleContext<LocalDOMWindow>::trace(visitor); 1914 LifecycleContext<LocalDOMWindow>::trace(visitor);
1915 } 1915 }
1916 1916
1917 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) 1917 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate)
1918 { 1918 {
1919 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. 1919 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8].
1920 return v8::Handle<v8::Object>(); 1920 return v8::Handle<v8::Object>();
1921 } 1921 }
1922 1922
1923 } // namespace blink 1923 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698