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

Unified Diff: public/web/WebWidget.h

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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidget.h
diff --git a/public/web/WebWidget.h b/public/web/WebWidget.h
index ddd8a4e05d4b1775283b2213eaa3e5c7872ade25..741396430cbdd55bc269fe916baaebc1ecc40432 100644
--- a/public/web/WebWidget.h
+++ b/public/web/WebWidget.h
@@ -92,6 +92,10 @@ public:
// paint, although the client can rate-limit these calls.
virtual void beginFrame(const WebBeginFrameArgs& frameTime) { }
+ // Called when the Widget contents has changed in such a way the layout must be
+ // redone, and any resulting paint invalidations issued.
+ virtual void setNeedsLayoutAndFullPaintInvalidation() { }
+
// Called to layout the WebWidget. This MUST be called before Paint,
// and it may result in calls to WebWidgetClient::didInvalidateRect.
virtual void layout() { }
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698