Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index f57c51a0631416a97657ff5db47a1153b8dabf9e..1dbb1726e98157b9a61eb2a712617a5ede97b6ab 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -3834,7 +3834,9 @@ void WebViewImpl::didCommitLoad(bool isNewNavigation, bool isNavigationWithinPag |
| { |
| if (isNewNavigation && !isNavigationWithinPage) { |
| pageScaleConstraintsSet().setNeedsReset(true); |
| - pageImportanceSignals().onCommitLoad(); |
| + m_pageImportanceSignals.onCommitLoad(); |
| + if (m_client) |
| + m_client->pageImportanceSignalsChanged(); |
|
tkent
2015/09/15 23:16:42
Can we move the pageImportanceSignalsChanged call
|
| } |
| // Give the visual viewport's scroll layer its initial size. |
| @@ -4020,6 +4022,11 @@ void WebViewImpl::setPageOverlayColor(WebColor color) |
| m_pageColorOverlay->update(); |
| } |
| +WebPageImportanceSignals* WebViewImpl::pageImportanceSignals() |
| +{ |
| + return &m_pageImportanceSignals; |
| +} |
| + |
| Element* WebViewImpl::focusedElement() const |
| { |
| Frame* frame = m_page->focusController().focusedFrame(); |