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

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2608163009: Remove ScriptController::updateDocument (Closed)
Patch Set: temp Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | 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, 2009, 2010, 2011, 2012, 2013 Apple Inc. All 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All
3 * Rights Reserved. 3 * Rights Reserved.
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
5 * (http://www.torchmobile.com/) 5 * (http://www.torchmobile.com/)
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if (!settings().getForceMainWorldInitialization()) 430 if (!settings().getForceMainWorldInitialization())
431 break; 431 break;
432 for (Frame* frame = mainFrame(); frame; 432 for (Frame* frame = mainFrame(); frame;
433 frame = frame->tree().traverseNext()) { 433 frame = frame->tree().traverseNext()) {
434 if (!frame->isLocalFrame()) 434 if (!frame->isLocalFrame())
435 continue; 435 continue;
436 LocalFrame* localFrame = toLocalFrame(frame); 436 LocalFrame* localFrame = toLocalFrame(frame);
437 if (localFrame->loader() 437 if (localFrame->loader()
438 .stateMachine() 438 .stateMachine()
439 ->committedFirstRealDocumentLoad()) { 439 ->committedFirstRealDocumentLoad()) {
440 localFrame->script().initializeMainWorld(); 440 // Forcibly instantiate WindowProxy.
441 localFrame->script().windowProxy(DOMWrapperWorld::mainWorld());
441 } 442 }
442 } 443 }
443 } break; 444 } break;
444 } 445 }
445 } 446 }
446 447
447 void Page::updateAcceleratedCompositingSettings() { 448 void Page::updateAcceleratedCompositingSettings() {
448 for (Frame* frame = mainFrame(); frame; 449 for (Frame* frame = mainFrame(); frame;
449 frame = frame->tree().traverseNext()) { 450 frame = frame->tree().traverseNext()) {
450 if (!frame->isLocalFrame()) 451 if (!frame->isLocalFrame())
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 : chromeClient(nullptr), 544 : chromeClient(nullptr),
544 contextMenuClient(nullptr), 545 contextMenuClient(nullptr),
545 editorClient(nullptr), 546 editorClient(nullptr),
546 spellCheckerClient(nullptr) {} 547 spellCheckerClient(nullptr) {}
547 548
548 Page::PageClients::~PageClients() {} 549 Page::PageClients::~PageClients() {}
549 550
550 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 551 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
551 552
552 } // namespace blink 553 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698