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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. 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
« no previous file with comments | « Source/core/frame/ImageBitmap.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return host->chrome().canRunModalNow(); 334 return host->chrome().canRunModalNow();
335 } 335 }
336 336
337 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame) 337 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame)
338 : FrameDestructionObserver(&frame) 338 : FrameDestructionObserver(&frame)
339 , m_shouldPrintWhenFinishedLoading(false) 339 , m_shouldPrintWhenFinishedLoading(false)
340 #if ENABLE(ASSERT) 340 #if ENABLE(ASSERT)
341 , m_hasBeenReset(false) 341 , m_hasBeenReset(false)
342 #endif 342 #endif
343 { 343 {
344 ScriptWrappable::init(this);
345 } 344 }
346 345
347 void LocalDOMWindow::clearDocument() 346 void LocalDOMWindow::clearDocument()
348 { 347 {
349 if (!m_document) 348 if (!m_document)
350 return; 349 return;
351 350
352 if (m_document->isActive()) { 351 if (m_document->isActive()) {
353 // FIXME: We don't call willRemove here. Why is that OK? 352 // FIXME: We don't call willRemove here. Why is that OK?
354 // This detach() call is also mostly redundant. Most of the calls to 353 // This detach() call is also mostly redundant. Most of the calls to
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1916 visitor->trace(m_applicationCache); 1915 visitor->trace(m_applicationCache);
1917 visitor->trace(m_performance); 1916 visitor->trace(m_performance);
1918 visitor->trace(m_css); 1917 visitor->trace(m_css);
1919 visitor->trace(m_eventQueue); 1918 visitor->trace(m_eventQueue);
1920 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); 1919 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor);
1921 EventTargetWithInlineData::trace(visitor); 1920 EventTargetWithInlineData::trace(visitor);
1922 LifecycleContext<LocalDOMWindow>::trace(visitor); 1921 LifecycleContext<LocalDOMWindow>::trace(visitor);
1923 } 1922 }
1924 1923
1925 } // namespace blink 1924 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/frame/ImageBitmap.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698