Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| index 3e92e32a2f867341300bb60c550f5729a13a1c55..b50d6a16f70ec4f7cbb10637aa45ff60086b009f 100644 |
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| @@ -2026,22 +2026,23 @@ void WebViewImpl::updateAllLifecyclePhases() |
| if (FrameView* view = mainFrameImpl()->frameView()) { |
| LocalFrame* frame = mainFrameImpl()->frame(); |
| + WebWidgetClient* client = WebLocalFrameImpl::fromFrame(frame)->frameWidget()->client(); |
|
dcheng
2016/07/07 01:54:56
Hmm, does this entire function need to move to Web
lfg
2016/07/07 14:27:46
Yes, but we'll also need to do some stuff in Frame
|
| if (m_shouldDispatchFirstVisuallyNonEmptyLayout && view->isVisuallyNonEmpty()) { |
| m_shouldDispatchFirstVisuallyNonEmptyLayout = false; |
| // TODO(esprehn): Move users of this callback to something |
| // better, the heuristic for "visually non-empty" is bad. |
| - client()->didMeaningfulLayout(WebMeaningfulLayout::VisuallyNonEmpty); |
| + client->didMeaningfulLayout(WebMeaningfulLayout::VisuallyNonEmpty); |
| } |
| if (m_shouldDispatchFirstLayoutAfterFinishedParsing && frame->document()->hasFinishedParsing()) { |
| m_shouldDispatchFirstLayoutAfterFinishedParsing = false; |
| - client()->didMeaningfulLayout(WebMeaningfulLayout::FinishedParsing); |
| + client->didMeaningfulLayout(WebMeaningfulLayout::FinishedParsing); |
| } |
| if (m_shouldDispatchFirstLayoutAfterFinishedLoading && frame->document()->isLoadCompleted()) { |
| m_shouldDispatchFirstLayoutAfterFinishedLoading = false; |
| - client()->didMeaningfulLayout(WebMeaningfulLayout::FinishedLoading); |
| + client->didMeaningfulLayout(WebMeaningfulLayout::FinishedLoading); |
| } |
| } |
| } |