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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1056893003: Add setNeedsLayoutAndFullPaintInvalidation to WebWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Checking for null pointers Created 5 years, 9 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 | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | 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 48c5120e1a3c90d399edb2a6627479408dac94e3..aa9c0c56bccd29c71180100aff6a108e5fb3b97e 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1914,6 +1914,16 @@ void WebViewImpl::beginFrame(const WebBeginFrameArgs& frameTime)
}
}
+void WebViewImpl::setNeedsLayoutAndFullPaintInvalidation()
+{
+ if (!mainFrameImpl() || !mainFrameImpl()->frame() || !mainFrameImpl()->frame()->view())
+ return;
+
+ FrameView* view = mainFrameImpl()->frame()->view();
+ view->setNeedsLayout();
+ view->setNeedsFullPaintInvalidation();
+}
+
void WebViewImpl::layout()
{
TRACE_EVENT0("blink", "WebViewImpl::layout");
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698