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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.h

Issue 2627773002: LayoutTheme: Invalidate cache on WebThemeEngine change. (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/layout/LayoutTheme.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.h b/third_party/WebKit/Source/core/layout/LayoutTheme.h
index 598e5a8abc90df7dea2e3256f8880d98626a0e2f..97442215dc5ed5743f7790a1a60d299f812dca2e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.h
@@ -58,6 +58,10 @@ class CORE_EXPORT LayoutTheme : public RefCounted<LayoutTheme> {
virtual ThemePainter& painter() = 0;
+ // This function is called after associated WebThemeEngine instance
+ // was replaced. This is called only in tests.
+ virtual void didChangeThemeEngine() {}
+
static void setSizeIfAuto(ComputedStyle&, const IntSize&);
// This method is called whenever style has been computed for an element and
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutThemeDefault.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698