OLD | NEW |
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 Loading... |
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 // Forcibly instantiate WindowProxy. | 440 localFrame->script().initializeMainWorld(); |
441 localFrame->script().windowProxy(DOMWrapperWorld::mainWorld()); | |
442 } | 441 } |
443 } | 442 } |
444 } break; | 443 } break; |
445 } | 444 } |
446 } | 445 } |
447 | 446 |
448 void Page::updateAcceleratedCompositingSettings() { | 447 void Page::updateAcceleratedCompositingSettings() { |
449 for (Frame* frame = mainFrame(); frame; | 448 for (Frame* frame = mainFrame(); frame; |
450 frame = frame->tree().traverseNext()) { | 449 frame = frame->tree().traverseNext()) { |
451 if (!frame->isLocalFrame()) | 450 if (!frame->isLocalFrame()) |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 : chromeClient(nullptr), | 543 : chromeClient(nullptr), |
545 contextMenuClient(nullptr), | 544 contextMenuClient(nullptr), |
546 editorClient(nullptr), | 545 editorClient(nullptr), |
547 spellCheckerClient(nullptr) {} | 546 spellCheckerClient(nullptr) {} |
548 | 547 |
549 Page::PageClients::~PageClients() {} | 548 Page::PageClients::~PageClients() {} |
550 | 549 |
551 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 550 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
552 | 551 |
553 } // namespace blink | 552 } // namespace blink |
OLD | NEW |