Index: Source/core/frame/Settings.cpp |
diff --git a/Source/core/frame/Settings.cpp b/Source/core/frame/Settings.cpp |
index f6a2781b36a86509f34490b3c69742480ae26f3c..6c85bb100ad9ab861a88043efdc83d1ffa3b5dea 100644 |
--- a/Source/core/frame/Settings.cpp |
+++ b/Source/core/frame/Settings.cpp |
@@ -72,6 +72,7 @@ Settings::Settings() |
#else |
, m_textAutosizingEnabled(false) |
#endif |
+ , m_textTracksEnabled(false) |
SETTINGS_INITIALIZER_LIST |
{ |
} |
@@ -132,4 +133,12 @@ void Settings::setOpenGLMultisamplingEnabled(bool flag) |
invalidate(SettingsDelegate::MultisamplingChange); |
} |
+void Settings::setTextTracksEnabled(bool enabled) |
+{ |
+ if (m_textTracksEnabled == enabled) |
+ return; |
+ m_textTracksEnabled = enabled; |
+ invalidate(SettingsDelegate::TextTracksVisibilityChange); |
+} |
+ |
} // namespace blink |