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

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

Issue 2562323002: Devirtualize Frame::domWindow(). (Closed)
Patch Set: Created 4 years 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
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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 474
475 // Even though we don't fire an event from here, the LocalDOMWindow's will 475 // Even though we don't fire an event from here, the LocalDOMWindow's will
476 // fire an event so we keep the frames alive until we are done. 476 // fire an event so we keep the frames alive until we are done.
477 for (Frame* frame = mainFrame(); frame; 477 for (Frame* frame = mainFrame(); frame;
478 frame = frame->tree().traverseNext()) { 478 frame = frame->tree().traverseNext()) {
479 if (frame->isLocalFrame()) 479 if (frame->isLocalFrame())
480 frames.append(toLocalFrame(frame)); 480 frames.append(toLocalFrame(frame));
481 } 481 }
482 482
483 for (unsigned i = 0; i < frames.size(); ++i) 483 for (unsigned i = 0; i < frames.size(); ++i)
484 frames[i]->localDOMWindow()->acceptLanguagesChanged(); 484 frames[i]->domWindow()->acceptLanguagesChanged();
485 } 485 }
486 486
487 DEFINE_TRACE(Page) { 487 DEFINE_TRACE(Page) {
488 visitor->trace(m_animator); 488 visitor->trace(m_animator);
489 visitor->trace(m_autoscrollController); 489 visitor->trace(m_autoscrollController);
490 visitor->trace(m_chromeClient); 490 visitor->trace(m_chromeClient);
491 visitor->trace(m_dragCaretController); 491 visitor->trace(m_dragCaretController);
492 visitor->trace(m_dragController); 492 visitor->trace(m_dragController);
493 visitor->trace(m_focusController); 493 visitor->trace(m_focusController);
494 visitor->trace(m_contextMenuController); 494 visitor->trace(m_contextMenuController);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 : chromeClient(nullptr), 539 : chromeClient(nullptr),
540 contextMenuClient(nullptr), 540 contextMenuClient(nullptr),
541 editorClient(nullptr), 541 editorClient(nullptr),
542 spellCheckerClient(nullptr) {} 542 spellCheckerClient(nullptr) {}
543 543
544 Page::PageClients::~PageClients() {} 544 Page::PageClients::~PageClients() {}
545 545
546 template class CORE_TEMPLATE_EXPORT Supplement<Page>; 546 template class CORE_TEMPLATE_EXPORT Supplement<Page>;
547 547
548 } // namespace blink 548 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698