OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; | 563 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; |
564 | 564 |
565 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire | 565 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire |
566 // an event so we keep the frames alive until we are done. | 566 // an event so we keep the frames alive until we are done. |
567 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 567 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
568 if (frame->isLocalFrame()) | 568 if (frame->isLocalFrame()) |
569 frames.append(toLocalFrame(frame)); | 569 frames.append(toLocalFrame(frame)); |
570 } | 570 } |
571 | 571 |
572 for (unsigned i = 0; i < frames.size(); ++i) | 572 for (unsigned i = 0; i < frames.size(); ++i) |
573 frames[i]->domWindow()->acceptLanguagesChanged(); | 573 frames[i]->localDOMWindow()->acceptLanguagesChanged(); |
574 } | 574 } |
575 | 575 |
576 PageLifecycleNotifier& Page::lifecycleNotifier() | 576 PageLifecycleNotifier& Page::lifecycleNotifier() |
577 { | 577 { |
578 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); | 578 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); |
579 } | 579 } |
580 | 580 |
581 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier() | 581 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier() |
582 { | 582 { |
583 return PageLifecycleNotifier::create(this); | 583 return PageLifecycleNotifier::create(this); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 , spellCheckerClient(nullptr) | 646 , spellCheckerClient(nullptr) |
647 , storageClient(nullptr) | 647 , storageClient(nullptr) |
648 { | 648 { |
649 } | 649 } |
650 | 650 |
651 Page::PageClients::~PageClients() | 651 Page::PageClients::~PageClients() |
652 { | 652 { |
653 } | 653 } |
654 | 654 |
655 } // namespace blink | 655 } // namespace blink |
OLD | NEW |