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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 deprecation().clearSuppression(); | 458 deprecation().clearSuppression(); |
459 frameHost().visualViewport().sendUMAMetrics(); | 459 frameHost().visualViewport().sendUMAMetrics(); |
460 | 460 |
461 // Need to reset visual viewport position here since before commit load we | 461 // Need to reset visual viewport position here since before commit load we |
462 // would update the previous history item, Page::didCommitLoad is called | 462 // would update the previous history item, Page::didCommitLoad is called |
463 // after a new history item is created in FrameLoader. | 463 // after a new history item is created in FrameLoader. |
464 // See crbug.com/642279 | 464 // See crbug.com/642279 |
465 frameHost().visualViewport().setScrollOffset(ScrollOffset(), | 465 frameHost().visualViewport().setScrollOffset(ScrollOffset(), |
466 ProgrammaticScroll); | 466 ProgrammaticScroll); |
467 m_hostsUsingFeatures.updateMeasurementsAndClear(); | 467 m_hostsUsingFeatures.updateMeasurementsAndClear(); |
468 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); | |
469 } | 468 } |
470 } | 469 } |
471 | 470 |
472 void Page::acceptLanguagesChanged() { | 471 void Page::acceptLanguagesChanged() { |
473 HeapVector<Member<LocalFrame>> frames; | 472 HeapVector<Member<LocalFrame>> frames; |
474 | 473 |
475 // Even though we don't fire an event from here, the LocalDOMWindow's will | 474 // 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. | 475 // fire an event so we keep the frames alive until we are done. |
477 for (Frame* frame = mainFrame(); frame; | 476 for (Frame* frame = mainFrame(); frame; |
478 frame = frame->tree().traverseNext()) { | 477 frame = frame->tree().traverseNext()) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 : chromeClient(nullptr), | 538 : chromeClient(nullptr), |
540 contextMenuClient(nullptr), | 539 contextMenuClient(nullptr), |
541 editorClient(nullptr), | 540 editorClient(nullptr), |
542 spellCheckerClient(nullptr) {} | 541 spellCheckerClient(nullptr) {} |
543 | 542 |
544 Page::PageClients::~PageClients() {} | 543 Page::PageClients::~PageClients() {} |
545 | 544 |
546 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 545 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
547 | 546 |
548 } // namespace blink | 547 } // namespace blink |
OLD | NEW |