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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
429 | 429 |
430 void Page::didCommitLoad(LocalFrame* frame) | 430 void Page::didCommitLoad(LocalFrame* frame) |
431 { | 431 { |
432 if (m_mainFrame == frame) { | 432 if (m_mainFrame == frame) { |
433 // TODO(rbyers): Most of this doesn't appear to take into account that e ach | 433 // TODO(rbyers): Most of this doesn't appear to take into account that e ach |
434 // SVGImage gets it's own Page instance. | 434 // SVGImage gets it's own Page instance. |
435 frameHost().consoleMessageStorage().clear(); | 435 frameHost().consoleMessageStorage().clear(); |
436 useCounter().didCommitLoad(); | 436 useCounter().didCommitLoad(); |
437 deprecation().clearSuppression(); | 437 deprecation().clearSuppression(); |
438 frameHost().visualViewport().sendUMAMetrics(); | 438 frameHost().visualViewport().sendUMAMetrics(); |
439 frameHost().visualViewport().setScrollPosition(DoublePoint(), Programmat icScroll); | |
bokan
2016/09/12 18:55:23
Please add a comment that we need to reset the scr
| |
439 m_hostsUsingFeatures.updateMeasurementsAndClear(); | 440 m_hostsUsingFeatures.updateMeasurementsAndClear(); |
440 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); | 441 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
441 } | 442 } |
442 } | 443 } |
443 | 444 |
444 void Page::acceptLanguagesChanged() | 445 void Page::acceptLanguagesChanged() |
445 { | 446 { |
446 HeapVector<Member<LocalFrame>> frames; | 447 HeapVector<Member<LocalFrame>> frames; |
447 | 448 |
448 // Even though we don't fire an event from here, the LocalDOMWindow's will f ire | 449 // Even though we don't fire an event from here, the LocalDOMWindow's will f ire |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 { | 521 { |
521 } | 522 } |
522 | 523 |
523 Page::PageClients::~PageClients() | 524 Page::PageClients::~PageClients() |
524 { | 525 { |
525 } | 526 } |
526 | 527 |
527 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 528 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
528 | 529 |
529 } // namespace blink | 530 } // namespace blink |
OLD | NEW |