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