Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1769)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 939303006: Conditionally propagate top controls update to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index bce3d37477b6c8f47f744221ab38bcd9f7aaf048..ad945792fea1d48989559e3a8859da3d84bce861 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1717,7 +1717,8 @@ void WebViewImpl::setTopControlsHeight(float height, bool topControlsShrinkLayou
void WebViewImpl::updateTopControlsState(WebTopControlsState constraint, WebTopControlsState current, bool animate)
{
topControls().updateConstraints(constraint);
- m_layerTreeView->updateTopControlsState(constraint, current, animate);
+ if (m_layerTreeView)
+ m_layerTreeView->updateTopControlsState(constraint, current, animate);
}
void WebViewImpl::didUpdateTopControls()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698