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 |
| 440 // Need to reset visual viewport position here since before commit load
we would update the previous history item, |
| 441 // Page::didCommitLoad is called after a new history item is created in
FrameLoader. |
| 442 // fix for crbug.com/642279 |
| 443 frameHost().visualViewport().setScrollPosition(DoublePoint(), Programmat
icScroll); |
439 m_hostsUsingFeatures.updateMeasurementsAndClear(); | 444 m_hostsUsingFeatures.updateMeasurementsAndClear(); |
440 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); | 445 UserGestureIndicator::clearProcessedUserGestureSinceLoad(); |
441 } | 446 } |
442 } | 447 } |
443 | 448 |
444 void Page::acceptLanguagesChanged() | 449 void Page::acceptLanguagesChanged() |
445 { | 450 { |
446 HeapVector<Member<LocalFrame>> frames; | 451 HeapVector<Member<LocalFrame>> frames; |
447 | 452 |
448 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire | 453 // 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 { | 525 { |
521 } | 526 } |
522 | 527 |
523 Page::PageClients::~PageClients() | 528 Page::PageClients::~PageClients() |
524 { | 529 { |
525 } | 530 } |
526 | 531 |
527 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 532 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
528 | 533 |
529 } // namespace blink | 534 } // namespace blink |
OLD | NEW |